@Namespace(value="cv") @NoOffset @Properties(inherit=opencv_tracking.class) public class BaseClassifier extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
BaseClassifier(int numWeakClassifier,
int iterationInit) |
BaseClassifier(int numWeakClassifier,
int iterationInit,
PointerPointer weakCls) |
BaseClassifier(int numWeakClassifier,
int iterationInit,
WeakClassifierHaarFeature weakCls) |
BaseClassifier(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
computeReplaceWeakestClassifier(float[] errors) |
int |
computeReplaceWeakestClassifier(FloatBuffer errors) |
int |
computeReplaceWeakestClassifier(FloatPointer errors) |
int |
eval(Mat image) |
float |
getError(int curWeakClassifier) |
void |
getErrors(float[] errors) |
void |
getErrors(FloatBuffer errors) |
void |
getErrors(FloatPointer errors) |
int |
getIdxOfNewWeakClassifier() |
PointerPointer |
getReferenceWeakClassifier() |
int |
getSelectedClassifier() |
void |
replaceClassifierStatistic(int sourceIndex,
int targetIndex) |
void |
replaceWeakClassifier(int index) |
int |
selectBestClassifier(boolean[] errorMask,
float importance,
float[] errors) |
int |
selectBestClassifier(boolean[] errorMask,
float importance,
FloatBuffer errors) |
int |
selectBestClassifier(boolean[] errorMask,
float importance,
FloatPointer errors) |
int |
selectBestClassifier(BoolPointer errorMask,
float importance,
float[] errors) |
int |
selectBestClassifier(BoolPointer errorMask,
float importance,
FloatBuffer errors) |
int |
selectBestClassifier(BoolPointer errorMask,
float importance,
FloatPointer errors) |
void |
trainClassifier(Mat image,
int target,
float importance,
boolean[] errorMask) |
void |
trainClassifier(Mat image,
int target,
float importance,
BoolPointer errorMask) |
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, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public BaseClassifier(Pointer p)
Pointer.Pointer(Pointer)
.public BaseClassifier(int numWeakClassifier, int iterationInit)
public BaseClassifier(int numWeakClassifier, int iterationInit, @Cast(value="cv::WeakClassifierHaarFeature**") PointerPointer weakCls)
public BaseClassifier(int numWeakClassifier, int iterationInit, @ByPtrPtr WeakClassifierHaarFeature weakCls)
@Cast(value="cv::WeakClassifierHaarFeature**") public PointerPointer getReferenceWeakClassifier()
public void trainClassifier(@Const @ByRef Mat image, int target, float importance, @Cast(value="bool*") @StdVector BoolPointer errorMask)
public void trainClassifier(@Const @ByRef Mat image, int target, float importance, @Cast(value="bool*") @StdVector boolean[] errorMask)
public int selectBestClassifier(@Cast(value="bool*") @StdVector BoolPointer errorMask, float importance, @StdVector FloatPointer errors)
public int selectBestClassifier(@Cast(value="bool*") @StdVector boolean[] errorMask, float importance, @StdVector FloatBuffer errors)
public int selectBestClassifier(@Cast(value="bool*") @StdVector BoolPointer errorMask, float importance, @StdVector float[] errors)
public int selectBestClassifier(@Cast(value="bool*") @StdVector boolean[] errorMask, float importance, @StdVector FloatPointer errors)
public int selectBestClassifier(@Cast(value="bool*") @StdVector BoolPointer errorMask, float importance, @StdVector FloatBuffer errors)
public int selectBestClassifier(@Cast(value="bool*") @StdVector boolean[] errorMask, float importance, @StdVector float[] errors)
public int computeReplaceWeakestClassifier(@StdVector FloatPointer errors)
public int computeReplaceWeakestClassifier(@StdVector FloatBuffer errors)
public int computeReplaceWeakestClassifier(@StdVector float[] errors)
public void replaceClassifierStatistic(int sourceIndex, int targetIndex)
public int getIdxOfNewWeakClassifier()
public float getError(int curWeakClassifier)
public void getErrors(FloatPointer errors)
public void getErrors(FloatBuffer errors)
public void getErrors(float[] errors)
public int getSelectedClassifier()
public void replaceWeakClassifier(int index)
Copyright © 2020. All rights reserved.