当前位置:编程学习 > Matlab >>

请matlab的高手帮忙看一下下面程序的问题:

RGB=imread('lena.bmp'); G=rgb2 gray(RGB); DCT=dct2(G); DCT(abs(DCT)<10)=0; IDCT=idct2(DCT); subplot(2,2,1),imshow(G); title('灰度图像'); subplot(2,2,2),imshow(IDCT,[0 255]); title('压缩图像'); subplot(2,2,3),imshow(DCT); title('DCT变换图像'); subplot(2,2,4),imshow(log(abs(DCT)),[]); title('二维变换谱'),colorbar;
补充:运行结果为ans=1,怎么才能正常运行啊?
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,