Merge pull request #23019 from tkram01:sampleIdxFix

Fix for using sampleIdx to limit training data
This commit is contained in:
Alexander Smorkalov 2023-03-22 11:59:34 +03:00 committed by GitHub
commit 8c64adb000
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -904,7 +904,7 @@ public:
if( s )
{
j = s[i];
CV_Assert( 0 <= j && j < nsamples );
CV_Assert( 0 <= j && j < ((layout == ROW_SAMPLE) ? samples.rows : samples.cols) );
}
values[i] = src[j*sstep];
if( values[i] == MISSED_VAL )