ICF 3.1.1.10
Technical documentation of ICF Libraries
CProcessedCameraComp.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#pragma once
7
8
9// ICF includes
10#include <iimg/IBitmap.h>
12
13
14namespace icam
15{
16
17
22{
23public:
25
26 I_BEGIN_COMPONENT(CProcessedCameraComp);
27 I_ASSIGN(m_preProcessorCompPtr, "PreProcessor", "Processor called before snap with camera parameters", false, "PreProcessor");
28 I_ASSIGN(m_postProcessorCompPtr, "PostProcessor", "Processor called after snap with camera parameters", false, "PostProcessor");
29 I_ASSIGN(m_tempBitmapFactCompPtr, "TempBitmapFactory", "Factory used for creation of the temporary image", false, "BitmapFactory");
30 I_END_COMPONENT;
31
32 // reimplemented (iproc::IProcessor)
33 void InitProcessor(const iprm::IParamsSet* paramsPtr, bool doReset) override;
35 const iprm::IParamsSet* paramsPtr,
36 const istd::IPolymorphic* inputPtr,
37 istd::IChangeable* outputPtr,
38 bool allowAsync = false,
39 iproc::IProgressManager* progressManagerPtr = nullptr) override;
40
41private:
42 I_REF(iproc::IProcessor, m_preProcessorCompPtr);
43 I_REF(iproc::IProcessor, m_postProcessorCompPtr);
44 I_FACT(iimg::IBitmap, m_tempBitmapFactCompPtr);
45};
46
47
48} // namespace icam
49
50
Implementation of bitmap acquisition delegating all calls to some slave object.
Camera delegator with integrated pre- and post-processing.
icam::CCameraDelegatorComp BaseClass
void InitProcessor(const iprm::IParamsSet *paramsPtr, bool doReset) override
Init processor and give him all or part of parameters.
virtual iproc::CTaskState DoProcessing(const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, bool allowAsync=false, iproc::IProgressManager *progressManagerPtr=nullptr) override
Do synchronized processing.
Definition of single plane bitmap.
Definition IBitmap.h:24
Set of general parameters.
Definition IParamsSet.h:29
Represent state of asynchronous operation.
Definition CTaskState.h:28
Interface for all synchrone and asynchrone processors with "push data" model.
Definition IProcessor.h:26
Consume information about progress of some process.
Common interface for data model objects, which can be changed.
Definition IChangeable.h:32
Contains interfaces, implementations and components of image acquisition and processing.

© Witold Gantzke and Kirill Lepskiy