PANDORE Version 6 GREYC-IMAGE

paddborder



Performs resizing of image or region map by adding or removing an empty border.



Synopsis

paddborder ll lr hu hd df db [-m mask] [im_in|-] [im_out|-]

Description

paddborder magnifies the input image im_in by adding a border around the input image. If the parameters are negative, this operator shrinks the image.

The size of the border is defined by ll + lr width, hu + hd height and df + db depth.

Pixels in the new border is set to 0.

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Adds an empty border around tangram.pan

   paddborder 1 1 1 1 0 0 tangram.pan a.pan

Removes border around tangram.pan

   paddborder -1 -1 -1 -1 0 0 tangram.pan a.pan

See also

Transformation

C++ prototype

Errc PAddBorder( const Img2duc &im_in, Img2duc &im_out, int ll, int lr, int hu, int hd );

Version française

Agrandissement our réduction d'une image en lui ajoutant un bord à 0.


Author: Régis Clouard