Dear pyradiomics developers and users,
I just start using pyradiomics and consider switching my pipeline for feature extraction and radiomics analysis to this platform.
Before I test it out, I have some quick questions to ask and really appreciate if I can get your clarification: does the pixel size (PixelSpacing in Dicom) of the image affect the feature it calculates?
One of the reasons I ask this is that pyradiomics requires to feed the data in SimpleITK format, and the example data in the package are prepared in NRRD (.nrrd) format (I used to work with dicom).
I noticed there is a "space directions" in the NRRD header, which is comprised of three vectors. Does it have anything to do with the PixelSpacing in Dicom header? I read the NRRD specification, but still not very clear about what it means.
Here are some examples of the header field in some demo NRRD data:
brain1_image.nrrd
space directions: (0.78124999999999989,0,0) (0,-0.78124999999999989,0) (0,0,6.4999999999999982)
prostate_phanton_subvolume.nrrd
space directions: (-0.5,0,0) (0,-0.5,0) (0,0,3)
Do the space directions are related with PixelSpacing, say space directions are equal with PixelSpacing in quantity? Then +/- defines the direction of the vector?
I noticed when I load .nrrd file into simpleITK image, img.GetSpacing() returns (0.7812499999999999, 0.7812499999999999, 6.499999999999998), or (0.5, 0.5, 3).
I used SimpleITK function to read in a dicom series as simpleITK image (img), and then save it to NRRD (.nrrd) file using sitk.WriteImage(img, filename), however, it seems all the spacing information are missing when writing to NRRD file.
The space directions in the saved nrrd file are unit vectors: (1,0,0) (0,1,0) (0,0,1), even if I set the spacing of the SimpleITK image: img.SetSpacing([0.5, 0.5, 3]) .
Could you give me some suggestion about how to write the meta information such as (space directions, space origin) in .nrrd with SimpleITK properly?
Thanks for checking this out!