|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object FeatureExtractor.Clustering.Cluster
public class Cluster
A generic cluster, composed of a representative point and the set of pixels associated to it.
Constructor Summary | |
---|---|
Cluster()
Basic constructor. |
Method Summary | |
---|---|
void |
add(Pixel p)
Adds a new pixel to the cluster. |
Pixel |
getPixel(int pos)
Returns the pixel at a specified position. |
java.util.Vector<Pixel> |
getPixels()
Returns all the pixels of this cluster. |
ClusteringFeatures |
getRepresentativePoint()
Returns the cluster representative point. |
void |
removeAllPixels()
Removes all the pixels of this cluster. |
void |
setRepresentativePoint(ClusteringFeatures c)
Modifies the cluster representative point. |
int |
size()
Returns the size of the cluster, i.e., the number of its pixels. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cluster()
Method Detail |
---|
public void setRepresentativePoint(ClusteringFeatures c)
c
- The new representative point.public ClusteringFeatures getRepresentativePoint()
public void add(Pixel p)
p
- Pixel to be added to this cluster.public void removeAllPixels()
public int size()
public Pixel getPixel(int pos)
pos
- Requested position.
public java.util.Vector<Pixel> getPixels()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |