[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/insight-users/attachments/20170303/b5c2a9f5/attachment.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/insight-users/attachments/20170303/b5c2a9f5/attachment.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/insight-users/attachments/20170303/b5c2a9f5/attachment-0001.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/insight-users/attachments/20170303/b5c2a9f5/attachment.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/insight-users/attachments/20170303/b5c2a9f5/attachment.cxx>


More information about the Insight-users mailing list