Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

Point Impala::Core::Tracking::Rect::mid (  )  const [inline]

Definition at line 122 of file BasicTypes.h.

References bottom, left, right, and top.

00123     {
00124         //in case of an even number of pixels width or height there is no
00125         //'middle pixel' so in that case a choice has to be made... we take
00126         //the pixel left and below the mathematical mid to be the middle pixel
00127         //because this works well with convolutions
00128         return Point((left+right+1)/2, (top+bottom+1)/2);
00129     }


Generated on Fri Mar 19 11:22:00 2010 for ImpalaSrc by  doxygen 1.5.1