|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Document.Region Document.Windsurf.WindsurfRegion
public class WindsurfRegion
Class representing a Windsurf region
Field Summary |
---|
Fields inherited from class Document.Region |
---|
id, size |
Constructor Summary | |
---|---|
WindsurfRegion(java.lang.String[] s)
Creates a region from an array of strings. |
|
WindsurfRegion(WaveletFilterOutput filOut,
ClusteringOutput clustOut,
int id)
Creates a region with a particular ID from the output of the Wavelet filter and the clustering algorithm. |
Method Summary | |
---|---|
double |
distance(Region r)
Method for computing the distance to another region. |
double |
distance(WindsurfRegion r)
Specific method for computing the distance to another region. |
java.lang.String |
featuresToString()
Returns a string representation of the features of this region. |
WindsurfBand |
getBandAt(int numBand)
Returns a specific band of this region. |
WindsurfBand[] |
getBands()
Returns the array of bands in this region. |
double[] |
getCentroid()
Returns the centroid of this region. |
double[] |
getCovMatrix()
Returns the covariance matrix of this region. |
static int |
getNumBands()
Returns the number of bands of each region. |
static double |
normalize(double distance)
Normalizes the distance between regions in the interval [0,1]. |
java.lang.String |
toString()
Returns a string representation of this region. |
static void |
useNoSizes()
Tells the class not to use region sizes in determining region distance |
static void |
useSizes()
Tells the class to use region sizes in determining region distance |
Methods inherited from class Document.Region |
---|
getID, getSize, setID, setSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WindsurfRegion(WaveletFilterOutput filOut, ClusteringOutput clustOut, int id)
filOut
- output of the Wavelet filter.clustOut
- output of the k-means clustering algorithm.id
- ID of the image.public WindsurfRegion(java.lang.String[] s)
s
- Array of strings containing ID and features.Method Detail |
---|
public static void useSizes()
public static void useNoSizes()
public static int getNumBands()
public WindsurfBand[] getBands()
public WindsurfBand getBandAt(int numBand)
numBand
- Number of specific requested band.
null
if such band does not exist).public java.lang.String featuresToString()
public java.lang.String toString()
toString
in class java.lang.Object
public double distance(Region r)
distance
in class Region
r
- Region to be compared.
public double distance(WindsurfRegion r)
r
- Region to be compared.
public static double normalize(double distance)
distance
- Distance value to be normalized.
public double[] getCentroid()
public double[] getCovMatrix()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |