Isolate the outline of a shape.
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello i have through binarizing and using bwpropfilt i have got the attached image, my question is : does anyone have an idea how i can isolate the outline of the shape in the middle and have it as a shape?
댓글 수: 0
채택된 답변
Matt J
2021년 8월 31일
편집: Matt J
2021년 8월 31일
Perhaps as follows?
load Image
BW=bwareafilt(Image,1);
BW=imerode(bwconvhull(BW),strel('disk',20))& ~BW;
BW=imopen(BW,ones(10,1));
BW=bwperim(bwareafilt(BW,1));
imshow(BW); zoom(3)
댓글 수: 2
Matt J
2021년 8월 31일
Thanks i found a way with bwboundaries, now i have another problem.
If so, you should post it as a new question.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!