mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
force each histogram dimension to be >= 1
This commit is contained in:
parent
c209013da8
commit
fe88a55b42
@ -174,7 +174,7 @@ void CV_BaseHistTest::get_hist_params( int /*test_case_idx*/ )
|
||||
|
||||
for( i = 0; i < cdims; i++ )
|
||||
{
|
||||
dims[i] = cvTsRandInt(rng) % (max_dim_size + 1) + 1;
|
||||
dims[i] = cvTsRandInt(rng) % (max_dim_size + 2) + 2;
|
||||
if( !uniform )
|
||||
dims[i] = MIN(dims[i], max_ni_dim_size);
|
||||
total_size *= dims[i];
|
||||
|
Loading…
Reference in New Issue
Block a user