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?