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

4 次查看(过去 30 天)
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?

回答(1 个)

Matt J
Matt J 2021-7-26
编辑:Matt J 2021-7-26
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