how to make frequency domain filtering?!

Hey everybody;
I am trying to make a code for "frequency domain filtering" using fourier transform function , but that error is always displayed...
Error Message:
??? Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N) to change the limit. Be aware that exceeding your available stack space can crash MATLAB and/or your computer.
Error in ==> imformats>find_in_registry
Can anybody help me to solve that problem??!!
Thanks a lot... end

4 件のコメント

Walter Roberson
Walter Roberson 2013 年 6 月 11 日
Please show your code, and show the traceback from find_in_registry to your code.
Mariam Sheha
Mariam Sheha 2013 年 6 月 11 日
Thanks for your answer...
% code
I=imread('img.jpg');
entry=rgb2gray (I);
hz=fspecial('sobel');
PQ=paddedsize(size(entry));
HZ=fft2(double(hz), PQ(1), PQ(2));
F=fft2(double(entry),PQ(1),PQ(2));
FDF=HZ.*F;
fdf=ifft2(FDF);
fdf=fdf(1:size(entry,1),1:size(entry,2));
figure,imshow(fdf,[ ])
Walter Roberson
Walter Roberson 2013 年 6 月 12 日
When the error shows up, it will show the find_in_registry call, but it will also say "called from" and give another line, and that will be "called from" something, and on upwards until eventually it shows which line within your code (above) that the problem is triggered by.
Also we will need to know the name of the .m file that the code was stored in.
Mariam Sheha
Mariam Sheha 2013 年 6 月 13 日
for the error it 's not mentioned the error problem line ...
the name of the file is (ready_code_2)...

サインインしてコメントする。

回答 (1 件)

Honglei Chen
Honglei Chen 2013 年 6 月 11 日

0 投票

What's your script/function name? Just a wild guess, but maybe you are using fft2 as your function name?

1 件のコメント

Mariam Sheha
Mariam Sheha 2013 年 6 月 12 日
Thanks a lot,
no i don't , i know what you mean but i name it by anther name

サインインしてコメントする。

カテゴリ

製品

質問済み:

2013 年 6 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by