mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 11:10:21 +08:00
Merge pull request #23019 from tkram01:sampleIdxFix
Fix for using sampleIdx to limit training data
This commit is contained in:
commit
8c64adb000
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user