(I);
subplot(1,2,1);imshow(I);title('原图');
subplot(1,2,2);imshow(I1);title('垂直镜像');
第二章 图像正交变换
2.1 离散余弦变换...语法规则:
正变换:B=dct2(A)
逆变换:B=idct2(A)
A:原图像,B:结果图像
clc;clear;
s=what;
p=s.path;
I=imread...(gr);%离散余弦变换
subplot(2,2,3);imshow(I1);title('离散余弦变换');
I2=idct2(I1);%逆离散余弦变换
subplot(2,2,4);imshow(I2...,[]);title('逆离散余弦变换');
运行结果
?...2.3 离散小波变换
语法规则:
正变换:[ca,cb,cc,cd] =dwt2(X,wname)
逆变换:Y= idwt2([ca,cb,cc,cd],'wname')