public class TldDetection<T extends boofcv.struct.image.ImageGray<T>>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ambiguous |
protected org.ddogleg.struct.FastQueue<TldRegion> |
candidateDetections |
protected TldParameters |
config |
protected org.ddogleg.struct.FastQueue<TldRegionFernInfo> |
fernInfo |
protected java.util.List<boofcv.struct.ImageRectangle> |
fernRegions |
protected TldTemplateMatching<T> |
template |
| Modifier | Constructor and Description |
|---|---|
protected |
TldDetection() |
|
TldDetection(TldFernClassifier<T> fern,
TldTemplateMatching<T> template,
TldVarianceFilter<T> variance,
TldParameters config) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeTemplateConfidence()
Computes the confidence for all the regions which pass the fern test
|
protected void |
detectionCascade(org.ddogleg.struct.FastQueue<boofcv.struct.ImageRectangle> cascadeRegions)
Detects the object inside the image.
|
java.util.List<boofcv.struct.ImageRectangle> |
getAmbiguousRegions() |
TldRegion |
getBest() |
org.ddogleg.struct.FastQueue<TldRegion> |
getCandidateDetections() |
org.ddogleg.struct.FastQueue<TldRegionFernInfo> |
getFernInfo() |
org.ddogleg.struct.FastQueue<TldRegion> |
getLocalMaximums() |
TldNonMaximalSuppression |
getNonmax() |
java.util.List<boofcv.struct.ImageRectangle> |
getSelectedFernRectangles()
Rectangles selected by the fern classifier as candidates
|
org.ddogleg.struct.GrowQueue_F64 |
getStorageMetric() |
java.util.List<boofcv.struct.ImageRectangle> |
getStorageRect() |
boolean |
isAmbiguous() |
boolean |
isSuccess() |
TldRegion |
selectBest() |
protected void |
selectBestRegionsFern(double totalP,
double totalN)
compute the probability that each region is the target conditional upon this image
the sumP and sumN are needed for image conditional probability
NOTE: This is a big change from the original paper
|
protected TldTemplateMatching<T extends boofcv.struct.image.ImageGray<T>> template
protected org.ddogleg.struct.FastQueue<TldRegionFernInfo> fernInfo
protected TldParameters config
protected java.util.List<boofcv.struct.ImageRectangle> fernRegions
protected org.ddogleg.struct.FastQueue<TldRegion> candidateDetections
protected boolean ambiguous
public TldDetection(TldFernClassifier<T> fern, TldTemplateMatching<T> template, TldVarianceFilter<T> variance, TldParameters config)
protected TldDetection()
protected void detectionCascade(org.ddogleg.struct.FastQueue<boofcv.struct.ImageRectangle> cascadeRegions)
protected void computeTemplateConfidence()
protected void selectBestRegionsFern(double totalP,
double totalN)
public TldRegion selectBest()
public TldRegion getBest()
public boolean isAmbiguous()
public TldNonMaximalSuppression getNonmax()
public org.ddogleg.struct.GrowQueue_F64 getStorageMetric()
public java.util.List<boofcv.struct.ImageRectangle> getStorageRect()
public org.ddogleg.struct.FastQueue<TldRegion> getCandidateDetections()
public org.ddogleg.struct.FastQueue<TldRegion> getLocalMaximums()
public java.util.List<boofcv.struct.ImageRectangle> getAmbiguousRegions()
public org.ddogleg.struct.FastQueue<TldRegionFernInfo> getFernInfo()
public java.util.List<boofcv.struct.ImageRectangle> getSelectedFernRectangles()
public boolean isSuccess()