Table of Contents

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

sample InputArray

A sample for classification. It should be a one-channel matrix of \f$1 \times dims\f$ or \f$dims \times 1\f$ size.

probs OutputArray

Optional output matrix that contains posterior probabilities of each component given the sample. It has \f$1 \times nclusters\f$ size and CV_64FC1 type.

Returns

Vec2d