From 999b19e73ed5aae58a47fd82684775a90592149d Mon Sep 17 00:00:00 2001 From: ctrebeau <ctrebeau@pasteur.fr> Date: Tue, 12 Nov 2024 11:34:07 +0100 Subject: [PATCH] Code cleanup --- .../zellige/steps/selection/pretreatment/Pretreatment.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 c951595..875bcfa 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()); -- GitLab