Hi, I’m really new working with ITK and VTK and I’d really appreciate a little help. I’m trying out the examples available online and I’ve seen that I need a *.mha or *.mhd file.
My question is, is it possible to get these out my DICOM Images and if so, how do I get it?
You don’t necessarily need a MetaImage to work with ITK/VTK, this is just the historical format of the library.
You can read images directly from your DICOM with the built-in GDCM lib.
Refer to this example to see how you load a DICOM : https://itk.org/Wiki/ITK/Examples/DICOM/ResampleDICOM
The example you reference uses VTK and can only read MetaImage format. If you try to give it another type of image (e.g. DICOM) it will complain. That example doesn’t come with an image, so if you just tried running it no wonder it doesn’t work.