@Namespace(value="cv") @NoOffset @Properties(inherit=opencv_tracking.class) public class CvHaarEvaluator extends CvFeatureEvaluator
Modifier and Type | Class and Description |
---|---|
static class |
CvHaarEvaluator.FeatureHaar |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
CvHaarEvaluator()
Default native constructor.
|
CvHaarEvaluator(long size)
Native array allocator.
|
CvHaarEvaluator(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
float |
apply(int featureIdx,
int sampleIdx) |
void |
generateFeatures() |
void |
generateFeatures(int numFeatures)
TODO new method
\brief Overload the original generateFeatures in order to limit the number of the features
|
CvHaarEvaluator.FeatureHaar |
getFeatures() |
CvHaarEvaluator.FeatureHaar |
getFeatures(int idx) |
void |
init(CvFeatureParams _featureParams,
int _maxSampleCount,
Size _winSize) |
CvHaarEvaluator |
position(long position) |
void |
setImage(Mat img) |
void |
setImage(Mat img,
byte clsLabel,
int idx) |
Size |
setWinSize() |
void |
setWinSize(Size patchSize) |
void |
writeFeature(FileStorage fs) |
void |
writeFeatures(FileStorage fs,
Mat featureMap) |
create, getCls, getCls, getFeatureSize, getMaxCatCount, getNumFeatures
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 CvHaarEvaluator()
public CvHaarEvaluator(long size)
Pointer.position(long)
.public CvHaarEvaluator(Pointer p)
Pointer.Pointer(Pointer)
.public CvHaarEvaluator position(long position)
public void init(@Const CvFeatureParams _featureParams, int _maxSampleCount, @ByVal Size _winSize)
init
in class CvFeatureEvaluator
public void setImage(@Const @ByRef Mat img, @Cast(value="uchar") byte clsLabel, int idx)
setImage
in class CvFeatureEvaluator
@Name(value="operator ()") public float apply(int featureIdx, int sampleIdx)
apply
in class CvFeatureEvaluator
public void writeFeatures(@ByRef FileStorage fs, @Const @ByRef Mat featureMap)
writeFeatures
in class CvFeatureEvaluator
public void writeFeature(@ByRef FileStorage fs)
@StdVector public CvHaarEvaluator.FeatureHaar getFeatures()
@ByRef public CvHaarEvaluator.FeatureHaar getFeatures(int idx)
public void generateFeatures()
public void generateFeatures(int numFeatures)
numFeatures
- Number of the featuresCopyright © 2020. All rights reserved.