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

proper fix for reduce with op=CV_REDUCE_AVG and ddepth==CV_8U

上级 138490fd
...@@ -1872,8 +1872,10 @@ void cv::reduce(const InputArray& _src, OutputArray _dst, int dim, int op, int d ...@@ -1872,8 +1872,10 @@ void cv::reduce(const InputArray& _src, OutputArray _dst, int dim, int op, int d
{ {
op = CV_REDUCE_SUM; op = CV_REDUCE_SUM;
if( sdepth < CV_32S && ddepth < CV_32S ) if( sdepth < CV_32S && ddepth < CV_32S )
{
temp.create(dst.rows, dst.cols, CV_32SC(cn)); temp.create(dst.rows, dst.cols, CV_32SC(cn));
//ddepth = CV_32S; ddepth = CV_32S;
}
} }
ReduceFunc func = 0; ReduceFunc func = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册