[ITK] [ITK-users] ExtractSliceImageFilter & image orientation

Chr. Rossmanith cr at neuro.ma.uni-heidelberg.de
Fri Mar 3 10:32:07 EST 2017


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20170303/b5c2a9f5/attachment-0001.html>
-------------- 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/b5c2a9f5/attachment-0002.png>
-------------- 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/b5c2a9f5/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CCmanually.nii.gz
Type: application/gzip
Size: 15226 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20170303/b5c2a9f5/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ExtractTest.cxx
Type: text/x-c++src
Size: 2231 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20170303/b5c2a9f5/attachment-0001.cxx>
-------------- 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