%two_cats=imread('two_cats.jpg');
two_cats=imread('result.jpg');
%two_cats=rgb2gray(two_cats);
%two_cats=two_cats(:,:,1); % Grab only the Red component to fake gray scaling
imshow(two_cats)
PQ = paddedsize(size(two_cats));
D0 = 0.09*PQ(1);
H1 = hpfilter('btw', PQ(1), PQ(2), D0, 4); % Calculate the LPF
F=fft2(double(two_cats),size(H1,1),size(H1,2)); % Calculate the discrete Fourier transform of the image
LPF_two_cats=real(ifft2(H1.*F)); % multiply the Fourier spectrum by the LPF and apply the inverse, discrete Fourier transform
LPF_two_cats=LPF_two_cats(1:size(two_cats,1), 1:size(two_cats,2)); % Resize the image to undo padding
figure, imshow(LPF_two_cats, [])
% Display the Fourier Spectrum
Fc=fftshift(F); % move the origin of the transform to the center of the frequency rectangle
S2=log(1+abs(Fc)); % use abs to compute the magnitude (handling imaginary) and use log to brighten display
%S2=abs(Fc);
%figure, imshow(S2,[])
SVD.rar_the code
版权申诉
161 浏览量
2022-09-21
20:04:56
上传
评论
收藏 2KB RAR 举报
朱moyimi
- 粉丝: 63
- 资源: 1万+
最新资源
- Picasso_v3.1 2.ipa
- chromedriver-mac-arm64.zip
- 蓝zapro.apk
- chromedriver-linux64.zip
- UCAS研一深度学习实验-MNIST手写数字识别python源码+详细注释(高分项目)
- 基于Python和PyTorch框架完成的一个手写数字识别实验源码(带MINIST手写数字数据集)+详细注释(高分项目)
- 基于Matlab在MNIST数据集上利用CNN完成手写体数字识别任务,并实现单层CNN反向传播算法+源代码+文档说明(高分项目)
- NVIDIA驱动、CUDA和Pytorch及其依赖
- 基于SVM多特征融合的微表情识别python源码+项目说明+详细注释(高分课程设计)
- html动态爱心代码一(附源码)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈