测试 opencv 中 Mat 的 rowRange、colRange :
1- Mat::rowRange(int startrow, int endrow) 为矩阵的指定行区间创建一个矩阵头
- startrow – An inclusive 0-based start index of the row span.// 从0开始的行间距索引
- endrow – An exclusive 0-based ending index of the row span.//终止索引
2- Mat::colRange(int startcol, int endcol) 为矩阵的指定列区间创建一个矩阵头
- startcol – An inclusive 0-based start index of the col span.// 从0开始的列间距索引
- endcol – An exclusive 0-based ending index of the col span.//终止索引
#include "opencv2/opencv.hpp"
#include"iostream"
using namespace std;
using namespace cv;
int main()
{
uchar a[16]={
1,0,0,0

最低0.47元/天 解锁文章
7151

被折叠的 条评论
为什么被折叠?



