diff --git a/src/main/java/spim/process/fusion/weights/Blending.java b/src/main/java/spim/process/fusion/weights/Blending.java index f55d6ba5..c6474ebb 100644 --- a/src/main/java/spim/process/fusion/weights/Blending.java +++ b/src/main/java/spim/process/fusion/weights/Blending.java @@ -69,4 +69,10 @@ public RealRandomAccess realRandomAccess( final RealInterval interval { return realRandomAccess(); } + + @Override + public FloatType getType() + { + return new FloatType(); + } } diff --git a/src/main/java/spim/process/fusion/weights/ContentBased.java b/src/main/java/spim/process/fusion/weights/ContentBased.java index 1bae2e58..7b661caf 100644 --- a/src/main/java/spim/process/fusion/weights/ContentBased.java +++ b/src/main/java/spim/process/fusion/weights/ContentBased.java @@ -139,6 +139,12 @@ public RealRandomAccess realRandomAccess( final RealInterval interval ).realRandomAccess( interval ); } + @Override + public FloatType getType() + { + return new FloatType(); + } + final private static Img< FloatType > createGaussianKernel( final double[] sigmas ) { final int numDimensions = sigmas.length; diff --git a/src/main/java/spim/process/fusion/weights/NormalizingRandomAccessibleInterval.java b/src/main/java/spim/process/fusion/weights/NormalizingRandomAccessibleInterval.java index 59db4523..22908e3b 100644 --- a/src/main/java/spim/process/fusion/weights/NormalizingRandomAccessibleInterval.java +++ b/src/main/java/spim/process/fusion/weights/NormalizingRandomAccessibleInterval.java @@ -71,6 +71,12 @@ public RandomAccess< T > randomAccess() @Override public RandomAccess< T > randomAccess( final Interval interval ) { return randomAccess(); } + @Override + public T getType() + { + return type; + } + @Override public long min( final int d ){ return interval.min( 0 ); } diff --git a/src/main/java/spim/process/fusion/weights/TransformedRealRandomAccessibleInterval.java b/src/main/java/spim/process/fusion/weights/TransformedRealRandomAccessibleInterval.java index 12916014..f91120fa 100644 --- a/src/main/java/spim/process/fusion/weights/TransformedRealRandomAccessibleInterval.java +++ b/src/main/java/spim/process/fusion/weights/TransformedRealRandomAccessibleInterval.java @@ -70,6 +70,12 @@ public RandomAccess< T > randomAccess() @Override public RandomAccess< T > randomAccess( final Interval interval ) { return randomAccess(); } + @Override + public T getType() + { + return zero; + } + @Override public long min( final int d ){ return transformedInterval.min( d ); }