Finding ROI in frequency domain.

18 Ansichten (letzte 30 Tage)
Shreyas Kamath
Shreyas Kamath am 17 Nov. 2015
Beantwortet: Image Analyst am 17 Nov. 2015
I am looking for a method which can be used for finding the ROI on a matrix obtained by plotting power spectrum of an image. The power spectrum is shown below:
In this I am interested in the region between the two red circles(circles on the image were drawn manually). As it is in the frequency domain, the ROI can be calculated by selecting a frequency from a to b. But I am short of a method to do it. Anything in this regard would be helpful. Thank you.
The code used is:
img= rgb2gray(imread ('finger3.jpg'));
[M,N,~]=size(img);
F = fft2(img);
figure;imshow(mat2gray(log(1+abs(fftshift(F)))));
psd = 10*log10(abs(fftshift(fft2(img))).^2 );
figure(2); clf
mesh(psd);
figure;
imshow(psd, []);
axis on;
colormap(jet(256));
end

Akzeptierte Antwort

Image Analyst
Image Analyst am 17 Nov. 2015
Just mask with circles, like the FAQ shows: http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F

Weitere Antworten (0)

Kategorien

Mehr zu Fourier Analysis and Filtering finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by