diff --git a/src/main/java/preview/net/imglib2/algorithm/neighborhood/NeighborhoodRandomAccessible.java b/src/main/java/preview/net/imglib2/algorithm/neighborhood/NeighborhoodRandomAccessible.java index 6fcdcea9..f0ca390a 100644 --- a/src/main/java/preview/net/imglib2/algorithm/neighborhood/NeighborhoodRandomAccessible.java +++ b/src/main/java/preview/net/imglib2/algorithm/neighborhood/NeighborhoodRandomAccessible.java @@ -60,4 +60,10 @@ public RandomAccess> randomAccess() { public RandomAccess> randomAccess(final Interval interval) { return new NeighborhoodRandomAccess(source, factory, interval); } + + @Override + public Neighborhood< T > getType() + { + return randomAccess().getType(); + } } diff --git a/src/main/java/sc/fiji/labkit/pixel_classification/utils/views/SimpleRAI.java b/src/main/java/sc/fiji/labkit/pixel_classification/utils/views/SimpleRAI.java index 5eff77ed..5cc46493 100644 --- a/src/main/java/sc/fiji/labkit/pixel_classification/utils/views/SimpleRAI.java +++ b/src/main/java/sc/fiji/labkit/pixel_classification/utils/views/SimpleRAI.java @@ -67,4 +67,10 @@ public RandomAccess randomAccess(Interval interval) { public int numDimensions() { return blueprint.numDimensions(); } + + @Override + public T getType() + { + return blueprint.getType(); + } }