What must the size of centre image? And how to get the borders?

As we have to fit all 5 photos, what must the size of centre image?
How can we get the borders

hey @nikhil_0406 ,
The shape of the center image needs to be 100x100.

and to create borders , there are two ways to do this.
there is a function in opencv library , called copyBorders ( spelling might be wrong ), check that out.
and other is , you can first create a array of shape 120x120 , having all values as 0 and then
keeping borders of 10 on both sides,
just copy your image data into it. like a[10:110,10:110] = image.

In this way you will get borders and image under it too.

1 Like

thanks, I used the second approach and it works fine.

hey @nikhil_0406 ,
good to hear that.

So i guess your doubt is now resolved , so i request you to kindly mark this doubt as resolved in your doubt section and do provide your feedback .
Thank You and Happy Learning :slightly_smiling_face:.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.