@Namespace(value="cv::ml") public static class opencv_ml.NormalBayesClassifier extends opencv_ml.StatModel
\sa \ref ml_intro_bayes
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL| Constructor and Description |
|---|
NormalBayesClassifier(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static opencv_ml.NormalBayesClassifier |
create()
Creates empty model
Use StatModel::train to train the model after creation.
|
static opencv_ml.NormalBayesClassifier |
load(org.bytedeco.javacpp.BytePointer filepath) |
static opencv_ml.NormalBayesClassifier |
load(org.bytedeco.javacpp.BytePointer filepath,
org.bytedeco.javacpp.BytePointer nodeName)
\brief Loads and creates a serialized NormalBayesClassifier from a file
Use NormalBayesClassifier::save to serialize and store an NormalBayesClassifier to disk.
|
static opencv_ml.NormalBayesClassifier |
load(String filepath) |
static opencv_ml.NormalBayesClassifier |
load(String filepath,
String nodeName) |
float |
predictProb(opencv_core.GpuMat inputs,
opencv_core.GpuMat outputs,
opencv_core.GpuMat outputProbs) |
float |
predictProb(opencv_core.GpuMat inputs,
opencv_core.GpuMat outputs,
opencv_core.GpuMat outputProbs,
int flags) |
float |
predictProb(opencv_core.Mat inputs,
opencv_core.Mat outputs,
opencv_core.Mat outputProbs) |
float |
predictProb(opencv_core.Mat inputs,
opencv_core.Mat outputs,
opencv_core.Mat outputProbs,
int flags)
\brief Predicts the response for sample(s).
|
float |
predictProb(opencv_core.UMat inputs,
opencv_core.UMat outputs,
opencv_core.UMat outputProbs) |
float |
predictProb(opencv_core.UMat inputs,
opencv_core.UMat outputs,
opencv_core.UMat outputProbs,
int flags) |
calcError, calcError, calcError, empty, getVarCount, isClassifier, isTrained, predict, predict, predict, predict, predict, predict, train, train, train, train, trainloadANN_MLP, loadANN_MLP, loadBoost, loadBoost, loadDTrees, loadDTrees, loadEM, loadEM, loadKNearest, loadKNearest, loadLogisticRegression, loadLogisticRegression, loadNormalBayesClassifier, loadNormalBayesClassifier, loadRTrees, loadRTrees, loadSVM, loadSVMclear, getDefaultName, position, read, save, save, write, write, writeaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic NormalBayesClassifier(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public float predictProb(@ByVal
opencv_core.Mat inputs,
@ByVal
opencv_core.Mat outputs,
@ByVal
opencv_core.Mat outputProbs,
int flags)
The method estimates the most probable classes for input vectors. Input vectors (one or more) are stored as rows of the matrix inputs. In case of multiple input vectors, there should be one output vector outputs. The predicted class for a single input vector is returned by the method. The vector outputProbs contains the output probabilities corresponding to each element of result.
public float predictProb(@ByVal
opencv_core.Mat inputs,
@ByVal
opencv_core.Mat outputs,
@ByVal
opencv_core.Mat outputProbs)
public float predictProb(@ByVal
opencv_core.UMat inputs,
@ByVal
opencv_core.UMat outputs,
@ByVal
opencv_core.UMat outputProbs,
int flags)
public float predictProb(@ByVal
opencv_core.UMat inputs,
@ByVal
opencv_core.UMat outputs,
@ByVal
opencv_core.UMat outputProbs)
public float predictProb(@ByVal
opencv_core.GpuMat inputs,
@ByVal
opencv_core.GpuMat outputs,
@ByVal
opencv_core.GpuMat outputProbs,
int flags)
public float predictProb(@ByVal
opencv_core.GpuMat inputs,
@ByVal
opencv_core.GpuMat outputs,
@ByVal
opencv_core.GpuMat outputProbs)
@opencv_core.Ptr public static opencv_ml.NormalBayesClassifier create()
@opencv_core.Ptr public static opencv_ml.NormalBayesClassifier load(@opencv_core.Str org.bytedeco.javacpp.BytePointer filepath, @opencv_core.Str org.bytedeco.javacpp.BytePointer nodeName)
filepath - path to serialized NormalBayesClassifiernodeName - name of node containing the classifier@opencv_core.Ptr public static opencv_ml.NormalBayesClassifier load(@opencv_core.Str org.bytedeco.javacpp.BytePointer filepath)
@opencv_core.Ptr public static opencv_ml.NormalBayesClassifier load(@opencv_core.Str String filepath, @opencv_core.Str String nodeName)
@opencv_core.Ptr public static opencv_ml.NormalBayesClassifier load(@opencv_core.Str String filepath)
Copyright © 2018. All rights reserved.