opencv中如何利用mat来获取连续内存的图像区域,并改变形状
cv::Mat patch ;patch.create(patch_size,patch_size,srcImage.type());srcImage(patchRect).copyTo(patch);cv::Mat reshapePatch;if(patch.isContinuous()){reshapePatch = patch.reshape(0,1); }
原创
2012-06-11 12:21:21 ·
1464 阅读 ·
0 评论