|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--jigl.image.SimpleOperator
|
+--jigl.image.ops.ConnectedComponents
Creates the connected regions of a BinaryImage
| Field Summary | |
private int |
background
Background color, either 0 or 1 |
static int |
EIGHT_CONNECTED
Creates Connected Image from all it's neighbors |
static int |
FOUR_CONNECTED
Creates Connected Image from neighbors UP, DOWN, LEFT, and RIGHT |
private int |
neighbors
Number of neighbors for calculation, either FOUR_CONNECTED
or EIGHT_CONNECTED |
| Constructor Summary | |
ConnectedComponents(int numberNeighbors,
int backgroundColor)
Connected component constructor |
|
| Method Summary | |
protected Image |
apply(BinaryImage image)
Returns the GrayImage made up of Connected Regions. |
| Methods inherited from class jigl.image.SimpleOperator |
apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int FOUR_CONNECTED
public static final int EIGHT_CONNECTED
private int neighbors
FOUR_CONNECTED
or EIGHT_CONNECTED
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 |
protected Image apply(BinaryImage image)
apply in class SimpleOperatorimage - BinaryImage to calculate connected regions from
|
JIGL v1.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||