OpenCV:widthStep vs step( 五 )


对64bit , 3通道 , double*类型的图像数据I--- Mat img;
I(x, y) blue ~(( double *)(img.data+img.step*y))[3*x];
I(x, y) green ~(( double *)(img.data+img.step*y))[x*3+1];
I(x, y) red ~(( double *)(img.data+img.step*y))[x*3+2];
一般 , 拜候图像像素方式 , 格局:
对于N通道 , T类型的图像 , 
【OpenCV:widthStep vs step】I(x,y)c~((T*)(img.Data+img.step *y))[x*N+c];

OpenCV:widthStep vs step



OpenCV:widthStep vs step



OpenCV:widthStep vs step



注重事项step拜候图像像素的形式;
widthStep拜候图像像素的形式;

以上内容就是OpenCV:widthStep vs step的内容啦 , 希望对你有所帮助哦!

猜你喜欢