I referred to this link on how to make intermediate slice in a 3D volume images using interp3 in Matlab. However, my stacked 2D MRI images have a specific image coordinates in 3D space as shown in the figure.
I know I can interpolate intermediate slices between my MRI volume first, then plot it in the 3D space with the image coordinates I have. However, I want to directly interpolate intermediate slices in this 3D space. That is, the mesh grid should be the image coordinates of these stacked MRI images. My Image coordinates are in the form of 256x256x3 showing the coordinates of each pixel, where the third dimension is the x,y,z, i.e. imagecoords(:,:,1) is the x-coordinates of all pixels in an image, imagecoords(:,:,2) is the y-coordinates of all pixels in an image, imagecoords(:,:,3) is the z-coordinates of all pixels in an image. How do make this into a meshgrid? Can anyone guide me how to do this?
If my question is not clear, do let me know, I will update my question again. Thanks!