|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Document.Image Document.Windsurf.WindsurfImage
public class WindsurfImage
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 |
---|
public WindsurfImage(ImageID id, WaveletFilterOutput filOut, ClusteringOutput clustOut)
id
- ID of the image.filOut
- output of the Wavelet filter.clustOut
- output of the k-means clustering algorithm.public WindsurfImage(java.util.Vector<java.lang.String> v)
v
- Vector of strings containing ID and features.public WindsurfImage(ImageID id, java.sql.ResultSet rset)
id
- ID of the image.rset
- the ResultSet of the Db query.Method Detail |
---|
public java.lang.String[] toStrings()
toStrings
in class Image
public double distance(WindsurfImage i)
i
- Image to be compared.
public double distance(Image i)
distance
in class Image
i
- Image to be compared.
public double[] getDimReg()
public double[] getCentroids()
public double[] getCovMatrices()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |