matlab载入图像,旋转,裁剪 保存

clc;clear all;close all
src=imread('C:\Users\think\Desktop\12.jpg');
subplot(1,2,1)
imshow(src);
I = mat2gray(src);
J = imrotate(I,-208);
subplot(1,2,2)
imshow(J);

map0=J(290:949,446:940);
figure
imshow(map0)
saveas(map0,'map0.jpg')

 

posted @ 2017-03-15 09:29  xy123001  阅读(1868)  评论(0编辑  收藏  举报