mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 04:12:52 +08:00
Fix for using sampleIdx to limit training data
This commit is contained in:
parent
a924bbfc30
commit
ea7efd57d8
@ -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