- Create a grid of coordinates for the original image volume using "ndgrid".
- Apply the same geometric transformation to these coordinates using the "transformPointsForward" method.
- Use the transformed coordinates to map the voxel locations.
- Apply geometric transformation to image: https://www.mathworks.com/help/images/ref/imwarp.html
- 3-D affine geometric transformation: https://www.mathworks.com/help/images/ref/affinetform3d.html
- Apply forward geometric transformation: https://www.mathworks.com/help/images/ref/affinetform2d.transformpointsforward.html
- Rectangular grid in N-D space: https://www.mathworks.com/help/matlab/ref/ndgrid.html