Code covered by the BSD License  

Highlights from
Viola Jones Object Detection

image thumbnail

Viola Jones Object Detection

by

 

17 Nov 2010 (Updated )

Viola Jones Object detection using OpenCV trained classifiers

PixelSum=GetSumRect(IntegralImage,x,y,Width,Height)
function PixelSum=GetSumRect(IntegralImage,x,y,Width,Height)
%
% PixelSum=GetSumRect(IntegralImage,x,y,Width,Height)
%
IIWidth=size(IntegralImage,1);
PixelSum  =   IntegralImage((x+Width)*IIWidth + y + Height+1) +  ...
			  IntegralImage(x*IIWidth+y+1) - ...
			  IntegralImage((x+Width)*IIWidth+y+1) - ...
			  IntegralImage(x*IIWidth+y+Height+1);



            
       

Contact us