CImageIntegralProcessorComp.h
Go to the documentation of this file.
1 #ifndef iipr_CImageIntegralProcessorComp_included
2 #define iipr_CImageIntegralProcessorComp_included
3 
4 
5 // ACF includes
6 #include <istd/IPolymorphic.h>
7 #include <iprm/IParamsSet.h>
8 #include <iimg/IBitmap.h>
9 #include <iimg/CScanlineMask.h>
11 
12 
13 namespace iipr
14 {
15 
16 
21 {
22 public:
31  static bool CalculateIntegralImage(
32  const iimg::IBitmap& inputImage,
33  iimg::IBitmap& outputImage,
34  const iimg::CScanlineMask* maskPtr = NULL,
35  iimg::IBitmap::PixelFormat outputPixelFormat = iimg::IBitmap::PF_UNKNOWN,
36  bool fillOutOfMask = true);
37 
42  static bool MakeIntegralImage(iimg::IBitmap& outputImage);
43 
51  static bool CalculateIntegralReference(
52  const iimg::CScanlineMask& mask,
53  iimg::IBitmap& outputImage);
54 
55 protected:
56  // reimplemented (iipr::CImageProcessorCompBase)
57  virtual bool ProcessImage(
58  const iprm::IParamsSet* paramsPtr,
59  const iimg::IBitmap& inputImage,
60  iimg::IBitmap& outputImage) const;
61 };
62 
63 
64 } // namespace iipr
65 
66 
67 #endif // !iipr_CImageIntegralProcessorComp_included
68 
69 
static bool CalculateIntegralReference(const iimg::CScanlineMask &mask, iimg::IBitmap &outputImage)
Calculates integral reference image.
Helper class allowing to find perspective calibration using list of nominal and found positions...
static bool MakeIntegralImage(iimg::IBitmap &outputImage)
Calculates integral image in place.
static bool CalculateIntegralImage(const iimg::IBitmap &inputImage, iimg::IBitmap &outputImage, const iimg::CScanlineMask *maskPtr=NULL, iimg::IBitmap::PixelFormat outputPixelFormat=iimg::IBitmap::PF_UNKNOWN, bool fillOutOfMask=true)
Calculates integral image.
Basic implementation for a simple bitmap processor.
#define NULL
virtual bool ProcessImage(const iprm::IParamsSet *paramsPtr, const iimg::IBitmap &inputImage, iimg::IBitmap &outputImage) const

© 2007-2017 Witold Gantzke and Kirill Lepskiy