图像旋转算法的MATLAB实现非工具箱调用

我豪小跟屁虫 42 0 M 2019-03-04 09:03:56

很详细的注释,适合新手 function[A] = my_rot(B,alpha) %本函数只能对灰度图像进行旋转 %对RGB图像进行旋转之前会将RGB转换成灰度图像 %读取原图像 [m,n,k]=size(B); %获取原图尺寸 if k>=2 %判断是否是RGB图像 B = rgb2gray(B); end %参数设置 theta = alpha*pi/180; %旋转角度 a = sin(theta); b = cos(theta); T = [cos(theta),sin(theta),; %旋转矩阵 -sin(theta),cos(t

用户评论
请输入评论内容
评分:
Generic placeholder image 卡了网匿名网友 2019-03-04 09:03:56

对我一个初学者,挺详细

Generic placeholder image 卡了网匿名网友 2019-03-04 09:03:56

注释很详细,挺不错的,很有参考价值

Generic placeholder image 卡了网匿名网友 2019-03-04 09:03:56

还不错吧,有点用

Generic placeholder image 卡了网匿名网友 2019-03-04 09:03:56

有详细的注释,挺好理解的