摘要:
%双线性内插法做图像旋转clear,homeformat compacta=imread('Gone_with_the_wind_8bits.bmp');%读入图像[m,n]=size(a);alpha_=input('请输入旋转角(角度制):');alpha_=mod(alpha_,360);alpha=alpha_*pi/180;%则旋转后的图形的大框的高度和宽度为gd=round(abs(m*cos(alpha))+abs(n*sin(alpha)));kd=round(abs(m*sin(alpha))+abs(n*cos(alpha)));b=zero 阅读全文