|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jaitools.imageutils.FillResult
public class FillResult
This class is used by the RegionalizeOpImage and FloodFiller
to record data describing an image region that has just been flood-filled.
Although public, it is not intended for general use unless you are modifying or sub-classing the flood fill classes.
| Constructor Summary | |
|---|---|
FillResult(int id,
double value,
List<FloodFiller.ScanSegment> segments)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
contains(int x,
int y)
Checks if this region contains the given location. |
void |
expand(FillResult other)
Merges the given region into this region. |
Rectangle |
getBounds()
Gets the bounds of this region. |
int |
getID()
Gets the ID of this region. |
int |
getNumPixels()
Gets the number of pixels within this region. |
double |
getValue()
Gets the reference value of this region. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FillResult(int id,
double value,
List<FloodFiller.ScanSegment> segments)
id - unique ID assigned to this regionvalue - representative value of pixels in this regionsegments - list of line segments making up this region| Method Detail |
|---|
public boolean contains(int x,
int y)
x - X ordinatey - Y ordinate
true if the region contains the location;
false otherwisepublic void expand(FillResult other)
At present, this method doesn't bother about merging scan segments, it just adds the other region's segments and updates the index and bounds as necessary.
other - other regionpublic int getID()
public Rectangle getBounds()
public int getNumPixels()
public double getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||