|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFeatureExtractor.Clustering.GenericClustering
FeatureExtractor.Clustering.KMeans.KMeansClustering
public abstract class KMeansClustering
Class for the k-means clustering of images.
| Field Summary |
|---|
| Fields inherited from class FeatureExtractor.Clustering.GenericClustering |
|---|
d |
| Constructor Summary | |
|---|---|
KMeansClustering(ClusteringDistance d,
int n)
Basic constructor. |
|
| Method Summary | |
|---|---|
ClusteringOutput |
cluster(GenericFilterOutput image)
Applies the k-means clustering algorithm to a given filtered image. |
protected abstract java.util.Vector<Pixel> |
selectPixels(GenericFilterOutput image)
Abstract method to extract the pixels to be clustered from the output of the filter. |
java.lang.String |
toString()
Returns a string representation of the k-means clustering algorithm. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KMeansClustering(ClusteringDistance d,
int n)
d - Clustering distance to be used to compare pixels.n - Maximum number of clusters to be generated.| Method Detail |
|---|
public java.lang.String toString()
toString in class GenericClusteringprotected abstract java.util.Vector<Pixel> selectPixels(GenericFilterOutput image)
image - Filtered image to which the clustering algorithm should be applied.
public ClusteringOutput cluster(GenericFilterOutput image)
cluster in class GenericClusteringimage - Filtered image to which the clustering algorithm should be applied.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||