フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

can you please explain the working of following syntax?

1 回表示 (過去 30 日間)
Siddhesh Karbhari
Siddhesh Karbhari 2018 年 1 月 14 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
z=D{extrema(4*(i-1)+1)}(rx,ry,rz);
it is continuously giving 'Bad cell reference operation.' error.
extrema=zeros(1,4*number);
idx= extrema==0;
extrema(idx)=[];
extr_volume=length(extrema)/4;
for i=1:extr_volume
x=floor((extrema(4*(i-1)+3)-1)/(n/(2^(extrema(4*(i-1)+1)-2))))+1;
y=mod((extrema(4*(i-1)+3)-1),m/(2^(extrema(4*(i-1)+1)-2)))+1;
rx=x+1;
ry=y+1;
rz=extrema(4*(i-1)+2);
z=D{extrema(4*(i-1)+1)}(rx,ry,rz);
size(z)
if(abs(z)<threshold)
extrema(4*(i-1)+4)=0;
end
end

回答 (1 件)

Star Strider
Star Strider 2018 年 1 月 14 日
The code you posted does not make sense. It sets ‘extrema’ to an empty array, so all references to elements of ‘extrema’ would throw errors, because they do not exist.
  3 件のコメント
Star Strider
Star Strider 2018 年 1 月 14 日
I cannot run the code that you attached.
I will delete my Answer in a few hours.
Walter Roberson
Walter Roberson 2018 年 1 月 14 日
We do not have your b.jpg to test with. I copied the demo image car2.jpg to b.jpg and ran the code without difficulty.
"Bad cell reference operation" is not a MATLAB error message. Is it possible that you were running under Octave?

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by