《学习opencv》笔记——矩阵和图像操作——cvSetIdentity,cvSolve,cvSplit,cvSub,cvSubS and cvSubRS
矩阵和图像的操作(1)cvSetIdentity函数其结构voidcvSetIdentity(//将矩阵行与列相等的元素置为1,其余元素置为0CvArr*arr//目标矩阵);实例代码#include#include#include#includeusingnamespacestd;intmain(){doublea[3][3]={{1,2,3},{4,5,6},{7,8,9}};CvMatva=