[Insight-users] flipping axes of a 4D image

Bill Lorensen bill.lorensen at gmail.com
Thu Feb 23 16:44:37 EST 2012


Then try:
itkPermuteAxesImageFilter

OrientImageFilter uses Flips and Permutes to accomplish its task.

On Thu, Feb 23, 2012 at 12:57 PM, Steven Mocking
<smocking at nmr.mgh.harvard.edu> wrote:
> Hi,
>
> Sorry I should have been more precise. Trying to swap axes, e.g. XYZ to ZYX,
> not flip individual ones, so that filter doesn't do the trick.
>
> Think I've figured it out now. You can use Image::setDirection and define a
> 4x4 cosine matrix.
>
> Thanks,
>  Steven
>
>
> On 02/22/2012 11:42 PM, Matt McCormick wrote:
>>
>> Hi Steve,
>>
>> Please try the FlipImageFilter.
>>
>> Hope this helps,
>> Matt
>>
>> On Wed, Feb 22, 2012 at 6:55 PM, Steven Mocking
>> <smocking at nmr.mgh.harvard.edu>  wrote:
>>>
>>> Hi,
>>>
>>> I'm trying to change the axes of a 4D image, but OrientImageFilter seems
>>> to
>>> be restricted to 3-dimensional images. Is there some other way to do this
>>> or
>>> treat it as a bunch of 3D images somehow?
>>>
>>> Would prefer to avoid needless copying though.
>>>
>>> Thanks,
>>>  Steven
>>>
>>>
>>> The information in this e-mail is intended only for the person to whom it
>>> is
>>> addressed. If you believe this e-mail was sent to you in error and the
>>> e-mail
>>> contains patient information, please contact the Partners Compliance
>>> HelpLine at
>>> http://www.partners.org/complianceline . If the e-mail was sent to you in
>>> error
>>> but does not contain patient information, please contact the sender and
>>> properly
>>> dispose of the e-mail.
>>>
>>> _____________________________________
>>> 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
>>
>>
>
> _____________________________________
> 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



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the Insight-users mailing list