isolate masks from an image that was created in a non-MATLAB program

조회 수: 5 (최근 30일)
Hello,
I am using a python program to find objects in an image. The output of the python program is an image where the original image is grayed and masks are overlayed in different colors, similar to the output of labelmatrix() and then label2rgb().
I want to read this output image into MATLAB and do further processing on the regions overlayed by color. How do I isolate these regions in MATLAB? In other words, how do I find the different colored masks?
Thanks

채택된 답변

Yongjian Feng
Yongjian Feng 2021년 8월 17일
Interesting. Can your python program outputs the masks only? That will be much easier for matlab to process the masks.
Then you might follow this answer:
  댓글 수: 1
Fiona Senchyna
Fiona Senchyna 2021년 8월 17일
Thank you, yes I was able to figure out how to output the masks separately after posting my question.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by