ITK Pre-Processing Algorithm Wrappers in Python/FlipFilter

From FarsightWiki
Jump to: navigation, search

Flip filter

This filter is implemented using the itkFlipImageFilter class in ITK. The filter flips the image across the axes that are specified by the user.

Parameters:

  • 1. FlipAxes - for an n-D image, this is a n-tuple, with each element being a 0 or a 1. A '1' indicates that the image is to be flipped across that axis. For example (for a 2-D image), to flip the imaage across the horizontal axis, set FlipAxes to be 0,1. Fig. 1 shows how the the Flip filter flips the image seg_orig across the horizontal axis with parameter values 0,1. For flipping across the vertical axis, the parameter should be 1,0.

Back to main page.

Fig. 1: seg_orig flipped across the y-axis using the Flip filter.
Personal tools