public abstract class MetaObjectSAPIR extends MetaObject implements BinarySerializable
Modifier and Type | Class and Description |
---|---|
static class |
MetaObjectSAPIR.XMLHandlerSAPIR
Internal class that parses SAPIR XML
|
LocalAbstractObject.DataEqualObject, LocalAbstractObject.TextStreamFactory<T extends LocalAbstractObject>, LocalAbstractObject.TrivialDistanceFunction
Modifier and Type | Field and Description |
---|---|
protected ObjectColorLayout |
colorLayout
Object for the ColorLayoutType
|
protected ObjectShortVectorL1 |
colorStructure
Object for the ColorStructureType
|
protected static java.lang.String[] |
descriptorNames
The list of the names for the encapsulated objects
|
protected ObjectVectorEdgecomp |
edgeHistogram
Object for the EdgeHistogramType
|
protected ObjectHomogeneousTexture |
homogeneousTexture
Object for the HomogeneousTextureType
|
protected ObjectGPSCoordinate |
location
Object for the Location
|
protected ObjectIntVectorL1 |
scalableColor
Object for the ScalableColorType
|
counterDistanceComputations, counterLowerBoundDistanceComputations, counterPrecomputedDistanceSavings, counterUpperBoundDistanceComputations, MAX_DISTANCE, MIN_DISTANCE, suppData, trivialDistanceFunction, UNKNOWN_DISTANCE
Modifier | Constructor and Description |
---|---|
protected |
MetaObjectSAPIR(BinaryInput input,
BinarySerializator serializator)
Creates a new instance of MetaObjectSAPIR loaded from binary input buffer.
|
|
MetaObjectSAPIR(java.io.BufferedReader stream)
Creates a new instance of MetaObjectSAPIR
|
|
MetaObjectSAPIR(java.io.BufferedReader stream,
java.util.Set<java.lang.String> restrictNames)
Creates a new instance of MetaObjectSAPIR
|
|
MetaObjectSAPIR(java.io.BufferedReader stream,
java.lang.String[] restrictNames)
Creates a new instance of MetaObjectSAPIR
|
|
MetaObjectSAPIR(java.lang.String locatorURI,
java.util.Map<java.lang.String,LocalAbstractObject> objects) |
|
MetaObjectSAPIR(java.lang.String locatorURI,
java.util.Map<java.lang.String,LocalAbstractObject> objects,
boolean cloneObjects) |
|
MetaObjectSAPIR(java.lang.String locatorURI,
ObjectColorLayout colorLayout,
ObjectShortVectorL1 colorStructure,
ObjectVectorEdgecomp edgeHistogram,
ObjectHomogeneousTexture homogeneousTexture,
ObjectIntVectorL1 scalableColor,
ObjectGPSCoordinate location)
Creates a new instance of MetaObjectSAPIR
|
Modifier and Type | Method and Description |
---|---|
int |
binarySerialize(BinaryOutput output,
BinarySerializator serializator)
Binary-serialize this object into the
output . |
LocalAbstractObject |
clone(boolean cloneFilterChain)
Creates and returns a copy of this object.
|
LocalAbstractObject |
cloneRandomlyModify(java.lang.Object... args)
Creates and returns a randomly modified copy of this object.
|
int |
getBinarySize(BinarySerializator serializator)
Returns the exact size of the binary-serialized version of this object in bytes.
|
LocalAbstractObject |
getObject(java.lang.String name)
Returns the encapsulated object for given symbolic name.
|
int |
getObjectCount()
Returns the number of encapsulated objects.
|
java.util.Map<java.lang.String,LocalAbstractObject> |
getObjectMap()
Returns a collection of all the encapsulated objects associated with their symbolic names.
|
java.util.Collection<java.lang.String> |
getObjectNames()
Returns a set of symbolic names of the encapsulated objects.
|
java.util.Collection<LocalAbstractObject> |
getObjects()
Returns a collection of all the encapsulated objects.
|
java.lang.String |
getObjectsXML() |
java.lang.String |
getObjectXML(java.lang.String name) |
static java.lang.String[] |
getSupportedVisualDescriptorTypes()
Returns list of supported visual descriptor types that this object recognizes in XML.
|
protected void |
writeData(java.io.OutputStream stream)
Store this object to a text stream.
|
clearSurplusData, containsObject, createMetaDistancesHolder, createSearchMetaObject, dataEquals, dataHashCode, fillMetaDistances, fillMetaDistances, getDistanceImpl, getDistanceImpl, getObjectFromMap, getSize, implementationGetDistance, readObject, readObject, readObjects, readObjects, readObjectsHeader, toString, writeObjects, writeObjectsHeader
clone, create, create, excludeUsingPrecompDist, getDistance, getDistance, getDistance, getDistanceFilter, getDistanceFilter, getDistanceFilter, getDistanceFilter, getDistanceLowerBound, getDistanceLowerBoundImpl, getDistanceStorePrecomputed, getDistanceStorePrecomputed, getDistanceStorePrecomputed, getDistanceUpperBound, getDistanceUpperBoundImpl, getFieldsForNames, getMaxDistance, getNormDistance, getPrecomputedDistance, getPrecomputedDistance, getRandomChar, getRandomNormal, chainDestroy, chainFilter, includeUsingPrecompDist, isDistanceCompatible, parseObjectComment, peekNextChar, readAttributesFromStream, readObjectComments, readObjectCommentsWithoutData, unchainFilter, write, write, writeAttributesToStream, writeObjectComment
clone, getLocatorURI, getNoDataObject, getObjectKey, getObjectKey, getObjectLocatorURI, setObjectKey
protected static final java.lang.String[] descriptorNames
protected ObjectColorLayout colorLayout
protected ObjectShortVectorL1 colorStructure
protected ObjectVectorEdgecomp edgeHistogram
protected ObjectHomogeneousTexture homogeneousTexture
protected ObjectIntVectorL1 scalableColor
protected ObjectGPSCoordinate location
public MetaObjectSAPIR(java.lang.String locatorURI, ObjectColorLayout colorLayout, ObjectShortVectorL1 colorStructure, ObjectVectorEdgecomp edgeHistogram, ObjectHomogeneousTexture homogeneousTexture, ObjectIntVectorL1 scalableColor, ObjectGPSCoordinate location)
public MetaObjectSAPIR(java.lang.String locatorURI, java.util.Map<java.lang.String,LocalAbstractObject> objects, boolean cloneObjects) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public MetaObjectSAPIR(java.lang.String locatorURI, java.util.Map<java.lang.String,LocalAbstractObject> objects)
public MetaObjectSAPIR(java.io.BufferedReader stream, java.util.Set<java.lang.String> restrictNames) throws java.io.IOException
java.io.IOException
public MetaObjectSAPIR(java.io.BufferedReader stream, java.lang.String[] restrictNames) throws java.io.IOException
java.io.IOException
public MetaObjectSAPIR(java.io.BufferedReader stream) throws java.io.IOException
java.io.IOException
protected MetaObjectSAPIR(BinaryInput input, BinarySerializator serializator) throws java.io.IOException
input
- the buffer to read the MetaObjectSAPIR fromserializator
- the serializator used to write objectsjava.io.IOException
- if there was an I/O error reading from the bufferpublic static java.lang.String[] getSupportedVisualDescriptorTypes()
public int getObjectCount()
getObjectCount
in class MetaObject
public LocalAbstractObject getObject(java.lang.String name)
getObject
in class MetaObject
name
- the symbolic name of the object to returnpublic java.util.Collection<LocalAbstractObject> getObjects()
MetaObject
getObjects
in class MetaObject
public java.util.Collection<java.lang.String> getObjectNames()
MetaObject
getObjectNames
in class MetaObject
public java.util.Map<java.lang.String,LocalAbstractObject> getObjectMap()
getObjectMap
in class MetaObject
public LocalAbstractObject clone(boolean cloneFilterChain) throws java.lang.CloneNotSupportedException
LocalAbstractObject
clone
in class LocalAbstractObject
cloneFilterChain
- the flag whether the filter chain should be cloned as welljava.lang.CloneNotSupportedException
- if the object's class does not support cloning or there was an errorpublic LocalAbstractObject cloneRandomlyModify(java.lang.Object... args) throws java.lang.CloneNotSupportedException
LocalAbstractObject
cloneRandomlyModify
in class LocalAbstractObject
args
- any parameters required by the subclass implementation - usually two objects with
the minimal and the maximal possible valuesjava.lang.CloneNotSupportedException
- if the object's class does not support cloning or there was an errorprotected void writeData(java.io.OutputStream stream) throws java.io.IOException
writeData
in class LocalAbstractObject
stream
- the stream to store this object tojava.io.IOException
- if there was an error while writing to streampublic java.lang.String getObjectsXML()
public java.lang.String getObjectXML(java.lang.String name) throws java.util.NoSuchElementException
java.util.NoSuchElementException
public int binarySerialize(BinaryOutput output, BinarySerializator serializator) throws java.io.IOException
LocalAbstractObject
output
.binarySerialize
in interface BinarySerializable
binarySerialize
in class LocalAbstractObject
output
- the output that this object is binary-serialized intoserializator
- the serializator used to write objectsjava.io.IOException
- if there was an I/O error during serializationpublic int getBinarySize(BinarySerializator serializator)
LocalAbstractObject
getBinarySize
in interface BinarySerializable
getBinarySize
in class LocalAbstractObject
serializator
- the serializator used to write objects