PANDORE Version 6 GREYC-IMAGE

pmax



Performs maximum values between image or a graph.



Synopsis

pmax [-m mask] [im_in1|-] [im_in2|-] [im_out|-]

Description

pmax computes the maximum values between inputs im_in1 and im_in2.

If im_in1 and im_in2 are images then the new image im_out is built with the maximum between pixel values of the two input images:

   if (pixel(im_in1) < pixel(im_in2))
   then pixel(im_out) = pixel(im_in2)
   else pixel(im_out) = pixel(im_in1)

The input image im_in1 and im_in2 must be of the same type, and the output image im_out is of the same type as the two input images.

For color or multispectral image, the maximum is computed separately on each band.

If im_in is a graph then the new graph im_out is built with the maximum of values of nodes with the same index.

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Computes the maximum between pixels of the two images a.pan and b.pan:

   pmax a.pan b.pan c.pan

See also

Arithmetic

C++ prototype

Errc PMax( const Img2duc &im_in1, const Img2duc &im_in2, Img2duc &im_out );

Version française

Maximum entre valeurs d'images ou de graphes.


Author: Régis Clouard