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

Inputs

Outputs

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