public class ObjectFaceMPEG7Descriptor extends ObjectIntVector
LocalAbstractObject.DataEqualObject, LocalAbstractObject.TextStreamFactory<T extends LocalAbstractObject>, LocalAbstractObject.TrivialDistanceFunction
data
counterDistanceComputations, counterLowerBoundDistanceComputations, counterPrecomputedDistanceSavings, counterUpperBoundDistanceComputations, MAX_DISTANCE, MIN_DISTANCE, suppData, trivialDistanceFunction, UNKNOWN_DISTANCE
Constructor and Description |
---|
ObjectFaceMPEG7Descriptor(java.io.BufferedReader stream)
Creates a new instance of ObjectFaceMPEG7Descriptor from stream.
|
ObjectFaceMPEG7Descriptor(int[] data)
Creates a new instance of ObjectFaceMPEG7Descriptor from provided data.
|
Modifier and Type | Method and Description |
---|---|
protected float |
getDistanceImpl(LocalAbstractObject obj,
float distThreshold)
Metric distance function for face descriptors.
|
binarySerialize, cloneRandomlyModify, dataEquals, dataHashCode, getBinarySize, getDimensionality, getMinMaxForEveryCoord, getMinMaxOverCoords, getMinMaxOverCoords, getSize, getVectorData, getVectorDataDimension, getVectorDataItem, getVectorDataItemInt, parseIntVector, randomData, toString, writeData, writeIntVector
clearSurplusData, clone, clone, create, create, createMetaDistancesHolder, 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
public ObjectFaceMPEG7Descriptor(int[] data) throws java.lang.IllegalArgumentException
data
- the eigen features extracted from facejava.lang.IllegalArgumentException
- if the provided data is not validpublic ObjectFaceMPEG7Descriptor(java.io.BufferedReader stream) throws java.io.IOException, java.io.EOFException, java.lang.NumberFormatException, java.lang.IllegalArgumentException
stream
- the stream to read object's data fromjava.io.IOException
- if there was an error during reading from the given streamjava.io.EOFException
- when end-of-file of the given stream is reachedjava.lang.NumberFormatException
- when the line read from given stream does not consist of comma-separated or space-separated numbersjava.lang.IllegalArgumentException
- if the read data is not validprotected float getDistanceImpl(LocalAbstractObject obj, float distThreshold)
getDistanceImpl
in class LocalAbstractObject
obj
- the object to compute distance todistThreshold
- the threshold value on the distance