MATLAB: Combining 2 images of different size

image processing

I am trying to combine 2 image of different size. The smaller image is to be fully overlaying a small part of the bigger image without transparency. Like a sticker over a image. How do I go about doing it? I have the specific coordinates of where the smaller image should be overlaid on.

Best Answer

CompositeImage = BiggerImage;
CompositeImage(FirstRow : FirstRow + size(SmallerImage,1) - 1, FirstColumn : FirstColumn + size(SmallerImage,2) - 1) = SmallerImage;