[Insight-users] Writing Analyze file and specifying header properties
Kent Williams
nkwmailinglists at gmail.com
Tue Apr 3 13:45:16 EDT 2012
When you read in the BMP file, the image orientation defaults to
identity. You can change the Direction cosines for the image to
reflect what you want for the output image. The ImageIO object that
does the actual writing uses the orientation/spacing/origin
information contained in the image that you're writing.
I guess there's a reason you're using Analyze format, but I'd
recommend against it, as it's very limited, especially when it comes
to correct representation of orientation.
On Mon, Apr 2, 2012 at 5:43 PM, Sara Rolfe <smrolfe at u.washington.edu> wrote:
> Hello,
>
> I would like to read a file of bmp images and write them as a 3DAnalyze
> image. I have implemented this using the ImageSeriesReader. However, when
> the output is written as an Analyze volume, the default values for
> orientation and voxel resolution are incorrect. This causes the output
> image to be mirrored. I've not been able to find an explanation of how to
> set these properties and would appreciate help figuring this out.
>
> Thanks,
> Sara
>
>
> _____________________________________
> 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.php
>
> 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