|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--jigl.image.utils.ConnectedComponents
Creates the connected regions of a BinaryImage. This class is the same as
jigl.image.ops.ConnectedComponent except that it is not a subclass of
SimpleOperator.
| Field Summary | |
private int |
background
|
private int |
EIGHT_CONNECTED
Creates Connected Image from neighbors UP, DOWN, LEFT, and RIGHT |
private int |
FOUR_CONNECTED
|
private int |
neighbors
Creates Connected Image from all it's neighbors |
| Constructor Summary | |
ConnectedComponents(int numberNeighbors,
int backgroundColor)
Connected component constructor |
|
| Method Summary | |
GrayImage |
apply(BinaryImage image)
Returns the GrayImage made up of Connected Regions the background color is set to zero, and the region values start at 1 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private final int FOUR_CONNECTED
private final int EIGHT_CONNECTED
private int neighbors
private int background
| Constructor Detail |
public ConnectedComponents(int numberNeighbors,
int backgroundColor)
throws InvalidArgumentException
numberNeighbors - either FOUR_CONNECTED, or EIGHT_CONNECTEDbackgroundColor - either 0 or 1| Method Detail |
public GrayImage apply(BinaryImage image)
|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||