Package boofcv.alg.scene.nister2006
Class TupleMapDistanceNorm.L1
java.lang.Object
boofcv.alg.scene.nister2006.TupleMapDistanceNorm.L1
- All Implemented Interfaces:
TupleMapDistanceNorm
- Enclosing interface:
- TupleMapDistanceNorm
L1-norm for scoring
-
Nested Class Summary
Nested classes/interfaces inherited from interface boofcv.alg.scene.nister2006.TupleMapDistanceNorm
TupleMapDistanceNorm.L1, TupleMapDistanceNorm.L2, TupleMapDistanceNorm.Types
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
distanceUpdate
(float valA, float valB) Incremental update to the distance.Create a new instance that is thread safe, i.e.void
normalize
(DogArray_F32 weights) Normalizes the descriptor.
-
Constructor Details
-
L1
public L1()
-
-
Method Details
-
normalize
Description copied from interface:TupleMapDistanceNorm
Normalizes the descriptor. Computes the norm then divides each element by the norm.- Specified by:
normalize
in interfaceTupleMapDistanceNorm
-
distanceUpdate
public float distanceUpdate(float valA, float valB) Description copied from interface:TupleMapDistanceNorm
Incremental update to the distance. Initially the distance is set to 2.0, then for every word that is present in both descriptors add this value to it. This only works for a subclass of normalizations. See [1] for details.- Specified by:
distanceUpdate
in interfaceTupleMapDistanceNorm
-
newInstanceThread
Description copied from interface:TupleMapDistanceNorm
Create a new instance that is thread safe, i.e. read only settings can be shared- Specified by:
newInstanceThread
in interfaceTupleMapDistanceNorm
-