[Insight-users] Saving Image Orientation Bug?

Andreas Schuh andreas.schuh.84 at googlemail.com
Wed Oct 28 10:06:40 EDT 2009


Hi Constantine,

there was a bug report submitted for this and Matthieu fixed it about  
a month ago.

http://www.itk.org/Bug/view.php?id=7748#c17626

Andreas



On Oct 28, 2009, at 9:22 AM, Constantine Zakkaroff <mnkz at leeds.ac.uk>  
wrote:

> Yello ALL,
>
> The was a mention of this a couple of months back, but it seems 3.16  
> still has this issue unresolved.
>
> It appears that direction matrix gets transposed during writing  
> dicom images, unless metadata dictionary array is passed to the  
> writer.
>
> For example, in Examples/IO/DicomSeriesReadImageWrite2.cxx, we read  
> some series with this orientation:
>
> (0020,0037)    Image Orientation (Patient)                          
> VR: DS Length: 88     Value:  
> 0.4 
> 1069489717483\ 
> 0.8 
> 3055555820465\-0.3761743903160\-0.6754358410835\0.0\-0.7374187111854
>
> Saved volume displays this orientation:
>
> (0020,0037)    Image Orientation (Patient)                          
> VR: DS Length: 56     Value:  
> 0.410695\-0.675436\-0.612467\0.830556\0.000000\0.556936
>
> Basically the first two rows of the orientation matrix get written  
> to dicom header, instead of the first two columns.
>
> However in another example, DicomSeriesReadSeriesWrite.cxx, before  
> writing the whole metadata dictionary array is passed to the writer  
> and the orientation in the output series comes out right:
>
> (0020,0037)    Image Orientation (Patient)                          
> VR: DS Length: 88     Value:  
> 0.4 
> 1069489717483\ 
> 0.8 
> 3055555820465\-0.3761743903160\-0.6754358410835\0.0\-0.7374187111854
>
> Is it intended to be this way, saving transposed orientation matrix  
> unless metadata dictionary array is passed to the writer? Is it a  
> feature or is it a bug?
>
> Regards,
> Constantine
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list