Editing a binary image mask based on original image

조회 수: 3 (최근 30일)
S_run
S_run 2020년 9월 30일
댓글: Image Analyst 2020년 10월 3일
I am running code that generates a binary mask based on an object in the image. When I overlay the boundary onto the raw image, I notice that while it is largely accurate, there are still some parts that are not correct. Is there a way where I can overlay the mask onto the raw image, similar to how image Segmenter does it, and then edit the mask? For example, erase some parts of it or add to the mask? Please let me know. Thank you!

채택된 답변

Image Analyst
Image Analyst 2020년 10월 1일
You can use imoverlay() to superimpose your initial segmentation over the original image. Then outline or paint your corrections on that and convert it back to a binary image.
  댓글 수: 2
S_run
S_run 2020년 10월 2일
So I was able to overlay the images, but how would I paint the corrections or outline them? Is there a way to make the outline interactive so that I can adjust it? Thank you
Image Analyst
Image Analyst 2020년 10월 3일
Try drawfreehand() or drawpoint() or whatever they're called. There is a whole family of draw*() functions.

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

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by