Package inra.ijpb.label.edit
Class FindAllLabels
java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.label.edit.FindAllLabels
- All Implemented Interfaces:
Algo
public class FindAllLabels extends AlgoStub
Extract the set of unique labels existing in the given image, excluding the
value zero (used for background).
- Author:
- dlegland
-
Constructor Summary
Constructors Constructor Description FindAllLabels()
Default empty constructor. -
Method Summary
Modifier and Type Method Description int[]
process(ij.ImagePlus image)
Returns the set of unique labels existing in the given image, excluding the value zero (used for background).int[]
process(ij.ImageStack image)
Returns the set of unique labels existing in the given stack, excluding the value zero (used for background).int[]
process(ij.process.ImageProcessor image)
Returns the set of unique labels existing in the given image, excluding the value zero (used for background).Methods inherited from class inra.ijpb.algo.AlgoStub
addAlgoListener, removeAlgoListener
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
FindAllLabels
public FindAllLabels()Default empty constructor.
-
-
Method Details
-
process
public int[] process(ij.ImagePlus image)Returns the set of unique labels existing in the given image, excluding the value zero (used for background).- Parameters:
image
- an instance of ImagePlus containing a label image- Returns:
- the list of unique labels present in image (without background)
-
process
public int[] process(ij.process.ImageProcessor image)Returns the set of unique labels existing in the given image, excluding the value zero (used for background).- Parameters:
image
- a label image- Returns:
- the list of unique labels present in image (without background)
-
process
public int[] process(ij.ImageStack image)Returns the set of unique labels existing in the given stack, excluding the value zero (used for background).- Parameters:
image
- a 3D label image- Returns:
- the list of unique labels present in image (without background)
-