PANDORE Version 6 | GREYC-IMAGE |
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).
Returns SUCCESS or FAILURE.
Calculates the integral image of tangram.pan
pintegralimage tangram.pan a.pan
Author: Pierre Buyssens