PANDORE Version 6 GREYC-IMAGE

pintegralimage



Calculates the integral image.



Synopsis

pintegralimage [-m mask] [im_in|-] [col_out|-]

Description

The operator pintegralimage calculates the integral image of the input image im_in. The integral image is a mean to calcule the sum of an inner window of the input image.

The integral image denoted output(x,y) at location (x,y) contains the sum of the pixels abov and to the left of (x,y):

   output(x,y) = SUM(input(i,j)) where i in [0..x] and j in [0..y].

Given the integral image, the sum of pixel values within a rectangular region of the input image can be computed using the four values of the integral image L1 (top left), L2 (top right), L3 (bottom left) and L4 (bottom right): L4+L1 - (L2+L3).

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Calculates the integral image of tangram.pan

   pintegralimage tangram.pan a.pan

See also

Arithmetic

C++ prototype

Errc PIntegralImage( const Img2duc &im_in, Collection &col_out );

Author: Pierre Buyssens