필터 지우기
필터 지우기

How do I generate one binary image with all my shapes in it?

조회 수: 3 (최근 30일)
Yashlin Naidoo
Yashlin Naidoo 2015년 5월 18일
편집: Yashlin Naidoo 2015년 5월 30일
This is my code below. I require a binary image to fit all my shapes in. The binary image background should be displayed in white and the shapes should be in black. The binary image should fit all my shapes in it. I used "subplot",it seems though it doesn't generate one image but rather several images together. My code below;
  댓글 수: 2
Image Analyst
Image Analyst 2015년 5월 18일
Don't double space your code. Single space it and then highlight it and click {}Code to format it properly.

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

채택된 답변

Walter Roberson
Walter Roberson 2015년 5월 19일
Use poly2mask to create the binary images of the polygons. Then use horzcat() or vertcat() to put them side by side.

추가 답변 (0개)

제품

Community Treasure Hunt

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

Start Hunting!

Translated by