diff --git a/src/main/java/fr/pasteur/ida/zellige/steps/selection/pretreatment/Pretreatment.java b/src/main/java/fr/pasteur/ida/zellige/steps/selection/pretreatment/Pretreatment.java index c951595b057e6ae4049c3aa7827f0a2cffd4e1e7..875bcfa28f6db53bcf1fd8b0ac7f8418d36eea2e 100644 --- a/src/main/java/fr/pasteur/ida/zellige/steps/selection/pretreatment/Pretreatment.java +++ b/src/main/java/fr/pasteur/ida/zellige/steps/selection/pretreatment/Pretreatment.java @@ -82,7 +82,7 @@ public class Pretreatment< T extends RealType< T > & NativeType< T > > { throw new BinningFailedException(); } - Img< FloatType > output = gaussianBlurFilterDenoising( temp, temp.factory(), radius ); // Filtering op + Img< FloatType > output = gaussianBlurFilterDenoising( temp, radius ); // Filtering op // The denoised image is normalized between 0 and 255 output = normalizeImage( output, output.factory() ); // normalizing op @@ -129,11 +129,10 @@ public class Pretreatment< T extends RealType< T > & NativeType< T > > /** * Applies a gaussian filter to a noisy image * - * @param input the noisy image as a {@link RandomAccessibleInterval} - * @param factory the input factory + * @param input the noisy image as a {@link RandomAccessibleInterval} * @return a denoised image as a {@link Img} */ - private static < T extends RealType< T > & NativeType< T > > Img< FloatType > gaussianBlurFilterDenoising( RandomAccessibleInterval< T > input, ImgFactory< T > factory, double radius ) + private static < T extends RealType< T > & NativeType< T > > Img< FloatType > gaussianBlurFilterDenoising( RandomAccessibleInterval< T > input, double radius ) { Dimensions dimensions = new FinalDimensions( input.dimension( 0 ), input.dimension( 1 ), input.dimension( 2 ) ); ImgFactory< FloatType > newImgFactory = Util.getArrayOrCellImgFactory(dimensions, new FloatType());