Move a region to a given point
Show older comments
Suppose I've selected a region of interests out of an image and that now I've a mask and an image where everything's black but the ROI that contains the originals intensity values.
How can I now move this region to a given point obtained with ginput ?
As for now what I've tried was to get the differences in X,Y coordinate of the centroid of my region and the point I want to move it to and then circshifting the matrix with these distances. The result however is not the desired one.
EDIT: Also, is it possible to have one ROI obtained from one image to fit another ROI from another image ?
Accepted Answer
More Answers (0)
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!