Method GetTrainSamples
- Namespace
- OpenCvSharp.ML
- Assembly
- OpenCvSharp.dll
GetTrainSamples(SampleTypes, bool, bool)
Returns matrix of train samples
public Mat GetTrainSamples(SampleTypes layout = SampleTypes.RowSample, bool compressSamples = true, bool compressVars = true)
Parameters
layoutSampleTypesThe requested layout. If it's different from the initial one, the matrix is transposed. See ml::SampleTypes.
compressSamplesboolif true, the function returns only the training samples (specified by sampleIdx)
compressVarsboolif true, the function returns the shorter training samples, containing only the active variables.