PANDORE Version 6 | GREYC-IMAGE |
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.
w,h,d (width, height, depth) defines the dimensions of the output image.
Returns SUCCESS or FAILURE.
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
Création d'une nouvelle image à partir de dimensions.
Author: Régis Clouard