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)
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.

Answers (1)

Image Analyst
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
Khee Wern Loh
Khee Wern Loh on 22 Feb 2017
The bounding box is plot on the moving object detected by background substitution, I can't find the position of the box. Is there any method to get the position for each bounding box ?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!