OpenCV 3.0.0-rc1

org.opencv.ml
Class StatModel

java.lang.Object
  extended by org.opencv.core.Algorithm
      extended by org.opencv.ml.StatModel
Direct Known Subclasses:
DTrees, EM, KNearest, LogisticRegression, NormalBayesClassifier, SVM

public class StatModel
extends Algorithm


Field Summary
static int COMPRESSED_INPUT
           
static int PREPROCESSED_INPUT
           
static int RAW_OUTPUT
           
static int UPDATE_MODEL
           
 
Method Summary
 boolean empty()
           
 int getVarCount()
           
 boolean isClassifier()
           
 boolean isTrained()
           
 float predict(Mat samples)
           
 float predict(Mat samples, Mat results, int flags)
           
 boolean train(Mat samples, int layout, Mat responses)
           
 
Methods inherited from class org.opencv.core.Algorithm
clear, getDefaultName, save
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPRESSED_INPUT

public static final int COMPRESSED_INPUT
See Also:
Constant Field Values

PREPROCESSED_INPUT

public static final int PREPROCESSED_INPUT
See Also:
Constant Field Values

RAW_OUTPUT

public static final int RAW_OUTPUT
See Also:
Constant Field Values

UPDATE_MODEL

public static final int UPDATE_MODEL
See Also:
Constant Field Values
Method Detail

empty

public boolean empty()

getVarCount

public int getVarCount()

isClassifier

public boolean isClassifier()

isTrained

public boolean isTrained()

predict

public float predict(Mat samples)

predict

public float predict(Mat samples,
                     Mat results,
                     int flags)

train

public boolean train(Mat samples,
                     int layout,
                     Mat responses)

OpenCV 3.0.0-rc1 Documentation