PANDORE Version 6 GREYC-IMAGE

pmeanprojection



Performs mean value orthogonal projection along main axis.



Synopsis

pmeanprojection axis [im_in|-] [im_out|-]

Description

pmeanprojection builds a new image im_out with one dimension less than the input image im_in which stores the projection of the mean value along the specified axis. If the input image is a 3D image, the output image is a 2D image where each pixel stores the mean value along the orthogonal axis. If the input image is a 2D image, the output image is a 1D image where each pixel stores the mean value along the orthogonal axis.

For example, the projection of the 2D image along the x axis builds the output image im_out of the size width(im_in) and each pixel is set with:

   im_out[x]=MEANy(im_in[y][x])

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Projects the gray levels of the tangram.pan image along the x axis:

   pmeanprojection 0 tangram.pan a.pan

See also

Transformation

C++ prototype

Errc PMeanProjection( const Img3duc &im_in, Img2duc &im_out, int axis );

Version française

Projection orthogonale des valeurs moyennes sur un axe d'une image.


Author: François Angot