문제

Binary Medical Image with some connected regions

Here I show a binary Image having many connected regions(white). I want to replace these regions by single pixel edges. how can I do it?

please help someone

I want this type of result

도움이 되었습니까?

해결책

BWMORPH with the skel option finds the skeleton of the image. Note that I needed to clean up the image a little bit to get a decent result

img = imread('http://i.stack.imgur.com/0Paok.jpg');
img = imopen(img,strel('disk',3)); %# you may want to play with the radius here
border = bwmorph(img,'skel',inf);

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top