public class MetaObjectSAPIRWeightedDist3 extends MetaObjectSAPIR
MetaObjectSAPIR.XMLHandlerSAPIR
LocalAbstractObject.DataEqualObject, LocalAbstractObject.TextStreamFactory<T extends LocalAbstractObject>, LocalAbstractObject.TrivialDistanceFunction
colorLayout, colorStructure, descriptorNames, edgeHistogram, homogeneousTexture, location, scalableColor
counterDistanceComputations, counterLowerBoundDistanceComputations, counterPrecomputedDistanceSavings, counterUpperBoundDistanceComputations, MAX_DISTANCE, MIN_DISTANCE, suppData, trivialDistanceFunction, UNKNOWN_DISTANCE
Modifier | Constructor and Description |
---|---|
protected |
MetaObjectSAPIRWeightedDist3(BinaryInput input,
BinarySerializator serializator)
Creates a new instance of MetaObjectSAPIRWeightedDist2 loaded from binary input buffer.
|
|
MetaObjectSAPIRWeightedDist3(java.io.BufferedReader stream)
Creates a new instance of MetaObjectSAPIRWeightedDist
|
|
MetaObjectSAPIRWeightedDist3(java.lang.String locatorURI,
java.util.Map<java.lang.String,LocalAbstractObject> objects) |
|
MetaObjectSAPIRWeightedDist3(java.lang.String locatorURI,
java.util.Map<java.lang.String,LocalAbstractObject> objects,
boolean cloneObjects) |
|
MetaObjectSAPIRWeightedDist3(java.lang.String locatorURI,
ObjectColorLayout colorLayout,
ObjectShortVectorL1 colorStructure,
ObjectVectorEdgecomp edgeHistogram,
ObjectHomogeneousTexture homogeneousTexture,
ObjectIntVectorL1 scalableColor,
ObjectGPSCoordinate location)
Creates a new instance of MetaObjectSAPIRWeightedDist
|
Modifier and Type | Method and Description |
---|---|
static MetaObjectSAPIRWeightedDist3 |
create(java.io.File xmlFile)
Factory method that creates MetaObjects from SAPIR XML files retrieved from the given File
|
static MetaObjectSAPIRWeightedDist3 |
create(org.xml.sax.InputSource is)
Factory method that creates MetaObjects from SAPIR XML files retrieved from the passed InputSource
|
static MetaObjectSAPIRWeightedDist3 |
create(java.io.InputStream is)
Factory method that creates MetaObjects from SAPIR XML files retrieved from the passed InputStream
|
static MetaObjectSAPIRWeightedDist3 |
create(java.lang.String uri)
Factory method that creates MetaObjects from SAPIR XML files retrieved from the passed URI
|
protected float |
getDistanceImpl(LocalAbstractObject obj,
float[] metaDistances,
float distThreshold)
The actual implementation of the metric function.
|
float |
getMaxDistance()
Returns a maximal possible distance for this class.
|
static float[] |
getWeights() |
binarySerialize, clone, cloneRandomlyModify, getBinarySize, getObject, getObjectCount, getObjectMap, getObjectNames, getObjects, getObjectsXML, getObjectXML, getSupportedVisualDescriptorTypes, writeData
clearSurplusData, containsObject, createMetaDistancesHolder, createSearchMetaObject, dataEquals, dataHashCode, fillMetaDistances, fillMetaDistances, 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, 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
public MetaObjectSAPIRWeightedDist3(java.lang.String locatorURI, ObjectColorLayout colorLayout, ObjectShortVectorL1 colorStructure, ObjectVectorEdgecomp edgeHistogram, ObjectHomogeneousTexture homogeneousTexture, ObjectIntVectorL1 scalableColor, ObjectGPSCoordinate location)
public MetaObjectSAPIRWeightedDist3(java.io.BufferedReader stream) throws java.io.IOException
java.io.IOException
public MetaObjectSAPIRWeightedDist3(java.lang.String locatorURI, java.util.Map<java.lang.String,LocalAbstractObject> objects, boolean cloneObjects) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public MetaObjectSAPIRWeightedDist3(java.lang.String locatorURI, java.util.Map<java.lang.String,LocalAbstractObject> objects)
protected MetaObjectSAPIRWeightedDist3(BinaryInput input, BinarySerializator serializator) throws java.io.IOException
input
- the buffer to read the MetaObjectSAPIRWeightedDist2 fromserializator
- the serializator used to write objectsjava.io.IOException
- if there was an I/O error reading from the bufferpublic static MetaObjectSAPIRWeightedDist3 create(java.io.File xmlFile) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public static MetaObjectSAPIRWeightedDist3 create(java.lang.String uri) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public static MetaObjectSAPIRWeightedDist3 create(java.io.InputStream is) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public static MetaObjectSAPIRWeightedDist3 create(org.xml.sax.InputSource is) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
protected float getDistanceImpl(LocalAbstractObject obj, float[] metaDistances, float distThreshold)
MetaObject
metaDistances
parameter is not null, it should be filled
with the distances to the respective encapsulated objects (method
fillMetaDistances
can be used).getDistanceImpl
in class MetaObject
obj
- the object to compute distance tometaDistances
- the array that is filled with the distances of the respective encapsulated objects, if it is not nulldistThreshold
- the threshold value on the distanceLocalAbstractObject.getDistance(messif.objects.LocalAbstractObject)
public static float[] getWeights()
public float getMaxDistance()
LocalAbstractObject
LocalAbstractObject.MAX_DISTANCE
.getMaxDistance
in class LocalAbstractObject