From 6c1acf88cf82a35edc2f8bc66a7f74aa5bdedf2d Mon Sep 17 00:00:00 2001 From: tpietzsch Date: Fri, 5 Apr 2024 21:46:30 +0200 Subject: [PATCH] Add missing getType() implementations --- .../neighborhood/NeighborhoodRandomAccessible.java | 6 ++++++ .../labkit/pixel_classification/utils/views/SimpleRAI.java | 6 ++++++ 2 files changed, 12 insertions(+) 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(); + } }