mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
Merge pull request #5965 from amroamroamro:fix_concentric_spheres
This commit is contained in:
commit
cb0b2bd1af
@ -104,7 +104,7 @@ void createConcentricSpheresTestSet( int num_samples, int num_features, int num_
|
||||
max_dst = std::max( max_dst, dis[i].d );
|
||||
|
||||
for( ; i < num_samples && dis[i].d <= max_dst; ++i )
|
||||
responses.at<int>(i) = cur_class;
|
||||
responses.at<int>(dis[i].i) = cur_class;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user