How to implement sign operator using matlab

조회 수: 2 (최근 30일)
praveen kumar
praveen kumar 2020년 11월 2일
댓글: Walter Roberson 2020년 11월 10일
I was trying to implement a filter for digital image processing which require sign operator ie.
Can some tell me how to calulate it.
where ,X[u,v] is fast fourier transform of image.
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 11월 2일
편집: Walter Roberson 2020년 11월 10일
be sure to check that this is what you expect for complex inputs if that is a possibility

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

답변 (1개)

Mathieu NOE
Mathieu NOE 2020년 11월 10일
hello
your code request the sign of the phase of fft2 output
example below - nothing fancy :
img = imread('Noe_300dpi_3.jpg');
imagesc(img)
img = fftshift(img(:,:,2));
F = fft2(img);
figure;
imagesc(100*log(1+abs(fftshift(F)))); colormap(gray);
title('magnitude spectrum');
figure;
imagesc(angle(F)); colormap(gray);
title('phase spectrum');
figure;
imagesc(sign(angle(F))); colormap(gray);
title('phase spectrum sign');
you 'll notice the sharper output when you use sign(phase) instead of phase only
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 11월 10일
Is the phase of the fourier transform? The user indicated that is the fourier transform but did not define

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

카테고리

Help CenterFile Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by