org.opencv.ml
Class KNearest
java.lang.Object
org.opencv.core.Algorithm
org.opencv.ml.StatModel
org.opencv.ml.KNearest
public class KNearest
- extends StatModel
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BRUTE_FORCE
public static final int BRUTE_FORCE
- See Also:
- Constant Field Values
KDTREE
public static final int KDTREE
- See Also:
- Constant Field Values
create
public static KNearest create()
findNearest
public float findNearest(Mat samples,
int k,
Mat results)
findNearest
public float findNearest(Mat samples,
int k,
Mat results,
Mat neighborResponses,
Mat dist)
getAlgorithmType
public int getAlgorithmType()
getDefaultK
public int getDefaultK()
getEmax
public int getEmax()
getIsClassifier
public boolean getIsClassifier()
setAlgorithmType
public void setAlgorithmType(int val)
setDefaultK
public void setDefaultK(int val)
setEmax
public void setEmax(int val)
setIsClassifier
public void setIsClassifier(boolean val)