提交 fe88a55b 编写于 作者: V Vadim Pisarevsky

force each histogram dimension to be >= 1

上级 c209013d
......@@ -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];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册