I have a 501x501x83 matrix which contains the vector field of each point. . This vector field corresponds to coordinates. x,y,z grid for the vector field in coordinates. I want to convert them back into vector field specified per voxel, rather than using physical coordinates. While the positive direction is along how voxel indices increase, the values in VF are in the unit of voxels.
I appreciate your suggestion