The function's input is just a 3D image. 3 orthogonal slice objects are created in a 3D space. You can grasp one image slice and move your mouse to see the changing image data on the slice. Their motions are confined to translations along the 3rd axis only. Thanks Anders Brun's contribution of moveit2 function on the motion.
While it is moving, the slice object's 'CData' member continuously updated with the image data overlapping with its current position.
Run the following codes to see how it works:
All feedbacks are welcomed to email@example.com.
update my contact email
My file uses codes from 23304 Moveit2 by Anders Brun.
My code is modified from this submission : ID 23304. I would like to include it in my license.
Inspired by: Moveit2 - Move a graphical object with the mouse.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.