|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjjil.algorithm.GrayConnComp
public class GrayConnComp
Gray connected components. Input is a Gray8Image. Pixels with value Byte.MIN_VALUE are taken to be background. Other connected pixels are labeled with unique labels. The connected component image can be retrieved, as can the connected component bounding rectangles, sorted by area.
Constructor Summary | |
---|---|
GrayConnComp()
Creates a new instance of GrayConnComp. |
Method Summary | |
---|---|
Rect |
getComponent(int nComponent)
Returns the nComponent'th bounding rectangle in order by size. |
int |
getComponents()
Get the number of connected components in the labeled image. |
Gray16Image |
getLabeledImage()
Get the labeled image |
void |
push(Image image)
Compute connected components of input gray image using a union-find algorithm. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrayConnComp()
Method Detail |
---|
public Rect getComponent(int nComponent) throws Error
nComponent
- the number of the component to return.
Error
- if nComponent is greater than the number of components available.public int getComponents() throws Error
Error
- if BinaryHeap returns jjil.core.Error due to coding error.public Gray16Image getLabeledImage()
public void push(Image image) throws Error
image
- the input image.
Error
- if the image is not a gray 8-bit image.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |