Dear all,
I am currently saving frames of an image buffer in MHD file format using a similar approach as described in https://itk.org/ITK/help/tutorials.html - Example V. The image data is saved correctly and the images look fine. However, my MHD file header contains: AnatomicalOrientation = ??. For my application, the anatomical orientation is not relevant, however, I would like to replace the ?? with RAI to avoid problems in the future.
Among other things I tried:
const unsigned int Dimension = 2;
typedef itk::ImportImageFilter<unsigned char, Dimension> BufferImport;
BufferImport::Pointer frame = BufferImport::New();
typedef itk::Image<unsigned char> ImageType;
ImageType::DirectionType direction;
direction.SetIdentity();
frame->SetDirection(direction);
Unfortunately, this did not solve the issue. Does someone know how to fix this?
Thanks a lot for your help in advance!
Saskia