boofcv.alg.tracker.tld
Class TldFernManager
- java.lang.Object
-
- boofcv.alg.tracker.tld.TldFernManager
-
public class TldFernManager extends java.lang.ObjectLookup table for ferns. An array is used to look up each fern by value. The recommend descriptor size in the paper is 10 bits, which results in a reasonably sized table.
-
-
Constructor Summary
Constructors Constructor and Description TldFernManager(int descriptorSize)Configures the manager
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description TldFernFeaturelookupFern(int value)Looks up the fern with the specified value.doublelookupPosterior(int value)Looks up the posterior probability of the specified fern.voidreset()
-
-
-
Constructor Detail
-
TldFernManager
public TldFernManager(int descriptorSize)
Configures the manager- Parameters:
descriptorSize- Size of the fern's descriptor
-
-
Method Detail
-
lookupFern
public TldFernFeature lookupFern(int value)
Looks up the fern with the specified value. If non exist a new one is created and returned.- Parameters:
value- The fern's value- Returns:
- The fern associated with that value
-
lookupPosterior
public double lookupPosterior(int value)
Looks up the posterior probability of the specified fern. If a fern is found its posterior is returned otherwise -1 is returned. NOTE: How unknown values are handled is a deviation from the paper.- Parameters:
value- The fern's value- Returns:
- Fern's posterior probability. If the value is known then return -1
-
reset
public void reset()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG