FeatureExtractor.Clustering
Class GenericClustering

java.lang.Object
  extended by FeatureExtractor.Clustering.GenericClustering
Direct Known Subclasses:
KMeansClustering

public abstract class GenericClustering
extends java.lang.Object

Abstract class for the clustering of images.


Field Summary
protected  ClusteringDistance d
          The clustering distance used to compare the pixels
 
Constructor Summary
GenericClustering(ClusteringDistance d)
          Basic constructor.
 
Method Summary
abstract  ClusteringOutput cluster(GenericFilterOutput image)
          Applies the clustering algorithm to a given filtered image.
abstract  java.lang.String toString()
          Returns a string representation of this clustering algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

d

protected ClusteringDistance d
The clustering distance used to compare the pixels

Constructor Detail

GenericClustering

public GenericClustering(ClusteringDistance d)
Basic constructor.

Parameters:
d - The clustering distance to be used to compare pixels.
Method Detail

toString

public abstract java.lang.String toString()
Returns a string representation of this clustering algorithm.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this clustering algorithm.

cluster

public abstract ClusteringOutput cluster(GenericFilterOutput image)
Applies the clustering algorithm to a given filtered image.

Parameters:
image - Filtered image to which the clustering algorithm should be applied.
Returns:
Clustering result.