Move a region to a given point
Afficher commentaires plus anciens
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 ?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur ROI-Based Processing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!