PANDORE Version 6 |
GREYC-IMAGE |
pscrolling
Performs scrolling of image or region map.
Synopsis
pscrolling direction shift [-m mask] [im_in|-] [im_out|-]
Description
pscrolling translates the content of the
input image (or region map) im_in to shift
pixels in the specified direction.
Pixels that are moved out the image are set to the other side of the image.
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
Scrolls the tangram.pan image of 50 pixels from the left:
pscrolling 0 50 tangram.pan a.pan
See also
ptranslate,
Transformation
C++ prototype
Errc PScrolling( const Img3duc &im_in,Img3duc &im_out, int direction, Long shift );
Version française
Construction de l'enroulé d'une image.
Author: Régis Clouard