1,如何旋转图片
img=im2double(imread('lena.jpg'));
读入图像并转为双精度型
hrotate=vision.GeometricRotator;
创建系统对象
hrotate.Angle=pi/6;
设定旋转角度为pi/6
rotimg=step(hrotate,img);
执行系统对象
imshow(rotimg);
显示旋转后的图像
2,用matleb显示图片中的直线
RGB=imread('ro
1,如何旋转图片
img=im2double(imread('lena.jpg'));
读入图像并转为双精度型
hrotate=vision.GeometricRotator;
创建系统对象
hrotate.Angle=pi/6;
设定旋转角度为pi/6
rotimg=step(hrotate,img);
执行系统对象
imshow(rotimg);
显示旋转后的图像
2,用matleb显示图片中的直线