found it after 2 more minutes of searching^^ the double imfill with a ~ (not()) does the job:
imshow(~imfill(~imfill(km~=0,[160,160]),[160,160]))
does the job
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!