ICF 3.1.1.10
Technical documentation of ICF Libraries
CBitmapOperations.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_CBitmapOperations_included
7#define iipr_CBitmapOperations_included
8
9
10// ICF includes
11#include <istd/ILogger.h>
14
15
16namespace iipr
17{
18
19
24{
25public:
41
63
67 typedef QVector<const iimg::IBitmap*> BitmapList;
68
72 static bool ReduceBitmapToRegion(const iimg::IBitmap& inputBitmap, const i2d::IObject2d& region, iimg::IBitmap& outputBitmap);
73
78 static bool JoinBitmaps(
79 const BitmapList& bitmapList,
80 JoinMode joinMode,
81 iimg::IBitmap& outputBitmap,
82 istd::ILogger* operationLogPtr = nullptr);
83
88 static bool CombineBitmaps(
89 const BitmapList& bitmapList,
90 CombineMode combineMode,
91 iimg::IBitmap& outputBitmap,
92 imath::CVarVector* weghtsPtr = nullptr,
93 istd::ILogger* operationLogPtr = nullptr);
94
99 const iimg::IBitmap& inputBitmap1,
100 const iimg::IBitmap& inputBitmap2,
101 iimg::IBitmap& outputBitmap,
102 double offset = 0,
103 ilog::IMessageConsumer* messageConsumerPtr = nullptr);
104};
105
106
107} // namespace iipr
108
109
110#endif // !iipr_CBitmapOperations_included
111
112
Common interface for describing the 2D-objects.
Definition IObject2d.h:30
Definition of single plane bitmap.
Definition IBitmap.h:24
Set of atmomic bitmap manipulations.
QVector< const iimg::IBitmap * > BitmapList
Definition of bitmap list.
JoinMode
Processing mode for join of more bitmaps.
@ JM_HORIZONTAL
Bitmaps are placed horizontally in the output image.
@ JM_VERTICAL
Bitmaps are placed vertically in the output image.
static bool ReduceBitmapToRegion(const iimg::IBitmap &inputBitmap, const i2d::IObject2d &region, iimg::IBitmap &outputBitmap)
Crop the bitmap to the bounding box of a given region.
CombineMode
Processing mode for calculation of more bitmaps into a single one.
@ CM_AVERAGE
Average value of all bitmaps will be used in the output.
@ CM_MIN
As result value of a bitmap pixel the minimum of all input bitmap values on the given position is tak...
@ CM_MAX
As result value of a bitmap pixel the maximum of all input bitmap values on the given position is tak...
static bool CombineBitmaps(const BitmapList &bitmapList, CombineMode combineMode, iimg::IBitmap &outputBitmap, imath::CVarVector *weghtsPtr=nullptr, istd::ILogger *operationLogPtr=nullptr)
Join more bitmaps into a single one by calculation of the pixel values from the input bitmap list.
static bool CaclulateBitmapDifference(const iimg::IBitmap &inputBitmap1, const iimg::IBitmap &inputBitmap2, iimg::IBitmap &outputBitmap, double offset=0, ilog::IMessageConsumer *messageConsumerPtr=nullptr)
Calculate the difference of two bitmaps.
static bool JoinBitmaps(const BitmapList &bitmapList, JoinMode joinMode, iimg::IBitmap &outputBitmap, istd::ILogger *operationLogPtr=nullptr)
Join more bitmaps into a single one by placing of the input bitmaps into the output.
Common interface for a message container consuming information objects (messages).
Simple implementation of variable-size vector.
Definition CVarVector.h:36
Common interface for classes sending some log info.
Definition ILogger.h:25
Contains the image processing classes.

© Witold Gantzke and Kirill Lepskiy