Can you please explain this max and temp?

2 visualizaciones (últimos 30 días)
Iqra Saleem
Iqra Saleem el 14 de Feb. de 2018
Respondida: Steven Lord el 14 de Feb. de 2018
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

Respuestas (1)

Steven Lord
Steven Lord el 14 de Feb. de 2018
It's computing a moving maximum. If you're using release R2016a or later of MATLAB you could use the movmax function instead.

Categorías

Más información sobre Image Data Workflows en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by