locate (x,y) coordinates on an image

1 view (last 30 days)
Anisha Jamil
Anisha Jamil on 27 Jun 2021
Edited: Anisha Jamil on 28 Jun 2021
Hi, I performed image registration of two images using the function cpselect where I selected some points on the fixed and moving images and later transformed them. Any idea on how I can locate the specific points on the moving image which can later be transformed into the fixed imag?

Answers (1)

Matt J
Matt J on 28 Jun 2021
Assuming the transform type you're using supports it, you would use transformPointsInverse.
  2 Comments
Matt J
Matt J on 28 Jun 2021
You can use datatip() instead of ginput, although youwill have to set SnapToDataVertex appropriately, if you want to be able to select non-integer pixel locations.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by