Public Types | Static Public Member Functions | List of all members
iipr::CBitmapOperations Class Reference

Set of atmomic bitmap manipulations. More...

#include <CBitmapOperations.h>

Public Types

enum  JoinMode { JM_VERTICAL, JM_HORIZONTAL }
 Processing mode for join of more bitmaps. More...
 
enum  CombineMode { CM_AVERAGE, CM_MAX, CM_MIN }
 Processing mode for calculation of more bitmaps into a single one. More...
 
typedef QVector< const
iimg::IBitmap * > 
BitmapList
 Definition of bitmap list. More...
 

Static Public Member Functions

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. More...
 
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. More...
 
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. More...
 
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. More...
 

Detailed Description

Set of atmomic bitmap manipulations.

Definition at line 20 of file CBitmapOperations.h.

Member Typedef Documentation

Definition of bitmap list.

Definition at line 64 of file CBitmapOperations.h.

Member Enumeration Documentation

Processing mode for calculation of more bitmaps into a single one.

Enumerator
CM_AVERAGE 

Average value of all bitmaps will be used in the output.

If this mode is active, an additional list of weights (for each input bitmap) can be set. In this case the averaging is weighted and calculated as outputValue = (input1 * weight1 + input2 * weight 2 + ... ) / Sum (weights)

CM_MAX 

As result value of a bitmap pixel the maximum of all input bitmap values on the given position is taken.

CM_MIN 

As result value of a bitmap pixel the minimum of all input bitmap values on the given position is taken.

Definition at line 42 of file CBitmapOperations.h.

Processing mode for join of more bitmaps.

Enumerator
JM_VERTICAL 

Bitmaps are placed vertically in the output image.

JM_HORIZONTAL 

Bitmaps are placed horizontally in the output image.

Definition at line 26 of file CBitmapOperations.h.

Member Function Documentation

static bool iipr::CBitmapOperations::CaclulateBitmapDifference ( const iimg::IBitmap inputBitmap1,
const iimg::IBitmap inputBitmap2,
iimg::IBitmap outputBitmap,
double  offset = 0,
ilog::IMessageConsumer messageConsumerPtr = NULL 
)
static

Calculate the difference of two bitmaps.

static bool iipr::CBitmapOperations::CombineBitmaps ( const BitmapList bitmapList,
CombineMode  combineMode,
iimg::IBitmap outputBitmap,
imath::CVarVector weghtsPtr = NULL,
istd::ILogger operationLogPtr = NULL 
)
static

Join more bitmaps into a single one by calculation of the pixel values from the input bitmap list.

See Also
CombineMode
static bool iipr::CBitmapOperations::JoinBitmaps ( const BitmapList bitmapList,
JoinMode  joinMode,
iimg::IBitmap outputBitmap,
istd::ILogger operationLogPtr = NULL 
)
static

Join more bitmaps into a single one by placing of the input bitmaps into the output.

See Also
JoinMode
static bool iipr::CBitmapOperations::ReduceBitmapToRegion ( const iimg::IBitmap inputBitmap,
const i2d::IObject2d region,
iimg::IBitmap outputBitmap 
)
static

Crop the bitmap to the bounding box of a given region.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy