MATLAB Answers

see the 3d image and see the coordinates while moving the mouse over the image

3 views (last 30 days)
Golnoush Asaeikheybari
Golnoush Asaeikheybari on 26 Jul 2021
Edited: Matt J on 26 Jul 2021
I have a nii binary medical image. How can I visualize it in a way that I be able to move my mouse over it and see the coordinates I am moving over?
Or how can I visualize some specific points in the format of ijk on the image also?

Answers (1)

Matt J
Matt J on 26 Jul 2021
Edited: Matt J on 26 Jul 2021
You can use imshow() to display any particular slice of the image and then use the axis datatip button to get the in-slice 2D coordinates of particular pixels.
It is not mathematically possible to have a 3D datatip on a 2D rendering of 3D space (although the dataip will work on a surface plot).

Community Treasure Hunt

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

Start Hunting!

Translated by