Can you please explain this max and temp?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Steven Lord
am 14 Feb. 2018
It's computing a moving maximum. If you're using release R2016a or later of MATLAB you could use the movmax function instead.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!