FeatureExtractor.Clustering
Class Pixel

java.lang.Object
  extended by FeatureExtractor.Clustering.Pixel

public class Pixel
extends java.lang.Object

Class representing an image pixel (for clustering purposes).


Constructor Summary
Pixel(int x, int y, ClusteringFeatures features)
          Basic constructor.
 
Method Summary
 ClusteringFeatures getFeatures()
          Returns the features of this pixel.
 int getX()
          Returns the x coordinate of this pixel.
static java.util.Vector<java.lang.Integer> getX(java.util.Vector<Pixel> v)
          Extracts all the x coordinates of a vector of pixels.
 int getY()
          Returns the y coordinate of this pixel.
static java.util.Vector<java.lang.Integer> getY(java.util.Vector<Pixel> v)
          Extracts all the y coordinates of a vector of pixels.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pixel

public Pixel(int x,
             int y,
             ClusteringFeatures features)
Basic constructor.

Parameters:
x - Pixel x coordinate.
y - Pixel y coordinate.
features - Pixel features.
Method Detail

getX

public int getX()
Returns the x coordinate of this pixel.

Returns:
The x coordinate of this pixel.

getY

public int getY()
Returns the y coordinate of this pixel.

Returns:
The y coordinate of this pixel.

getFeatures

public ClusteringFeatures getFeatures()
Returns the features of this pixel.

Returns:
The features of this pixel.

getX

public static java.util.Vector<java.lang.Integer> getX(java.util.Vector<Pixel> v)
Extracts all the x coordinates of a vector of pixels.

Parameters:
v - Vector of pixels whose x coordinates are to be extracted.
Returns:
Vector of x coordinates of the given pixels.

getY

public static java.util.Vector<java.lang.Integer> getY(java.util.Vector<Pixel> v)
Extracts all the y coordinates of a vector of pixels.

Parameters:
v - Vector of pixels whose y coordinates are to be extracted.
Returns:
Vector of y coordinates of the given pixels.