Can you please explain this max and temp?
조회 수: 1 (최근 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
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!