PANDORE Version 6 GREYC-IMAGE

pnewimage



Creates a new image from dimensions.



Synopsis

pnewimage w h d val [im_out|-]

Description

pnewimage creates a new image from the specified dimensions (width,height,depth) with the specified value val for all pixels.

The format of the output image is deduced from the dimension values:

The type of the output image is deduced from the parameter val value:

Two other operators can be used to create a new image. psetcst creates a new image from properties of another image. pshapedesign creates a new image from specified dimensions and type.

Parameters

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Fills hole in regions yields by a simple segmentation process of the tangram.pan image:

   pbinarization 100 1e30 tangram.pan in.pan
   pnewimage 256 256 0 255 i0.pan
   psetborder 1 1 1 1 1 1 0 i0.pan i1.pan
   perosionreconstruction 4 i1.pan in.pan fillhole_out.pan

See also

Utility, pshapedesign, psetcst

C++ prototype

No prototype.

Version française

Création d'une nouvelle image à partir de dimensions.


Author: Régis Clouard