提交 0070ce20 编写于 作者: V Vadim Pisarevsky

next attempt to fix ticket #1121

上级 8a888cd9
......@@ -885,7 +885,7 @@ normDiffInf_(const T* src1, const T* src2, const uchar* mask, ST* _result, int l
{
len *= cn;
for( int i = 0; i < len; i++ )
result = std::max(result, std::abs(src1[i] - src2[i]));
result = std::max(result, (ST)std::abs(src1[i] - src2[i]));
}
else
{
......@@ -893,7 +893,7 @@ normDiffInf_(const T* src1, const T* src2, const uchar* mask, ST* _result, int l
if( mask[i] )
{
for( int k = 0; k < cn; k++ )
result = std::max(result, std::abs(src1[k] - src2[k]));
result = std::max(result, (ST)std::abs(src1[k] - src2[k]));
}
}
*_result = result;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册