Lines Matching refs:sampleIdx
131 return !sampleIdx.empty() ? (int)sampleIdx.total() : in getNSamples()
160 Mat getTrainSampleIdx() const { return !trainSampleIdx.empty() ? trainSampleIdx : sampleIdx; } in getTrainSampleIdx()
217 sampleIdx.release(); in clear()
242 sampleIdx = _sampleIdx.getMat(); in setData()
253 if( !sampleIdx.empty() ) in setData()
255 CV_Assert( (sampleIdx.checkVector(1, CV_32S, true) > 0 && in setData()
256 checkRange(sampleIdx, true, 0, 0, nsamples-1)) || in setData()
257 sampleIdx.checkVector(1, CV_8U, true) == nsamples ); in setData()
258 if( sampleIdx.type() == CV_8U ) in setData()
259 sampleIdx = convertMaskToIdx(sampleIdx); in setData()
759 trainSampleIdx = sampleIdx; in setTrainTestSplit()
761 testSampleIdx = sampleIdx; in setTrainTestSplit()
771 const int* sptr = !sampleIdx.empty() ? sampleIdx.ptr<int>() : 0; in setTrainTestSplit()
826 if( (!compressSamples || (trainSampleIdx.empty() && sampleIdx.empty())) && in getTrainSamples()
967 Mat sampleIdx, trainSampleIdx, testSampleIdx; member in cv::ml::TrainDataImpl
987 InputArray varIdx, InputArray sampleIdx, InputArray sampleWeights, in create() argument
991 td->setData(samples, layout, responses, varIdx, sampleIdx, sampleWeights, varType, noArray()); in create()