public class StatModel extends Algorithm
Modifier and Type | Field and Description |
---|---|
static int |
COMPRESSED_INPUT |
static int |
PREPROCESSED_INPUT |
static int |
RAW_OUTPUT |
static int |
UPDATE_MODEL |
Modifier | Constructor and Description |
---|---|
protected |
StatModel(long addr) |
Modifier and Type | Method and Description |
---|---|
static StatModel |
__fromPtr__(long addr) |
float |
calcError(TrainData data,
boolean test,
Mat resp) |
boolean |
empty() |
protected void |
finalize() |
int |
getVarCount() |
boolean |
isClassifier() |
boolean |
isTrained() |
float |
predict(Mat samples) |
float |
predict(Mat samples,
Mat results) |
float |
predict(Mat samples,
Mat results,
int flags) |
boolean |
train(Mat samples,
int layout,
Mat responses) |
boolean |
train(TrainData trainData) |
boolean |
train(TrainData trainData,
int flags) |
clear, getDefaultName, getNativeObjAddr, save
public static final int UPDATE_MODEL
public static final int RAW_OUTPUT
public static final int COMPRESSED_INPUT
public static final int PREPROCESSED_INPUT
public static StatModel __fromPtr__(long addr)
public boolean isClassifier()
public boolean isTrained()
public boolean train(TrainData trainData, int flags)
public boolean train(TrainData trainData)
public float predict(Mat samples)
public int getVarCount()
Generated on Sun Nov 18 2018 11:54:12 UTC / OpenCV 4.0.0