【发布时间】:2016-10-15 02:21:30
【问题描述】:
我是 c++ 和 opencv 的新手。我有 3 个矩阵,在这三个矩阵中我想找到最大矩阵和最小矩阵,例如
A=[ 1 2 3] B= [ 2 4 6] c=[4 8 12] 那么A是最小值,C是具有高标量值的矩阵,有什么方法可以找到它是,任何帮助表示赞赏。
另一方面,我尝试如下,但它是不正确的。
Mat A=imread("") // intialise the mat 1X3
Mat B= //intialise the mat 1X3
if (A>B) printf("Matrix A greater than B") // this line encounter the Error that is not the correct way of doing that.
【问题讨论】:
-
您究竟何时认为一个矩阵大于另一个矩阵?
-
@Nico Schertler 我不知道具体的做法,但我需要找到小矩阵
-
也许比较平均值?
-
但在此之前,您至少应该查看有关如何迭代 Opencv mat 像素的文档!