[Insight-developers] NIfTI orientation issue
luis.ibanez at kitware.com
Tue Oct 27 11:22:49 EDT 2009
No objection from my corner...
But, please note the related thread regarding the subsequent
passing of the MetaDataDictionary through the pipeline:
On Tue, Oct 27, 2009 at 9:26 AM, Mathieu Coursolle
<mathieu at rogue-research.com> wrote:
> On the same topic, the itkNiftiImageIO has a function called DumpNiftiHeader
> used to output
> the header information.
> Any objection on all this header information being added to the metadata
> dictionary ?
> On 2009-10-26, at 1:59 PM, Mathieu Coursolle wrote:
> Hi ITK developers,
> I am using the itkNiftiImageIO to load NIfTI image data. The NIfTI file
> format defines 2 different methods to map voxels
> to physical coordinates. One of those methods is using a quaternion and is
> defined when the qform_code > 0. The other
> method is using a linear transform and is defined when the sform_code > 0.
> Looking at the code which sets the orientation based on the NIfTI header, it
> seems to prioritize the qform over the sform.
> (See void NiftiImageIO:: SetImageIOOrientationFromNIfTI(unsigned short int
> However, there are some cases where I would need both the qform and the
> sform transforms once the data is loaded.
> I guess one option would be to add them as part of the metadata ?
> Could we do something like:
>> >(this->GetMetaDataDictionary(),"qform", myQForm);
>> >(this->GetMetaDataDictionary(),"sform", mySForm);
> Any other suggestions ?
> Mathieu Coursolle, ing.jr., M.Ing.
> Rogue Research Inc.
> 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:
More information about the Insight-developers