PANDORE Version 6 |
GREYC-IMAGE |
ptranslation
Performs translation of image or region map.
Synopsis
ptranslation direction shift [-m mask] [im_in|-] [im_out|-]
Description
ptranslation translates the content of the
input image (or region map) im_in to shift
pixels in the specified direction.
The new added pixel values are set to 0.
Parameters
- direction is in the interval [0..2] where:
- 0: along x axis.
- 1: along y axis.
- 2: along z xis.
- shift is a positive or negative integer.
It is measured in pixel unit.
Inputs
- im_in: an image or a region map.
Outputs
- im_out: an object of the same type as im_in.
Result
Returns SUCCESS or FAILURE.
Examples
Translates the tangram.pan image of 50 pixels from the left:
ptranslation 0 50 tangram.pan a.pan
See also
pscrolling,
Transformation
C++ prototype
Errc PTranslation( const Img3duc &im_in,Img3duc &im_out, int direction, Long shift );
Version française
Construction du translaté d'une image.
Author: Régis Clouard