mobios.type
Class Image
java.lang.Object
mobios.type.IndexObject
mobios.type.Image
- All Implemented Interfaces:
- Externalizable, Serializable, Comparable<IndexObject>
public class Image
- extends IndexObject
TODO
This is the key of Image. This object stores an array of floating
numbers representing the key for image object. It is designed only for MoBIoS
image dataset, might not work for other datasets.
- Version:
- 2006.07.26
- Author:
- Wenguo Liu, Ru Mao, Willard
- See Also:
- Serialized Form
Constructor Summary |
Image()
|
Image(mobios.db.Table table,
int rowID,
float[] feas)
|
Image(mobios.db.Table table,
int rowID,
float[] feas,
double[] maxDist)
|
Image
public Image()
Image
public Image(mobios.db.Table table,
int rowID,
float[] feas)
Image
public Image(mobios.db.Table table,
int rowID,
float[] feas,
double[] maxDist)
- Parameters:
table
- rowID
- feas
- an array of floats over which the feature values are defined.maxDist
-
getFeature
public float getFeature(int index)
- Parameters:
index
-
- Returns:
size
public int size()
- Specified by:
size
in class IndexObject
- Returns:
- the size of the object
expand
public IndexObject[] expand()
- Description copied from class:
IndexObject
- This method is necessary to implement bucketing, so that similar objects
are only stored once in the database. If you do not
want to implement bucketing for your object, you can just return an
array of length one containing this object.
- Specified by:
expand
in class IndexObject
- Returns:
- an array of
IndexObject
s
compareTo
public int compareTo(IndexObject oThat)
- Specified by:
compareTo
in interface Comparable<IndexObject>
- Specified by:
compareTo
in class IndexObject
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Description copied from class:
IndexObject
- all implementing classes are required to override toString
- Specified by:
toString
in class IndexObject
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Overrides:
writeExternal
in class IndexObject
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Overrides:
readExternal
in class IndexObject
- Throws:
IOException
ClassNotFoundException
(C) 2002 - 2006 The MoBIoS Group