public class WatershedProcessorAlgorithm extends Object
Constructor and Description |
---|
WatershedProcessorAlgorithm(FImage bGreyscaleImage,
IntValuePixel startPixel,
Class<? extends ComponentFeature>... featureClasses)
Default constructor
|
WatershedProcessorAlgorithm(int[][] greyscaleImage,
IntValuePixel startPixel,
Class<? extends ComponentFeature>... featureClasses)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addComponentStackMergeListener(ComponentStackMergeListener csml)
Add a component stack merge listener
|
void |
removeComponentStackMergeListener(ComponentStackMergeListener csml)
Removes the given
ComponentStackMergeListener from the listeners
list. |
void |
startPour()
Start the detection process by pouring on water at the pour point.
|
@SafeVarargs public WatershedProcessorAlgorithm(int[][] greyscaleImage, IntValuePixel startPixel, Class<? extends ComponentFeature>... featureClasses)
greyscaleImage
- the image as a 2d array of integer valuesstartPixel
- The pixel to start the process atfeatureClasses
- the features that should be created for each detected
component@SafeVarargs public WatershedProcessorAlgorithm(FImage bGreyscaleImage, IntValuePixel startPixel, Class<? extends ComponentFeature>... featureClasses)
bGreyscaleImage
- the image to apply the watershed transform toostartPixel
- The pixel to start the process atfeatureClasses
- the features that should be created for each detected
componentpublic void startPour()
public void addComponentStackMergeListener(ComponentStackMergeListener csml)
csml
- The ComponentStackMergeListener
to addpublic void removeComponentStackMergeListener(ComponentStackMergeListener csml)
ComponentStackMergeListener
from the listeners
list.csml
- The ComponentStackMergeListener
to remove