Can anyone tell me how to read and write a .hdr and .img file using ITK?

Dear All,
I have encountered a difficulty about a project using ITK to read and write image such as this:
image.hdr
image.img
I don’t know how to read this image, can anyone tell me which class or method need to use for reading this kind of image?

Thanks.

You should be able to read it using the standard way, just give a path to .hdr file. Example.

1 Like