CBitmapOperations.h
Go to the documentation of this file.
1 #ifndef iipr_CBitmapOperations_included
2 #define iipr_CBitmapOperations_included
3 
4 
5 // ACF includes
6 #include "istd/ILogger.h"
7 
8 // ACF-Solutions includes
9 #include "iimg/IBitmapProvider.h"
10 
11 
12 namespace iipr
13 {
14 
15 
20 {
21 public:
25  enum JoinMode
26  {
31 
36  };
37 
42  {
49 
58  };
59 
63  typedef QVector<const iimg::IBitmap*> BitmapList;
64 
68  static bool ReduceBitmapToRegion(const iimg::IBitmap& inputBitmap, const i2d::IObject2d& region, iimg::IBitmap& outputBitmap);
69 
74  static bool JoinBitmaps(
75  const BitmapList& bitmapList,
76  JoinMode joinMode,
77  iimg::IBitmap& outputBitmap,
78  istd::ILogger* operationLogPtr = NULL);
79 
84  static bool CombineBitmaps(
85  const BitmapList& bitmapList,
86  CombineMode combineMode,
87  iimg::IBitmap& outputBitmap,
88  imath::CVarVector* weghtsPtr = NULL,
89  istd::ILogger* operationLogPtr = NULL);
90 };
91 
92 
93 } // namespace iipr
94 
95 
96 #endif // !iipr_CBitmapOperations_included
97 
98 
QVector< const iimg::IBitmap * > BitmapList
Definition of bitmap list.
CombineMode
Processing mode for calculation of more bitmaps into a single one.
Bitmaps are placed horizontally in the output image.
As result value of a bitmap pixel the maximum of all input bitmap values on the given position is tak...
Average value of all bitmaps will be used in the output.
Bitmaps are placed vertically in the output image.
As result value of a bitmap pixel the minimum of all input bitmap values on the given position is tak...
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.
static bool JoinBitmaps(const BitmapList &bitmapList, JoinMode joinMode, iimg::IBitmap &outputBitmap, istd::ILogger *operationLogPtr=NULL)
Join more bitmaps into a single one by placing of the input bitmaps into the output.
JoinMode
Processing mode for join of more bitmaps.
static bool CombineBitmaps(const BitmapList &bitmapList, CombineMode combineMode, iimg::IBitmap &outputBitmap, imath::CVarVector *weghtsPtr=NULL, istd::ILogger *operationLogPtr=NULL)
Join more bitmaps into a single one by calculation of the pixel values from the input bitmap list...
Set of atmomic bitmap manipulations.

© 2007-2011 Witold Gantzke and Kirill Lepskiy