摘要: 看了《学习OpenCV》,发现例3-9代码有问题,就找了这篇文章:http://www.cnblogs.com/moondark/archive/2012/03/12/2392437.html 以下内容转自这篇文章。在Learning OpenCV书中,讲到一个基础数据类型CvMat,其中有一段程序: 1 Example 3-9. Summing all of the elements in a three-channel matrix 2 float sum( const CvMat* mat ) { 3 4 float s = 0.0f; 5 for(int row=0; ro... 阅读全文
posted @ 2014-03-13 14:50 Jie Forest 阅读(2428) 评论(0) 推荐(0) 编辑