Interface | Description |
---|---|
Algo |
An interface for managing progression and status changes of algorithms.
|
AlgoListener |
Interface for managing progression and status changes of an algorithm.
|
Class | Description |
---|---|
AlgoEvent |
An event class for storing information about the status and progression of
an algorithm.
|
AlgoStub |
A minimal implementation of algorithm for managing progression listeners.
|
DefaultAlgoListener |
Utility class that catches algorithm events and displays them on ImageJ
main Frame.
|
// create ImageJ instance and open an image
new ImageJ();
ImagePlus imagePlus = IJ.openImage("http://imagej.nih.gov/ij/images/NileBend.jpg");
imagePlus.show("Input");
// Create an operator (here a structuring element operation)
Strel strel = SquareStrel.fromDiameter(21);
// uses default listener. This will display progress in ImageJ progress bar
// and display status in ImageJ status bar
DefaultAlgoListener.monitor(strel);
// run the operator on input image
ImageProcessor image = imagePlus.getProcessor();
ImageProcessor result = Morphology.dilation(image, strel);
ImagePlus resultPlus = new ImagePlus("Result", result);
resultPlus.show("Result");
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.