필터 지우기
필터 지우기

Can anyone verify this code for spectral magnitude error?

조회 수: 1 (최근 30일)
aliya
aliya 2015년 5월 25일
댓글: Image Analyst 2015년 5월 25일
%%Input image
origimage = imread('greekchurch','jpg');
// Smoothing via gaussian lowpass
window = fspecial('gaussian', 3, 0.5);
distimage= origimage*window
// Fastfourier transform of image
fftA = fft2(double(origimage));
fftB = fft2(double(distimage));
[r c] = size(origimage);
for i=1:r
for j=i:j
result=abs(fftA)-abs(fftB);
result = result*result/rc;
end
end
  댓글 수: 5
aliya
aliya 2015년 5월 25일
No, i just have tried this by following concept of SME. By coding perspective i am not sure about it.
Image Analyst
Image Analyst 2015년 5월 25일
It seems like you're only reading comments, not any answers below. Any reason why not? Do I need to move my suggestion up here?

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2015년 5월 25일
What do you want to achieve? Are you sure you want to subtract then square, and not square then subtract?

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by