()-indexing must appear last in an index expression.
1 回表示 (過去 30 日間)
古いコメントを表示
I have this formula. I interested in a DCP. but I want to find atmospheric light with this formula, not function.
for i=1:1:w
for j=1:1:h
A(i,j)=(min(Idark(i,j)>= A(i,j-1))(min(Idark(i,j): A(i,j-1))));
end
end
(w,h image size)
I write like this but it gives the error.( ()-indexing must appear last in an index expression.) can you help me
2 件のコメント
Ridwan Alam
2019 年 12 月 17 日
can you explain what this equation is representing? the way you implemented it is not correct.
採用された回答
Ridwan Alam
2019 年 12 月 18 日
編集済み: Ridwan Alam
2019 年 12 月 18 日
for i=1:1:w
for j=2:1:h
if (min(Idark(i,j))>= A(i,j-1))
A(i,j)=min(Idark(i,j));
else
A(i,j) = A(i,j-1);
end
end
end
0 件のコメント
その他の回答 (1 件)
James Tursa
2019 年 12 月 17 日
You've got closing and opening parentheses next to each other:
...)(...
MATLAB thinks you are trying to use the second part as indexing or function arguments into the first part. This is what you need to fix.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!