|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openimaj.image.processing.watershed.Component
public class Component
Represents a region or set of pixels (the name is based on the Microsoft paper)
| Field Summary | |
|---|---|
ComponentFeature[] |
features
List of features representing this component |
boolean |
isMSER
Whether this component represents an MSER |
IntValuePixel |
pivot
The pivot pixel |
| Constructor Summary | |
|---|---|
Component(IntValuePixel p,
Class<? extends ComponentFeature>... featureClasses)
Default constructor. |
|
| Method Summary | ||
|---|---|---|
void |
accumulate(IntValuePixel p)
Add a pixel to the component |
|
Component |
clone()
|
|
|
getFeature(Class<T> featureClass)
Get the feature matching the given class if it exists. |
|
ComponentFeature |
getFeature(int index)
Get the feature at the given index |
|
Set<Pixel> |
getPixels()
Get the pixels in the component. |
|
void |
merge(Component p)
Merge another component with this one |
|
int |
size()
The size of the component (i.e. |
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public boolean isMSER
public ComponentFeature[] features
public IntValuePixel pivot
| Constructor Detail |
|---|
public Component(IntValuePixel p,
Class<? extends ComponentFeature>... featureClasses)
p - The grey level of the componentfeatureClasses - the list of features to create for the component| Method Detail |
|---|
public String toString()
toString in class ObjectAbstractCollection.toString()public void accumulate(IntValuePixel p)
p - the pixel to addpublic void merge(Component p)
p - the component to merge into thispublic int size()
public Set<Pixel> getPixels()
PixelsFeature then the pixels will be returned from
that; otherwise a set containing just the pivot pixel will be
returned.
public Component clone()
clone in class Objectpublic ComponentFeature getFeature(int index)
index - the index
public <T extends ComponentFeature> T getFeature(Class<T> featureClass)
T - the class of the featurefeatureClass - the class of the feature
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||