转载来自:http://blog.sina.com.cn/s/blog_a3fc4c6a0100zeco.html
CV_IMAGE_ELEM是一个宏, #define CV_IMAGE_ELEM( image, elemtype, row, col ) 想正确的得到图像的坐标为(x,y)点的像素值,是应该这样写CV_IMAGE_ELEM(Image, uchar, y, x), 不过将IMAGE的数据按照原来的样子复制到mat中可以这么写: |
转载来自:http://blog.sina.com.cn/s/blog_a3fc4c6a0100zeco.html
CV_IMAGE_ELEM是一个宏, #define CV_IMAGE_ELEM( image, elemtype, row, col ) 想正确的得到图像的坐标为(x,y)点的像素值,是应该这样写CV_IMAGE_ELEM(Image, uchar, y, x), 不过将IMAGE的数据按照原来的样子复制到mat中可以这么写: |