I have downloaded 4D CT data from DIRLAB image database. The images are in
I tried to read these images using
I am getting the following exception
Please tell me the correct process to read these images.
Not sure what format your image is in, it isn’t automatically recognized by ITK/SimpleITK.
Given the generic “img” extension I suspect this may be a raw format which requires additional information from a header file, but this is just a guess. A SimpleITK example illustrating how to read raw image files is available on read the docs.
If this is not the case you will need to provide additional information with respect to this format or possibly share an example image.
Looking at the description of the DIRLAB data set, the images appear to be in Pinnacle TPS raw *.img format. It seems like the images are raw 16-bit images, although I don’t know the file format, so who knows?
Googling around it seems that the PyMedPhys library has a Pinnacle to DICOM export tool