Document.Windsurf
Class WindsurfImage

java.lang.Object
  extended by Document.Image
      extended by Document.Windsurf.WindsurfImage

public class WindsurfImage
extends Image

Class representing a Windsurf image


Field Summary
 
Fields inherited from class Document.Image
ID, regions, size
 
Constructor Summary
WindsurfImage(ImageID id, java.sql.ResultSet rset)
          Creates an image with a particular ID from the result of a DB query.
WindsurfImage(ImageID id, WaveletFilterOutput filOut, ClusteringOutput clustOut)
          Creates an image with a particular ID from the output of the Wavelet filter and the clustering algorithm.
WindsurfImage(java.util.Vector<java.lang.String> v)
          Creates an image from a vector of strings.
 
Method Summary
 double distance(Image i)
          Method for computing the distance to another image.
 double distance(WindsurfImage i)
          Specific method for computing the distance to another image.
 double[] getCentroids()
          Returns an array containing centroids of image regions.
 double[] getCovMatrices()
          Returns an array containing covariance matrices of image regions.
 double[] getDimReg()
          Returns an array containing sizes of image regions.
 java.lang.String[] toStrings()
          Returns an array of Strings representing features of image regions together with other image information.
 
Methods inherited from class Document.Image
deleteRegionAt, deleteRegionID, getID, getNumRegions, getRegionAt, getRegionID, getSize, setSize, toString, updateSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WindsurfImage

public WindsurfImage(ImageID id,
                     WaveletFilterOutput filOut,
                     ClusteringOutput clustOut)
Creates an image with a particular ID from the output of the Wavelet filter and the clustering algorithm.

Parameters:
id - ID of the image.
filOut - output of the Wavelet filter.
clustOut - output of the k-means clustering algorithm.

WindsurfImage

public WindsurfImage(java.util.Vector<java.lang.String> v)
Creates an image from a vector of strings.

Parameters:
v - Vector of strings containing ID and features.

WindsurfImage

public WindsurfImage(ImageID id,
                     java.sql.ResultSet rset)
Creates an image with a particular ID from the result of a DB query.

Parameters:
id - ID of the image.
rset - the ResultSet of the Db query.
Method Detail

toStrings

public java.lang.String[] toStrings()
Returns an array of Strings representing features of image regions together with other image information.

Specified by:
toStrings in class Image
Returns:
The dscription array of strings.

distance

public double distance(WindsurfImage i)
Specific method for computing the distance to another image.

Parameters:
i - Image to be compared.
Returns:
The distance between the two images.

distance

public double distance(Image i)
Method for computing the distance to another image.

Specified by:
distance in class Image
Parameters:
i - Image to be compared.
Returns:
The distance between the two images.

getDimReg

public double[] getDimReg()
Returns an array containing sizes of image regions.

Returns:
Array containing sizes of image regions.

getCentroids

public double[] getCentroids()
Returns an array containing centroids of image regions.

Returns:
Array containing centroids of image regions.

getCovMatrices

public double[] getCovMatrices()
Returns an array containing covariance matrices of image regions.

Returns:
Array containing covariance matrices of image regions.