distance transform and local maxima
조회 수: 4 (최근 30일)
이전 댓글 표시
I have binary image. I want to find the distance transform then apply the local max to it. any suggestions?
댓글 수: 0
답변 (2개)
Image Analyst
2014년 8월 8일
편집: Image Analyst
2014년 8월 8일
What does "Apply the local max" to it mean? Do you mean imdilate(), which does the local max in a sliding/local window?
edtImage = bwdist(binaryImage); % Calc Euclidean Distance Transform.
% Now get the local max in a 5x5 window everywhere.
localMaxImage = imdilate(edtImage, true(5)); % Whatever window size you want.
Let me know if you want the local max only if it's at the center of the window, like if you want to find ridgelines or something.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!