Closed rueberger closed 5 months ago
This is upstream of ANTs:
>>> import SimpleITK as sitk
>>> image = sitk.ReadImage("JRC2018_FEMALE_38um_iso_16bit.nrrd", imageIO="NrrdImageIO")
>>> image.GetSpacing()
(0.38, 0.38, 0.38)
As far as I know, ITK always works in mm units, so if it recognized microns it would represent the image spacing internally as 0.00038 mm. This can cause numerical issues in some filters, I would stay with the "0.38" units while doing image processing in the ANTs / ITK world.
here is an nrrd file with a resolution of isotropic 0.38 microns. its header is
the ants "header" for this file upon loading it with
ants.image_read
is