ICF 3.1.1.10
Technical documentation of ICF Libraries
CImageIntegralProcessorComp.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef iipr_CImageIntegralProcessorComp_included
7#define iipr_CImageIntegralProcessorComp_included
8
9
10// ICF includes
11#include <istd/IPolymorphic.h>
12#include <iprm/IParamsSet.h>
13#include <iimg/IBitmap.h>
14#include <iimg/CScanlineMask.h>
16
17
18namespace iipr
19{
20
21
26{
27public:
37 const iimg::IBitmap& inputImage,
38 iimg::IBitmap& outputImage,
39 const iimg::CScanlineMask* maskPtr = nullptr,
41 bool fillOutOfMask = true);
42
47 static bool MakeIntegralImage(iimg::IBitmap& outputImage);
48
57 const iimg::CScanlineMask& mask,
58 iimg::IBitmap& outputImage);
59
60protected:
61 // reimplemented (iipr::CImageProcessorCompBase)
62 virtual bool ProcessImage(
63 const iprm::IParamsSet* paramsPtr,
64 const iimg::IBitmap& inputImage,
65 iimg::IBitmap& outputImage) const;
66};
67
68
69} // namespace iipr
70
71
72#endif // !iipr_CImageIntegralProcessorComp_included
73
74
Representation of a 2D-region as container of bitmap line scans.
Definition of single plane bitmap.
Definition IBitmap.h:24
PixelFormat
Bitmap pixel format description.
Definition IBitmap.h:30
@ PF_UNKNOWN
Unknown image format.
Definition IBitmap.h:34
Helper class allowing to find perspective calibration using list of nominal and found positions.
virtual bool ProcessImage(const iprm::IParamsSet *paramsPtr, const iimg::IBitmap &inputImage, iimg::IBitmap &outputImage) const
static bool CalculateIntegralImage(const iimg::IBitmap &inputImage, iimg::IBitmap &outputImage, const iimg::CScanlineMask *maskPtr=nullptr, iimg::IBitmap::PixelFormat outputPixelFormat=iimg::IBitmap::PF_UNKNOWN, bool fillOutOfMask=true)
Calculates integral image.
static bool CalculateIntegralReference(const iimg::CScanlineMask &mask, iimg::IBitmap &outputImage)
Calculates integral reference image.
static bool MakeIntegralImage(iimg::IBitmap &outputImage)
Calculates integral image in place.
Basic implementation for a simple bitmap processor.
Set of general parameters.
Definition IParamsSet.h:29
Contains the image processing classes.

© Witold Gantzke and Kirill Lepskiy