How can I remove big rectangle , which contains small rectangle?

I want to remove the rectangles, which contain small rectangles with specific sizes. The big rectangle marked by arrow..

5 Comments

What have you tried so far? Have you figured out a method to do this in pseudocode?
Thanks for your comment. if a big rectangle contains some small rectangles, I just remove the big rectangle. I have only the rectangle (x,y,w,h)
First place...how you got those rectangles? This helps us in giving solution to the roots.
If (x,y,w,h) values for each rectangles are available, this task would be much easier. Can we use these values ?

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!