/// <summary> /// Gets the sum of a rectangular feature in an integral image. /// </summary> public static float GetSum(ref HaarRectangle rect, IImage2DFloatA integralImage, int x, int y) { return integralImage.GetIntegralSum(x + rect.ScaledX, y + rect.ScaledY, rect.ScaledWidth, rect.ScaledHeight) * rect.ScaledWeight; }