how to check whether two matrices are identical in OpenCV

前端 未结 9 1793
南方客
南方客 2020-11-28 10:44

I have two instances of cv::Mat : m1 and m2. They are of the same numeric type and sizes. Is there any function in OpenCV that returns whether the matrices are identical (ha

9条回答
  •  天涯浪人
    2020-11-28 10:59

    Use cv::compare combined with cv::countNonZero.

    An SO question that might help you further OpenCV compare two images and get different pixels

提交回复
热议问题