[Insight-developers] itk:FlipImageFilter
Luis Ibanez
luis.ibanez at kitware.com
Wed, 07 Jan 2004 18:46:22 -0500
Kent,
Maybe what is in question is the meaning of "fliping".
If you have an image formed by the following four
characters:
AB
CD
AB are along the X axis, thus the fastest moving axis
= axis[0].
AC are along the Y axis, thus the slowest moving axis
= axis[1].
If you process this image with the FlipImageFilter
and provide a flip array = [1,0] the output image
will look like
BA
DC
If instead you provide a flip array = [0,1] the
output image will look like
CD
AB
A new example was added to the CVS repository under
Insight/Examples/Filtering/FlipImageFilter.cxx
The last two arguments in the command line are the
parameters for the flip array. You may want to
try this example and check if it corresponds to
what you are observing.
Luis
----------------------
Kent Williams wrote:
> That is what I thought. Unfortunately that is not what I'm seeing --
> In the OrienterImageFilter I am trying to flip the first dimension, so
> I'm passing in { true, false, false }. But when I dump out the pixel
> data, it appears it's reversing the slices, not the rows.
>
> On Wed, 2004-01-07 at 16:07, Luis Ibanez wrote:
>
>>Kent,
>>
>>The array of FlipAxes follows the same order of ITK indices,
>>which is that the lowest index corresponds to the fastest
>>moving dimension.
>>
>>
>>In other words
>>
>>Flip[0] --> Index[0] ---> contiguous pixels in memory
>>Flip[1] --> Index[1] ---> pixels that are one row appart
>>Flip[2] --> Index[2] ---> pixels that are one slice appart
>>Flip[3] --> Index[3] ---> pixels that are one volume appart
>>
>>....and so on
>>
>>
>>Luis
>>
>>
>>----------------------
>>
>>Kent Williams wrote:
>>
>>
>>>Does the FlipImageFilter expect the argument to SetFlipAxes (a
>>>FlipAxesArrayType) to be arranged slowest-moving-dimension first, or
>>>last?
>>>
>>>
>>>_______________________________________________
>>>Insight-developers mailing list
>>>Insight-developers at itk.org
>>>http://www.itk.org/mailman/listinfo/insight-developers
>>>
>>
>>
>
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
>