I'm following along with the book Deep Learning with PyTorch. On page 263, they try to load in the LUNA16 CT scan data using the python package SimpleITK. Unfortunately this package isn't available in R for Windows users.
Would anyone be able to suggest an alternate library that I could use? They say the data is in the MetaIO format, and each scan comes with 2 files - one .mhd (metadata) and one .raw (coordinates).
Sorry if I haven't provided enough information - I'm trying to understand the data and code myself as I go along with the book!
This is their code:
import SimpleITK as sitk
# ... line 83
class Ct:
def __init__(self, series_uid):
mhd_path = glob.glob(
'data-unversioned/part2/luna/subset*/{}.mhd'.format(series_uid)
)[0]
ct_mhd = sitk.ReadImage(mhd_path)
ct_a = np.array(sitk.GetArrayFromImage(ct_mhd), dtype=np.float32)