2018-06-11 14:17:59 UTC
3 values. I can then either save this to disk as a multicomponent nifti
image or as 3 single component images.
Using fslhd, I verify that all the headers of the single- and
multi-component files are identical, except for the obvious fact that one is
single component and the other is multi (e.g., dim0=3 vs. dim0=5). One thing
that is particularly important is that they both are in RAS, as shown in
I read and reorient the images with a templated method:
typedef itk::ImageFileReader<ITKImageType> ReaderType;
ReaderType::Pointer reader = ReaderType::New();
ITKImageType::Pointer itk_image_orig = reader->GetOutput();
itk::OrientImageFilter<ITKImageType,ITKImageType>::Pointer orienter =
ITKImageType::Pointer itk_image = orienter->GetOutput();
std::cout << "\nflip axis:\n" << orienter->GetFlipAxes() << "\n";
Where the template is:
- itk::Image<float, 3> for the single component images
- itk::VectorImage<float, 3> for the multi component images
The images are given in RAS and the desired output is RAS, so no changes
should take place.
output for single component images: "flip axis: [0, 0, 0]"
output for multi component images: "flip axis: [0, 0, 1]"
This is causing problems as the origin moves accordingly for multicomponent
images. Is there any obvious reason as to why this is happening? Have I made
a mistake somewhere? Is this a bug?
Sent from: http://itk-users.7.n7.nabble.com/
The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there!
Powered by www.kitware.com
Visit other Kitware open-source projects at
Kitware offers ITK Training Courses, for more information visit:
Please keep messages on-topic and check the ITK FAQ at:
Follow this link to subscribe/unsubscribe: