Copy/Paste a Segment in the image

I have a masked image selecting my region of interst. It has same size of input image. I want to get that particular masked segement from the image and paste somewhere in other image or same image.
Thanks

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by