Can you please explain this max and temp?
2 ビュー (過去 30 日間)
古いコメントを表示
Idilate = Igray;
for i = 1:rows
for j = 2:cols-1
temp = max(Igray(i,j-1), Igray(i,j));
Idilate(i,j) = max(temp, Igray(i,j+1));
end
0 件のコメント
回答 (1 件)
Steven Lord
2018 年 2 月 14 日
It's computing a moving maximum. If you're using release R2016a or later of MATLAB you could use the movmax function instead.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!