public class ObjectFeatureSetSmithWatermanWindowed extends ObjectFeatureOrderedSet
ObjectFeatureOrderedSet.SlidingWindow
LocalAbstractObject.DataEqualObject, LocalAbstractObject.TextStreamFactory<T extends LocalAbstractObject>, LocalAbstractObject.TrivialDistanceFunction
Modifier and Type | Field and Description |
---|---|
static SequenceMatchingCost |
defaultCost |
static ObjectFeatureOrderedSet.SlidingWindow |
window
UkBench settings for UkBench visual words: images are 640x480 pxs
|
sortDim
objects, QUANTIZED_FEATURES_SPLIT_CHARACTER
counterDistanceComputations, counterLowerBoundDistanceComputations, counterPrecomputedDistanceSavings, counterUpperBoundDistanceComputations, MAX_DISTANCE, MIN_DISTANCE, suppData, trivialDistanceFunction, UNKNOWN_DISTANCE
Constructor and Description |
---|
ObjectFeatureSetSmithWatermanWindowed(BinaryInput input,
BinarySerializator serializator) |
ObjectFeatureSetSmithWatermanWindowed(java.io.BufferedReader stream) |
ObjectFeatureSetSmithWatermanWindowed(java.io.BufferedReader stream,
java.util.Map<java.lang.String,? extends java.io.Serializable> additionalParameters) |
ObjectFeatureSetSmithWatermanWindowed(java.lang.String locatorURI,
int width,
int height,
java.util.Collection<? extends ObjectFeature> objects) |
Modifier and Type | Method and Description |
---|---|
protected float |
getDistanceImpl(LocalAbstractObject o,
float distThreshold)
The actual implementation of the metric function (see
LocalAbstractObject.getDistance(messif.objects.LocalAbstractObject) for full explanation). |
float |
getMaxDistance()
Returns a maximal possible distance for this class.
|
static void |
setDefaultCostAndSlidingWindow(SequenceMatchingCost cost,
ObjectFeatureOrderedSet.SlidingWindow wnd) |
addObject, binarySerialize, getBinarySize, getDimension, getHeight, getOrderOfFeatures, getWidth, isFeaturesOrdered, iterator, iterator, orderFeatures, parseObjectComment, windowIterator, windowIterator, writeObjectComment
clearSurplusData, clone, clone, cloneRandomlyModify, containsParameter, dataEquals, dataHashCode, filterFeatures, getObject, getObjectCount, getParameter, getParameter, getParameter, getParameterCount, getParameterMap, getParameterNames, getRequiredParameter, getRequiredParameter, getSaveObjectsClass, getSize, getStringData, iterator, readObject, readObject, toString, writeData
clone, create, create, createMetaDistancesHolder, 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
clone, getLocatorURI, getNoDataObject, getObjectKey, getObjectKey, getObjectLocatorURI, setObjectKey
public static ObjectFeatureOrderedSet.SlidingWindow window
public static SequenceMatchingCost defaultCost
public ObjectFeatureSetSmithWatermanWindowed(BinaryInput input, BinarySerializator serializator) throws java.io.IOException
java.io.IOException
public ObjectFeatureSetSmithWatermanWindowed(java.io.BufferedReader stream) throws java.io.IOException
java.io.IOException
public ObjectFeatureSetSmithWatermanWindowed(java.io.BufferedReader stream, java.util.Map<java.lang.String,? extends java.io.Serializable> additionalParameters) throws java.io.IOException
java.io.IOException
public ObjectFeatureSetSmithWatermanWindowed(java.lang.String locatorURI, int width, int height, java.util.Collection<? extends ObjectFeature> objects)
protected float getDistanceImpl(LocalAbstractObject o, float distThreshold)
LocalAbstractObject
LocalAbstractObject.getDistance(messif.objects.LocalAbstractObject)
for full explanation).
The implementation should not increment distanceComputations statistics.getDistanceImpl
in class LocalAbstractObject
o
- the object to compute distance todistThreshold
- the threshold value on the distancepublic float getMaxDistance()
LocalAbstractObject
LocalAbstractObject.MAX_DISTANCE
.getMaxDistance
in class LocalAbstractObject
public static void setDefaultCostAndSlidingWindow(SequenceMatchingCost cost, ObjectFeatureOrderedSet.SlidingWindow wnd)