[ITK] [ITK-users] ExtractSliceImageFilter & image orientation
Matt McCormick
matt.mccormick at kitware.com
Fri Mar 3 10:38:06 EST 2017
Hello Christina,
One option may be to call SetDirectionCollapseToStrategy on
ExtractImageFilter:
https://itk.org/Doxygen/html/classitk_1_1ExtractImageFilter.html#a5b3bcfa552d8ad7cf509e32209aadc13
This approach addresses the Image Direction matrix.
Another option is to use FlipImageFilter:
https://itk.org/Doxygen/html/classitk_1_1FlipImageFilter.html
instead of OrientImageFilter.
Hope this helps,
Matt
On Fri, Mar 3, 2017 at 10:32 AM, Chr. Rossmanith <
cr at neuro.ma.uni-heidelberg.de> wrote:
> Hi,
>
> I'd like to extract a sagittal slice from a 3d image volume. The
> application should be quite flexible and thus be able to process axial,
> coronal and sagittal image volumes.
>
> This is my mini pipeline: OrientImageFilter -> ExtractImageFilter
>
> The problem is that I keep getting the slice rotated 90° and flipped. ITK
> snap renderes the volume correctly with correct orientation labels. I've
> attached the source code and the input data volume. Of course I could
> rotate and flip the slice back, but that's not very elegant...
>
> Any hints what is going wrong here?
>
> Regards,
>
> Christina Roßmanith
>
>
> _____________________________________
> 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://public.kitware.com/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20170303/b193c6c6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: omnoblnnkjmeooia.png
Type: image/png
Size: 3110 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20170303/b193c6c6/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: beabhdepikfmaign.png
Type: image/png
Size: 21822 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20170303/b193c6c6/attachment-0003.png>
-------------- next part --------------
_____________________________________
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://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list