PANDORE Version 6 | GREYC-IMAGE |
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])
Returns SUCCESS or FAILURE.
Projects the gray levels of the tangram.pan image along the x axis:
pmeanprojection 0 tangram.pan a.pan
Projection orthogonale des valeurs moyennes sur un axe d'une image.
Author: François Angot