How to display the Rectangles from different frames in one frame?
2 views (last 30 days)
I am working on a vacant spot detection solution. I am getting the rectangle boxes for different frames in multiples figures, all I want is to display all the detected rectangles boxes in single figure.
Here I am attaching the figures Please find the attachment
Alessandro Masullo on 23 May 2016
If you know the coordinates of your rectangles, you can simply extract each box from your image by using standard indexing:
rec_x = [10 20 20 10 10];
rec_y = [10 10 50 50 10];
box = your_image(rec_y(1):rec_y(3),rec_x(1):rec_x(2));