diff --git a/src/plugins/fab/waveletspotdetectorblock/WaveletSpotDetectorBlock.java b/src/plugins/fab/waveletspotdetectorblock/WaveletSpotDetectorBlock.java index c63f413db53f6ad34c9d8501ece12ce206bf139e..2b51f70b230e50d5f823e484c5df8c594f33178a 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);