public class KNearest extends StatModel
Modifier and Type | Field and Description |
---|---|
static int |
BRUTE_FORCE |
static int |
KDTREE |
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL
Modifier | Constructor and Description |
---|---|
protected |
KNearest(long addr) |
Modifier and Type | Method and Description |
---|---|
static KNearest |
__fromPtr__(long addr) |
static KNearest |
create() |
protected void |
finalize() |
float |
findNearest(Mat samples,
int k,
Mat results) |
float |
findNearest(Mat samples,
int k,
Mat results,
Mat neighborResponses) |
float |
findNearest(Mat samples,
int k,
Mat results,
Mat neighborResponses,
Mat dist) |
int |
getAlgorithmType() |
int |
getDefaultK() |
int |
getEmax() |
boolean |
getIsClassifier() |
void |
setAlgorithmType(int val) |
void |
setDefaultK(int val) |
void |
setEmax(int val) |
void |
setIsClassifier(boolean val) |
calcError, empty, getVarCount, isClassifier, isTrained, predict, predict, predict, train, train, train
clear, getDefaultName, getNativeObjAddr, save
public static final int BRUTE_FORCE
public static final int KDTREE
public static KNearest __fromPtr__(long addr)
public static KNearest create()
public boolean getIsClassifier()
public float findNearest(Mat samples, int k, Mat results, Mat neighborResponses, Mat dist)
public int getAlgorithmType()
public int getDefaultK()
public int getEmax()
public void setAlgorithmType(int val)
public void setDefaultK(int val)
public void setEmax(int val)
public void setIsClassifier(boolean val)
Generated on Sun Nov 18 2018 11:54:12 UTC / OpenCV 4.0.0