When we should resample and resize?

I was working with a dataset (https://www.cancerimagingarchive.net/collection/prostate-mri-us-biopsy/?swpmtx=a4e8067aeba864db9b1451b15a61997c&swpmtxnonce=4475fb572b), and while annotating with both T2 and DWI, the segmentation was accurate in 3D Slicer. However, the sizes of T2 and DWI images differed. How is this possible? Should I resize the images? After resizing, the segmentation appears incorrect!

It is normal that various images are properly aligned in physical space but have completely different geometry (different origin, spacing, axis directions). You don’t need to resample the images, unless you use some software or algorithm that operates in voxel space, i.e., ignores image origin, spacing, axis directions.

1 Like

I’ve used the code of pyradiomics. Is it okay ? (Like pyradiomic extension )

Hello dear @lassoan I’ve used the code of pyradiomics. Is it okay ? (Like pyradiomic extension )

Pyradiomics takes the image geometry into account, so it should not be necessary to resample.