MATLAB: Copy RGB image pixel value to another white background

imageimage processingImage Processing Toolboxrgb

I have an image with dimension 785*1300. I want to convert this image to 1300*1300. Here I created a 1300*1300 white image and i want to copy previous image into this image. How can I do this with matlab.

Best Answer

For your specific case here, you can simply use padarray() to pad white on the right and left sides. See the help. Let me know if you can't figure it out, otherwise you can Accept this answer.