From c7753186bdf7ecaf9edf5accabdd5c32e79e46b4 Mon Sep 17 00:00:00 2001 From: Stephane Dallongeville <stephane.dallongeville@pasteur.fr> Date: Tue, 12 Jul 2022 12:18:59 +0200 Subject: [PATCH] small fix --- .../WaveletSpotDetectorBlock.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/plugins/fab/waveletspotdetectorblock/WaveletSpotDetectorBlock.java b/src/plugins/fab/waveletspotdetectorblock/WaveletSpotDetectorBlock.java index c63f413..2b51f70 100644 --- a/src/plugins/fab/waveletspotdetectorblock/WaveletSpotDetectorBlock.java +++ b/src/plugins/fab/waveletspotdetectorblock/WaveletSpotDetectorBlock.java @@ -138,15 +138,14 @@ public class WaveletSpotDetectorBlock extends Plugin implements Block // Perform detection. - ArrayList<DetectionSpot> detectionResult; - detectionResult = waveletCore.computeDetection(true, UDWTScaleArrayList, inputComputationSequence, - detectNegative, computeWATwithROI, force2DWaveletVar.getValue()); + try + { + ArrayList<DetectionSpot> detectionResult = waveletCore.computeDetection(true, UDWTScaleArrayList, inputComputationSequence, + detectNegative, computeWATwithROI, force2DWaveletVar.getValue()); // System.out.println( "ROI Mask : " + inputROIForMask.getValue() ); // Filter spot with ROIs. - try - { if (inputROIForMask.getValue().length != 0) { ArrayList<DetectionSpot> detectionResultCopy = new ArrayList<DetectionSpot>(detectionResult); -- GitLab