dmIImageMath Class Reference

Do arithmetics operation between images. More...

#include <CCI_ImageMath.h>

Inherits dmINotify.

List of all members.

Public Member Functions

bool DoImageMath (cci_object *params, dm_int operation, dm_uint index)
 Perform a arithmetical operation.
bool Accumulate (cci_object *params, dm_bool normalize)
 Accumulate pixels values from imagelist.
bool DoImageListMath (cci_object *params, dm_int operation, cci_object *imagelist)
 Apply arithmetical operation between two imagelists.
bool AddMul (cci_object *params, dm_real addval, dm_real mulval)
 Add/mutliply by constants.
bool Blend (cci_object *params, dm_real percent, dm_uint index)
 Blend images.
bool OffsetImage (cci_object *params, dm_real offset)
 Offset image by a constants.


Detailed Description

Do arithmetics operation between images.


Member Function Documentation

bool dmIImageMath::Accumulate cci_object *  params,
dm_bool  normalize
[inline]
 

Accumulate pixels values from imagelist.

This method will accumulate the pixels of all valid images in the imagelist held by the params object. The result will be stored either in the current image parameter or in the internal buffer if there is no current image available.

bool dmIImageMath::Blend cci_object *  params,
dm_real  percent,
dm_uint  index
[inline]
 

Blend images.

The operation is performed between the lhs image associated to the params object and a rhs image stored in buffer.

Parameters:
params the parameters object handle ( see dmIParameters )
operation the operation to be performed ( see daim_operations for details )
index the index of the buffer
If needed, the rhs image will be converted into the type of the lhs image. The rhs image is left unchanged. If index is set to -1 then the operation is performed between the image associated to the params object as rhs operand and all valid images stored in the imagelist passed in argument. Note that lhs operand always receives the result of the operation.

bool dmIImageMath::DoImageListMath cci_object *  params,
dm_int  operation,
cci_object *  imagelist
[inline]
 

Apply arithmetical operation between two imagelists.

This method will apply the given operation between images at index i for all buffers in the imagelist parameter and the buffer held by the params object. Images in the imagelist passed in argument will be considered as the left hand side of the operation. If there is no valid image in both imagelist for a given index, the first valid image found will be copied into the lhs buffer. If no valid image exists in both buffer then the corresponding buffer will be cleared.

bool dmIImageMath::DoImageMath cci_object *  params,
dm_int  operation,
dm_uint  index
[inline]
 

Perform a arithmetical operation.

The operation is performed between the lhs image associated to the params object and a rhs image stored in buffer.

Parameters:
params the parameters object handle ( see dmIParameters )
operation the operation to be performed ( see daim_operations for details )
index the index of the buffer
If needed, the rhs image will be converted into the type of the lhs image. The rhs image is left unchanged. If index is set to -1 then the operation is performed between the image associated to the params object as rhs operand and all valid images stored in the imagelist passed in argument. Note that lhs operand always receives the result of the operation.


Generated on Tue May 9 12:34:57 2006 for Daim Library Module Set by  doxygen 1.4.6-NO