FeatureExtractor.Clustering.Windsurf
Class WindsurfClusteringFeatures

java.lang.Object
  extended by FeatureExtractor.Clustering.ClusteringFeatures
      extended by FeatureExtractor.Clustering.Windsurf.WindsurfClusteringFeatures

public class WindsurfClusteringFeatures
extends ClusteringFeatures

Class representing the clustering features for Windsurf.


Constructor Summary
WindsurfClusteringFeatures()
          Default constructor (sets all features to 0).
WindsurfClusteringFeatures(double h, double s, double v)
          Basic constructor.
WindsurfClusteringFeatures(WindsurfClusteringFeatures p)
          Copy constructor.
 
Method Summary
 void clear()
          Clears the features of this object.
 ClusteringFeatures clone()
          Creates a new WindsurfClusteringFeatures object as a copy of this object.
static HSVImage createHSV(ClusteringFeatures[][] data)
          Extracts the HSV features from a matrix of WindsurfClusteringFeatures.
 ClusteringFeatures diff(ClusteringFeatures p)
          Subtracts the features of a given object to those of this object.
 double getH()
          Returns the H(ue) value.
 double getS()
          Returns the S(aturation) value.
 double getV()
          Returns the V(alue) (intensity) value.
 ClusteringFeatures normalize(double n)
          Normalizes the features of this object.
 int size()
          Returns the number of features for this object.
 ClusteringFeatures sum(ClusteringFeatures p)
          Adds the features of this object to those of a given object.
 
Methods inherited from class FeatureExtractor.Clustering.ClusteringFeatures
computeCentroid
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindsurfClusteringFeatures

public WindsurfClusteringFeatures()
Default constructor (sets all features to 0).


WindsurfClusteringFeatures

public WindsurfClusteringFeatures(WindsurfClusteringFeatures p)
Copy constructor.

Parameters:
p - The WindsurfClusteringFeatures object to be copied.

WindsurfClusteringFeatures

public WindsurfClusteringFeatures(double h,
                                  double s,
                                  double v)
Basic constructor.

Parameters:
h - H(ue) value.
s - S(aturation) value.
v - V(alue) (intensity) value.
Method Detail

size

public int size()
Returns the number of features for this object.

Specified by:
size in class ClusteringFeatures
Returns:
The number of features for this object.

getH

public double getH()
Returns the H(ue) value.

Returns:
The H(ue) value.

getS

public double getS()
Returns the S(aturation) value.

Returns:
The S(aturation) value.

getV

public double getV()
Returns the V(alue) (intensity) value.

Returns:
The V(alue) (intensity) value.

clone

public ClusteringFeatures clone()
Creates a new WindsurfClusteringFeatures object as a copy of this object.

Specified by:
clone in class ClusteringFeatures
Returns:
A new WindsurfClusteringFeatures object.

clear

public void clear()
Clears the features of this object.

Specified by:
clear in class ClusteringFeatures

sum

public ClusteringFeatures sum(ClusteringFeatures p)
Adds the features of this object to those of a given object.

Specified by:
sum in class ClusteringFeatures
Parameters:
p - The features to be added.
Returns:
A new WindsurfClusteringFeatures object as the sum of the two objects.

diff

public ClusteringFeatures diff(ClusteringFeatures p)
Subtracts the features of a given object to those of this object.

Specified by:
diff in class ClusteringFeatures
Parameters:
p - The features to be subtracted.
Returns:
A new WindsurfClusteringFeatures object as the difference of the two objects.

normalize

public ClusteringFeatures normalize(double n)
Normalizes the features of this object.

Specified by:
normalize in class ClusteringFeatures
Parameters:
n - The value used to normalize the features.
Returns:
A new WindsurfClusteringFeatures object with normalized features.

createHSV

public static HSVImage createHSV(ClusteringFeatures[][] data)
Extracts the HSV features from a matrix of WindsurfClusteringFeatures.

Parameters:
data - The matrix of WindsurfClusteringFeatures where features are to be extracted.
Returns:
An HSVImage containing HSV features.