|
OpenCV 3.0.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opencv.core.Algorithm org.opencv.ml.StatModel org.opencv.ml.KNearest
public class KNearest
Field Summary | |
---|---|
static int |
BRUTE_FORCE
|
static int |
KDTREE
|
Fields inherited from class org.opencv.ml.StatModel |
---|
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL |
Method Summary | |
---|---|
static KNearest |
create()
|
float |
findNearest(Mat samples,
int k,
Mat results)
|
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)
|
Methods inherited from class org.opencv.ml.StatModel |
---|
empty, getVarCount, isClassifier, isTrained, predict, predict, train |
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 |
---|
public static final int BRUTE_FORCE
public static final int KDTREE
Method Detail |
---|
public static KNearest create()
public float findNearest(Mat samples, int k, Mat results)
public float findNearest(Mat samples, int k, Mat results, Mat neighborResponses, Mat dist)
public int getAlgorithmType()
public int getDefaultK()
public int getEmax()
public boolean getIsClassifier()
public void setAlgorithmType(int val)
public void setDefaultK(int val)
public void setEmax(int val)
public void setIsClassifier(boolean val)
|
OpenCV 3.0.0 Documentation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |