欢迎来到天天文库
浏览记录
ID:57722592
大小:14.00 KB
页数:2页
时间:2020-09-02
《傅里叶变换、离散余弦变换处理图像的代码.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、一、图像处理基本功能普通傅里叶变换(ft)与逆变换(ift)、快速傅里叶变换(fft)与逆变换(ifft)、离散余弦变换(DCT),小波变换;数字图像直方图的统计及绘制等;图像平滑算法实现及应用。(一)、程序源代码:代码一:clc;I=imread('aaa.jpg');length(size(I))==3g=rgb2gray(I);subplot(1,2,1)imshow(I);title('原图');subplot(1,2,2)I=rgb2gray(I);subplot(2,2,1);imshow(I);
2、title('原始图象');[J,T]=histeq(I);subplot(2,2,3);imshow(J);title('增强图象');subplot(2,2,2);imhist(I,64);title('原始图象直方图');subplot(2,2,4);imhist(J,64);title('均衡化图象直方图');colorbar;J=fft2(g);%快速傅里叶变换figure;subplot(1,2,1)imshow(J);title('FFT变换结果');subplot(1,2,2)K=fftshi
3、ft(J);imshow(K);title('零点平移');%图象的DCT变换RGB=imread('aaa.jpg');figure;subplot(1,2,1)imshow(RGB);title('彩色原图');a=rgb2gray(RGB);subplot(1,2,2)imshow(a);title('灰度图');figure;b=dct2(a);imshow(log(abs(b)),[]),colormap(jet(64)),colorbar;title('DCT变换结果');figure;b(abs
4、(b)<10)=0;%idctc=idct2(b)/255;imshow(c);title('IDCT变换结果');运行结果:
此文档下载收益归作者所有