resampling setting in pyradiomics 2.0.1

196 views
Skip to first unread message

Zhenwei Shi

unread,
Sep 18, 2018, 11:40:28 AM9/18/18
to pyradiomics
Hi, developers

When I am using resampling, I found a wired thing. 

According to the results: the general_info_GeneralSettings is: 
{'distances': [1], 'voxelArrayShift': 1000, 'additionalInfo': True, 'force2D': False, 'interpolator': 'sitkBSpline', 'voxelBased': False, 'resampledPixelSpacing': [0, 0, 2], 'label': 1, 'normalizeScale': 1, 'normalize': False, 'force2Ddimension': 0, 'removeOutliers': None, 'minimumROISize': None, 'binWidth': 25, 'minimumROIDimensions': 1, 'preCrop': False, 'resegmentRange': None, 'padDistance': 10}

The general_info_ImageSpacing is still the original pixel spacing. The wired thing is the general_info_VoxelNum has changed. See the attachment, results and parameter file. 

Could you please tell me what is wrong?

Best,
Zhenwei
pyradiomics_resampling_results.csv
Pyradiomics_Params.yaml

Joost van Griethuysen

unread,
Sep 19, 2018, 4:08:43 AM9/19/18
to pyradiomics
Dear Zhenwei,

Nothing is wrong, general_info_ImageSpacing gives you the original spacing of the image, i.e. before resampling is applied. Conversely, voxelNum is the number of voxels the extraction is based upon, and reflects the voxels in the ROI after all pre-processing is done.

Regards,

Joost

Op dinsdag 18 september 2018 17:40:28 UTC+2 schreef Zhenwei Shi:

Zhenwei Shi

unread,
Sep 19, 2018, 4:49:03 AM9/19/18
to pyradiomics
Hi, Joost

Thanks for your answer. One more question about resampling: the original image spacing is [0.9,0.9,3]. When I set resampledPixelspacing [2,2,2], the result is [2,2,2] or [0.9*2 ,0.9*2 ,3*2] or others?

Best,
Zhenwei

Joost van Griethuysen

unread,
Sep 20, 2018, 5:25:18 AM9/20/18
to pyradiomics
[2, 2, 2]

Op woensdag 19 september 2018 10:49:03 UTC+2 schreef Zhenwei Shi:
Reply all
Reply to author
Forward
0 new messages