Resizing image after resampling voxels to unit isotropy #690
mattwarkentin
started this conversation in
General
Replies: 1 comment 2 replies
-
The problem here is that resizing is resampling. What it does is change the voxel spacing so that the field of view remains constant while the number of voxels along each dimension is modified. The new spacing is a function of the original shape, therefore your resampling to 1 mm iso is wasted if your images have different shapes. If you look at the images in a smart viewer like 3D Slicer, they will look very similar because they remain in the same physical space. But for a CNN, which doesn't care about voxel spacing, one image will look rescaled with respect to the other. Does this make sense? I can write a short demo if it doesn't. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @fepegar,
I just had a quick question that follows from some of the discussions we had previously about how
Resize()
may deform the aspect ratio if not used carefully.If you first resampled the volume to unit isotropic voxel spacing (i.e. 1mm x 1mm x 1mm), and then resized to some shape, would this avoid the deformation? Seems like it would, but sometimes my mental model fails me.
Something like...
Beta Was this translation helpful? Give feedback.
All reactions