フィルターのクリア

plz help me sorting the error...

1 回表示 (過去 30 日間)
angel
angel 2013 年 4 月 13 日
コメント済み: Walter Roberson 2017 年 5 月 8 日
the code i wrote is:
S(y,x)=0.125*f(y,mod(x-p-2,N)+1)+...
0.375*f(y,x)+...
0.375*f(y,mod(x+p,N)+1)+...
0.125*f(y,mod(x+p*2+1,N)+...
0.125*f(mod(y-p-2,N)+1,x)+...
0.375*f(y,x)+...
0.375*f(mod(y+p,N)+1,x)+...
0.125*f(mod(y+p*2+1,N)+1,x));
here f() corresponds to my input image
error shown is:
Attempted to access f(1,169.125); index must be a positive integer or logical.
Error in dyadicAnalysis (line 29)
S(y,x)=0.125*f(y,mod(x-p-2,N)+1)+...
here p=2^j-1; where j is a loop variable starts from 1 and end at log(N)/log(2)
N=sizef(1), sizef=size(f);
can anybody tell me what is the problem in it? i've tried floor but the error remains the same

採用された回答

Image Analyst
Image Analyst 2013 年 4 月 13 日
There is no 169.125'th element of a matrix. You can access element # 169 or 170, but if you want to get 169.125 then you'll have to do interpolation.
  13 件のコメント
Aqsa Ali
Aqsa Ali 2017 年 5 月 8 日
Error using imshow>preParseInputs (line 425) IMSHOW expected at least 1 input argument but was called instead with 0 input arguments.
Error in imshow (line 214) varargin_translated = preParseInputs(varargin{:}); while running the code i am facing this error please help me in sorting out this error
Walter Roberson
Walter Roberson 2017 年 5 月 8 日
Aqsa Ali: which code are you using? Please post it.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDisplay Image についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by