You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an image and a mask (NRRD) with the following spacings.
Image
sizes: 384 384 195
space directions: (0.88541668653499994,0,0) (0,0.88541668653499994,0) (0,0,0.90000152587888649)
space origin: (-169.55729547141999,-140.2094694674,-100.48773193358997)
Mask
sizes: 258 243 287
space directions: (-0.066025928798141606,0,0) (0,-0.066025928798141606,0) (0,0,0.066025928798141606)
space origin: (80.501059337315141,-20.490285052856315,0.76234966516494795)
The mask spacing is much finer than the image one, since it originates from an automatic segmentation. However, considering the origin and size, the mask cover the lesion (ROI)
Starting the extraction with "resampledPixelSpacing": [0.9, 0.9, 0.9] i obtain the following INFO:
[2020-01-07 15:20:29] I: radiomics.imageoperations: Applying resampling from spacing [0.06602593 0.06602593 0.06602593] and size [257 221 273] to spacing [0.9 0.9 0.9] and size [19, 17, 21]
Is it normal? Is it only related to the mask? Also the image should be resampled, but I find no info about that.
I think a separate output should be shown for mask and image. Furthermore I'm not sure whether this coarse graining a priori will affect the result.
Any help will be appreciated. Best regards.
The text was updated successfully, but these errors were encountered:
@GiulioBen, for feature extraction to work, Image and Mask are obligated to be in the same image space. Even if you don't enable resampling, you'll still need to translate the mask to the image space.
This is due to the fact that further on in PyRadiomics, image and mask are converted to numpy arrays, which loses the geometric information (not needed anymore at that point).
So this output tells the result for both image and mask resampling, and is normal behavior. The small size reflects the fact that PyRadiomics only resamples a small area (equal to ROI bounding box + additional padding), which is computationally much more efficient.
As to the results of extracted features: Yes, resampling WILL change the values of the extracted features. However, resampling to a coarser spacing does not necessarily mean the performance of models based on those features is affected too. In fact, performance may even increase, as more coarse structures are analyzed, which are less susceptible to noise.
I.e. there is a tradeoff: Coarser spacing is less susceptible to noise, but at some point important information is also lost. So it depends a bit on your dataset what settings will get the best results. I generally advise to not interpolate too much, and find a compromise between in-plane spacing and slice thickness.
I have an image and a mask (NRRD) with the following spacings.
Image
Mask
The mask spacing is much finer than the image one, since it originates from an automatic segmentation. However, considering the origin and size, the mask cover the lesion (ROI)
Starting the extraction with "resampledPixelSpacing": [0.9, 0.9, 0.9] i obtain the following INFO:
[2020-01-07 15:20:29] I: radiomics.imageoperations: Applying resampling from spacing [0.06602593 0.06602593 0.06602593] and size [257 221 273] to spacing [0.9 0.9 0.9] and size [19, 17, 21]
Is it normal? Is it only related to the mask? Also the image should be resampled, but I find no info about that.
I think a separate output should be shown for mask and image. Furthermore I'm not sure whether this coarse graining a priori will affect the result.
Any help will be appreciated. Best regards.
The text was updated successfully, but these errors were encountered: