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>
8 
9 // ACF-Solutions includes
10 #include <iimg/IBitmapProvider.h>
11 
12 
13 namespace iipr
14 {
15 
16 
21 {
22 public:
26  enum JoinMode
27  {
32 
37  };
38 
43  {
50 
59  };
60 
64  typedef QVector<const iimg::IBitmap*> BitmapList;
65 
69  static bool ReduceBitmapToRegion(const iimg::IBitmap& inputBitmap, const i2d::IObject2d& region, iimg::IBitmap& outputBitmap);
70 
75  static bool JoinBitmaps(
76  const BitmapList& bitmapList,
77  JoinMode joinMode,
78  iimg::IBitmap& outputBitmap,
79  istd::ILogger* operationLogPtr = NULL);
80 
85  static bool CombineBitmaps(
86  const BitmapList& bitmapList,
87  CombineMode combineMode,
88  iimg::IBitmap& outputBitmap,
89  imath::CVarVector* weghtsPtr = NULL,
90  istd::ILogger* operationLogPtr = NULL);
91 
95  static bool CaclulateBitmapDifference(
96  const iimg::IBitmap& inputBitmap1,
97  const iimg::IBitmap& inputBitmap2,
98  iimg::IBitmap& outputBitmap,
99  double offset = 0,
100  ilog::IMessageConsumer* messageConsumerPtr = NULL);
101 };
102 
103 
104 } // namespace iipr
105 
106 
107 #endif // !iipr_CBitmapOperations_included
108 
109 
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...
static bool CaclulateBitmapDifference(const iimg::IBitmap &inputBitmap1, const iimg::IBitmap &inputBitmap2, iimg::IBitmap &outputBitmap, double offset=0, ilog::IMessageConsumer *messageConsumerPtr=NULL)
Calculate the difference of two bitmaps.
Set of atmomic bitmap manipulations.

© 2007-2017 Witold Gantzke and Kirill Lepskiy