public class DefaultAlgoListener extends Object implements AlgoListener
Example of use:
 // init image and process 
 ImageProcessor image = ...
 Strel strel = SquareStrel.fromDiameter(15);
 
 // Add monitoring of the process  
 DefaultAlgoListener.monitor(strel);
 
 // run process. The IJ frame will display progress
 strel.dilation(image);
 | Constructor and Description | 
|---|
DefaultAlgoListener()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
algoProgressChanged(AlgoEvent evt)
The method devoted to manage the change in the progression of the
 algorithm. 
 | 
void | 
algoStatusChanged(AlgoEvent evt)
The method devoted to manage the change in the status of the
 algorithm. 
 | 
static void | 
monitor(Algo algo)
Static method that creates a new instance of DefaultAlgoListener, and 
 add it to the given algorithm. 
 | 
public static final void monitor(Algo algo)
 // read demo image
 String imageURL = "http://imagej.nih.gov/ij/images/NileBend.jpg";
 ImageProcessor image = IJ.openImage(imageURL).getProcessor();
 // init processor class
 Strel strel = SquareStrel.fromDiameter(15);
 // Add monitoring of the process  
 DefaultAlgoListener.monitor(strel);
 // run process. The IJ frame will display progress
 strel.dilation(image);
 algo - the algorithm to monitorpublic void algoProgressChanged(AlgoEvent evt)
AlgoListeneralgoProgressChanged in interface AlgoListenerevt - the AlgoEvent instance containing info about the algorithm.public void algoStatusChanged(AlgoEvent evt)
AlgoListeneralgoStatusChanged in interface AlgoListenerevt - the AlgoEvent instance containing info about the algorithm.Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.