Trace boundaries of objects in NOT binary images

조회 수: 2 (최근 30일)
Silvia
Silvia 2013년 10월 31일
댓글: Ankit Sahay 2020년 9월 4일
Hello,
I'd need some help. I need to trace region boundaries in an image. I would need exactly what bwboundaries does but in multi-label images because my image is not binary.
I have a lot of objects, holes, objects inside other objects ... I have to detect all the objects and get its boundaries. I have found only bwboundaries but i couln't find anything for not binary images.
Thank you very much

채택된 답변

Image Analyst
Image Analyst 2013년 10월 31일
You can binarize the image and then call it
binaryImage = labeledImage > 0
If the objects are touching and still labeled (which you must have done with a custom algorithm) then you will need multiple binary images:
binaryImage = labeledImage == labelNumberThatYouWant;
do it for every label number that you want the boundary of.
  댓글 수: 5
Image Analyst
Image Analyst 2020년 9월 3일
I have no idea what you want - no idea what "deal with" means to you. Start a new question and attach your image(s).
Ankit Sahay
Ankit Sahay 2020년 9월 4일
Okay. Thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by