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

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

Definition at line 130 of file BasicTypes.h.

References bottom, left, right, and top.

00131     {
00132         //in case of an even number of pixels width or height there is no
00133         //'middle pixel' so in that case a choice has to be made... we take
00134         //the pixel left and below the mathematical mid to be the middle pixel
00135         //because this works well with convolutions
00136         return Point((left+right+1)/2, (top+bottom+1)/2);
00137     }


Generated on Thu Jan 13 09:21:01 2011 for ImpalaSrc by  doxygen 1.5.1