@Namespace(value="cv") @NoOffset @Properties(inherit=opencv_tracking.class) public class TrackerFeatureSet extends Pointer
\cite AAM Feature Extraction and Feature Set Refinement (Feature Processing and Feature Selection). See table I and section III C \cite AMVOT Appearance modelling -\> Visual representation (Table II, section 3.1 - 3.2)
TrackerFeatureSet is an aggregation of TrackerFeature
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TrackerFeatureSet() |
TrackerFeatureSet(long size)
Native array allocator.
|
TrackerFeatureSet(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addTrackerFeature(BytePointer trackerFeatureType)
\brief Add TrackerFeature in the collection.
|
boolean |
addTrackerFeature(String trackerFeatureType) |
boolean |
addTrackerFeature(TrackerFeature feature)
\overload
|
void |
extraction(MatVector images)
\brief Extract features from the images collection
|
MatVector |
getResponses()
\brief Get the responses
|
StringTrackerFeaturePairVector |
getTrackerFeature()
\brief Get the TrackerFeature collection (TrackerFeature name, TrackerFeature pointer)
|
TrackerFeatureSet |
position(long position) |
void |
removeOutliers()
\brief Remove outliers for all feature types (optional)
|
void |
selection()
\brief Identify most effective features for all feature types (optional)
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public TrackerFeatureSet(Pointer p)
Pointer.Pointer(Pointer)
.public TrackerFeatureSet(long size)
Pointer.position(long)
.public TrackerFeatureSet()
public TrackerFeatureSet position(long position)
public void extraction(@Const @ByRef MatVector images)
images
- The input imagespublic void selection()
public void removeOutliers()
@Cast(value="bool") public boolean addTrackerFeature(@opencv_core.Str BytePointer trackerFeatureType)
trackerFeatureType
- The TrackerFeature name
The modes available now:
- "HAAR" -- Haar Feature-based
The modes that will be available soon:
- "HOG" -- Histogram of Oriented Gradients features - "LBP" -- Local Binary Pattern features - "FEATURE2D" -- All types of Feature2D
Example TrackerFeatureSet::addTrackerFeature : :
//sample usage:
Ptr<TrackerFeature> trackerFeature = new TrackerFeatureHAAR( HAARparameters );
featureSet->addTrackerFeature( trackerFeature );
//or add CSC sampler with default parameters
//featureSet->addTrackerFeature( "HAAR" );
\note If you use the second method, you must initialize the TrackerFeature@Cast(value="bool") public boolean addTrackerFeature(@opencv_core.Str String trackerFeatureType)
@Cast(value="bool") public boolean addTrackerFeature(@opencv_core.Ptr @ByVal TrackerFeature feature)
feature
- The TrackerFeature class@Const @ByRef public StringTrackerFeaturePairVector getTrackerFeature()
Copyright © 2020. All rights reserved.