mirror of
https://github.com/opencv/opencv.git
synced 2024-12-03 08:19:52 +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++ )
|
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 )
|
if( !uniform )
|
||||||
dims[i] = MIN(dims[i], max_ni_dim_size);
|
dims[i] = MIN(dims[i], max_ni_dim_size);
|
||||||
total_size *= dims[i];
|
total_size *= dims[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user