PANDORE Version 6 |
GREYC-IMAGE |
pflip
Performs flip transformation for image or region map.
Synopsis
pflip axis [-m mask] [im_in|-] [im_out|-]
Description
pflip builds a new image (or a region mp)
im_out that is the symmetrical of the input
image (or region map) im_in abut a specified
axis.
For example, the flip transform of the input
2D image about the x axis in calculated as follows:
im_out[y][x]=im_in[y][width-x-1]
Parameters
- axis is an integer in the interval [0..2] where:
- 0: flip about the x axis.
- 1: flip about the y axis.
- 2: flip about the z axis.
Inputs
- im_in: an image or a region map.
Outputs
- im_in: an image of the same type as the input image.
Result
Returns SUCCESS or FAILURE.
Examples
Builds the symmetrical of the tangram.pan image:
pflip 0 tangram.pan a.pan
See also
Transformation
C++ prototype
Errc PFlip( const Img3duc &im_in,Img3duc &im_out, int axis );
Version française
Construction du symétrique d'une image.
Author: François Angot