ICF 3.1.1.10
Technical documentation of ICF Libraries
TSnapBitmapSupplierComp.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
11
12
13namespace icam
14{
15
16
21template<typename Bitmap>
23{
24public:
25 typedef Bitmap BitmapType;
27
28 I_BEGIN_COMPONENT(TSnapBitmapSupplierComp);
29 I_END_COMPONENT;
30
31protected:
32 // reimplemented (CSnapBitmapSupplierCompBase)
33 std::unique_ptr<iimg::IBitmap> CreateBitmap() const override;
34};
35
36
37// reimplemented (CSnapBitmapSupplierCompBase)
38
39template<typename Bitmap>
40std::unique_ptr<iimg::IBitmap> TSnapBitmapSupplierComp<Bitmap>::CreateBitmap() const
41{
42 return std::unique_ptr<iimg::IBitmap>{new BitmapType};
43}
44
45
46} // namespace icam
47
48
Basic implementation of bitmap supplier based on the camera snap.
Generic implementation of the snap bitmap supplier.
CCameraSnapSupplierCompBase BaseClass
std::unique_ptr< iimg::IBitmap > CreateBitmap() const override
Contains interfaces, implementations and components of image acquisition and processing.

© Witold Gantzke and Kirill Lepskiy