What is the best way to make the size of box 2 equal to Box 1 so that CvCopy(); can be applied:
EDIT:
Perhaps I did not put the question properly. So I am re-phrasing it. Given an Image 2 (as shown above), I want to convert it as shown below:
Basically I have to add a black border across it. resize will not work as my image will get distorted. Putting in other words, I have to add zeros in a define thikness around the image.
Also although shown empty, these images(boxes) may have some objects inside them, which I have not shown.