how to pad images of different sizes and making them of same size by putting the original image in the middle in matlab?
I have images of different sizes. I want to specify the width and the height. All the images should be padded with black pixels putting the actual image in the middle.