can I change 1 of the bounding box color to other color and all other bounding box remind with the previous color ?
3 views (last 30 days)
Show older comments
can I change 1 of the bounding box color(green) to other color(red) and all other bounding box remind with the previous color(green) ? I have tried using insertShape function but by using this all the box will change to red color. Is there any method to just change 1 bounding box color? Thank in advance.
0 Comments
Answers (1)
Image Analyst
on 21 Feb 2017
I believe insertShape() burns it into the image. I don't see why you can't use it to burn in several boxes each with its own color.
If you want to put the graphics into the overlay instead, you could use plot() or rectangle().
2 Comments
Image Analyst
on 22 Feb 2017
You have to segment the image to get a binary image. Then you can use regionprops() to get the bounding box.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!