I - type of imagepublic class FloodFill<I extends Image<?,I> & SinglebandImageProcessor.Processable<Float,FImage,I>> extends Object implements ImageAnalyser<I>
| Constructor and Description |
|---|
FloodFill(int x,
int y,
float threshold)
Construct flood-fill processor with the given threshold and starting
coordinate.
|
FloodFill(Pixel startPixel,
float threshold)
Construct flood-fill processor with the given threshold and starting
coordinate.
|
| Modifier and Type | Method and Description |
|---|---|
protected static <T> boolean |
accept(Image<T,?> image,
Pixel n,
T initial,
float threshold) |
void |
analyseImage(I image)
Analyse an image.
|
static <T> FImage |
floodFill(Image<T,?> image,
int startx,
int starty,
float threshold)
Flood-fill an image from the given starting pixel position with the given
threshold.
|
static <T> FImage |
floodFill(Image<T,?> image,
Pixel start,
float threshold)
Flood-fill an image from the given starting pixel position with the given
threshold.
|
FImage |
getFlooded()
Get the binary flooded image map
|
public FloodFill(int x, int y, float threshold)
x - x-coordinate of start pixely - y-coordinate of start pixelthreshold - threshold for determing whether a pixel should be floodedpublic void analyseImage(I image)
ImageAnalyseranalyseImage in interface ImageAnalyser<I extends Image<?,I> & SinglebandImageProcessor.Processable<Float,FImage,I>>image - The image to process in place.public FImage getFlooded()
public static <T> FImage floodFill(Image<T,?> image, int startx, int starty, float threshold)
T - The pixel type of the imageimage - the imagestartx - the x-coordinate of the start pixelstarty - the y-coordinate of the start pixelthreshold - the threshold for determining with a pixel should be filledpublic static <T> FImage floodFill(Image<T,?> image, Pixel start, float threshold)
T - The pixel type of the imageimage - the imagestart - the start pixelthreshold - the threshold for determining with a pixel should be filled