public class MetaObjectParametricShapeAndColor extends MetaObjectParametricArrayWeightedSum implements BinarySerializable
Parametric
interface.
The descriptors are ColorLayout, ColorStructure, ScalableColor, EdgeHistogram, and RegionShape.LocalAbstractObject.DataEqualObject, LocalAbstractObject.TextStreamFactory<T extends LocalAbstractObject>, LocalAbstractObject.TrivialDistanceFunction
objects
counterDistanceComputations, counterLowerBoundDistanceComputations, counterPrecomputedDistanceSavings, counterUpperBoundDistanceComputations, MAX_DISTANCE, MIN_DISTANCE, suppData, trivialDistanceFunction, UNKNOWN_DISTANCE
Modifier | Constructor and Description |
---|---|
protected |
MetaObjectParametricShapeAndColor(BinaryInput input,
BinarySerializator serializator)
Creates a new instance of MetaObjectParametricShapeAndColor loaded from binary input.
|
|
MetaObjectParametricShapeAndColor(java.io.BufferedReader stream)
Creates a new instance of MetaObjectParametricShapeAndColor from a stream.
|
|
MetaObjectParametricShapeAndColor(java.io.BufferedReader stream,
java.util.Map<java.lang.String,? extends java.io.Serializable> additionalParameters)
Creates a new instance of MetaObjectParametricShapeAndColor from a stream.
|
|
MetaObjectParametricShapeAndColor(MetaObjectParametric metaObject)
Creates a new instance of MetaObjectParametricShapeAndColor from another
MetaObjectParametric . |
|
MetaObjectParametricShapeAndColor(java.lang.String locatorURI,
java.util.Map<java.lang.String,? extends java.io.Serializable> additionalParameters,
java.util.Map<java.lang.String,? extends LocalAbstractObject> objects)
Creates a new instance of MetaObjectParametricShapeAndColor with the given encapsulated objects.
|
|
MetaObjectParametricShapeAndColor(java.lang.String locatorURI,
java.util.Map<java.lang.String,? extends java.io.Serializable> additionalParameters,
ObjectColorLayout colorLayout,
ObjectShortVectorL1 colorStructure,
ObjectIntVectorL1 scalableColor,
ObjectVectorEdgecomp edgeHistogram,
ObjectXMRegionShape regionShape)
Creates a new instance of MetaObjectParametricShapeAndColor with the given encapsulated objects.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
getDescriptorNames()
Returns the list of the names of the possible encapsulated objects.
|
float |
getMaxDistance()
Returns a maximal possible distance for this class.
|
protected java.lang.String |
getObjectName(int index)
Returns the name of the fixed object with the given
index . |
protected float |
getWeight(int index)
Returns the weight used for the
index th encapsulated object distance in the overall distance sum. |
static float[] |
getWeights()
Returns the weights used for the respective encapsulated objects to compute overall distance.
|
getDistanceImpl
binarySerialize, getBinarySize, getObject, getObject, getObjectCount, getObjectMap, getObjectNames, getObjects, writeDataImpl
clearSurplusData, containsParameter, getParameter, getParameter, getParameter, getParameterCount, getParameterMap, getParameterNames, getRequiredParameter, getRequiredParameter, parseObjectComment, removeParameter, setParameter, writeData
containsObject, createMetaDistancesHolder, createSearchMetaObject, dataEquals, dataHashCode, fillMetaDistances, fillMetaDistances, getDistanceImpl, getObjectFromMap, getSize, implementationGetDistance, readObject, readObject, readObjects, readObjects, readObjectsHeader, toString, writeObjects, writeObjectsHeader
clone, clone, cloneRandomlyModify, 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, peekNextChar, readAttributesFromStream, readObjectComments, readObjectCommentsWithoutData, unchainFilter, write, write, writeAttributesToStream, writeObjectComment
clone, getLocatorURI, getNoDataObject, getObjectKey, getObjectKey, getObjectLocatorURI, setObjectKey
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
binarySerialize, getBinarySize
public MetaObjectParametricShapeAndColor(java.lang.String locatorURI, java.util.Map<java.lang.String,? extends java.io.Serializable> additionalParameters, ObjectColorLayout colorLayout, ObjectShortVectorL1 colorStructure, ObjectIntVectorL1 scalableColor, ObjectVectorEdgecomp edgeHistogram, ObjectXMRegionShape regionShape)
locatorURI
- the locator URI for the new objectadditionalParameters
- additional parameters for this meta objectcolorLayout
- the color layout MPEG7 visual descriptorcolorStructure
- the color structure MPEG7 visual descriptorscalableColor
- the scalable color MPEG7 visual descriptoredgeHistogram
- the edge histogram MPEG7 visual descriptorregionShape
- the region shape MPEG7 visual descriptorpublic MetaObjectParametricShapeAndColor(java.lang.String locatorURI, java.util.Map<java.lang.String,? extends java.io.Serializable> additionalParameters, java.util.Map<java.lang.String,? extends LocalAbstractObject> objects)
locatorURI
- the locator URI for the new objectadditionalParameters
- additional parameters for this meta objectobjects
- the encapsulated objects to add (keys should match the descriptorNames
)public MetaObjectParametricShapeAndColor(MetaObjectParametric metaObject)
MetaObjectParametric
.metaObject
- the meta object the encapsulated objects of which to add (keys should match the descriptorNames
)public MetaObjectParametricShapeAndColor(java.io.BufferedReader stream) throws java.io.IOException, java.lang.NumberFormatException
stream
- text stream to read the data fromjava.io.IOException
- when an error appears during reading from given stream;
EOFException
is thrown when end-of-file of the given stream is reachedjava.lang.NumberFormatException
- when the line with the descriptor is not validpublic MetaObjectParametricShapeAndColor(java.io.BufferedReader stream, java.util.Map<java.lang.String,? extends java.io.Serializable> additionalParameters) throws java.io.IOException, java.lang.NumberFormatException
stream
- text stream to read the data fromadditionalParameters
- additional parameters for this meta objectjava.io.IOException
- when an error appears during reading from given stream;
EOFException
is thrown when end-of-file of the given stream is reachedjava.lang.NumberFormatException
- when the line with the descriptor is not validprotected MetaObjectParametricShapeAndColor(BinaryInput input, BinarySerializator serializator) throws java.io.IOException
input
- the input to read the MetaObject fromserializator
- the serializator used to write objectsjava.io.IOException
- if there was an I/O error reading from the bufferpublic static java.lang.String[] getDescriptorNames()
protected java.lang.String getObjectName(int index)
MetaObjectParametricArray
index
.
By default, this implementation returns "ObjectX" where X is the given
index
. However, this method should be overridden to give
the real name of the object if appropriate (e.g. from a static array of names).getObjectName
in class MetaObjectParametricArray
index
- the fixed index of the object the name of which to getindex
th objectpublic static float[] getWeights()
protected float getWeight(int index)
MetaObjectParametricArrayWeightedSum
index
th encapsulated object distance in the overall distance sum.getWeight
in class MetaObjectParametricArrayWeightedSum
index
- the fixed index of the object the weight of which to getindex
th encapsulated objectpublic float getMaxDistance()
LocalAbstractObject
LocalAbstractObject.MAX_DISTANCE
.getMaxDistance
in class MetaObjectParametricArrayWeightedSum