Method Predict2
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Predict2(InputArray, OutputArray)
Predicts the response for sample
public virtual Vec2d Predict2(InputArray sample, OutputArray probs = default)
Parameters
sampleInputArrayA sample for classification. It should be a one-channel matrix of \f$1 \times dims\f$ or \f$dims \times 1\f$ size.
probsOutputArrayOptional output matrix that contains posterior probabilities of each component given the sample. It has \f$1 \times nclusters\f$ size and CV_64FC1 type.