PedestrainCounting
GrayScaleIntegralImage.h
1 
7 #ifndef GRAY_SCALE_INTEGRAL_IMAGE_HEADER
8 #define GRAY_SCALE_INTEGRAL_IMAGE_HEADER
9 
10 #include "IntegralImage.h"
11 
13 public:
14  // The img should be CV_8UC1
15  GrayScaleIntegralImage(const cv::Mat &img);
16  GrayScaleIntegralImage(int w, int h);
18 
19  // Calculate the integral image.
20  // Should be called if the img changed.
21  void CalculateInt(const cv::Mat &img);
22 
23  unsigned int GetSum(const Rect &roi) const;
24 
25 private:
26  // The integral image data.
27  unsigned int *intImage;
28 };
29 
30 
31 #endif
Definition: Geometry.h:34
Definition: GrayScaleIntegralImage.h:12
Definition: IntegralImage.h:11