How do I generate one binary image with all my shapes in it?
2 views (last 30 days)
Show older comments
Yashlin Naidoo
on 18 May 2015
Edited: Yashlin Naidoo
on 30 May 2015
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;
Accepted Answer
Walter Roberson
on 19 May 2015
Use poly2mask to create the binary images of the polygons. Then use horzcat() or vertcat() to put them side by side.
0 Comments
More Answers (0)
See Also
Categories
Find more on Image Processing and Computer Vision in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!