MATLAB: How to superimpose a smaller image onto larger image at required coordinates

image processingimage segmentationMATLAB

I have cropped a small part of image from original image and then perform some filtering and segmentation on the cropped image .Now i want to superimpose the cropped image onto the original image at its previous position. How can i do this in MATLAB?

Best Answer

Transformed =....
New = Original;
New(lower_y:lower_y+transformed_height-1, left_x:left_x+transformed_width-1, :) = Transformed ;
Related Question