dmIBinaryMath Class Reference

Apply morphological operation on binary masks. More...

#include <CCI_BinaryMath.h>

Inherits dmINotify.

List of all members.

Public Member Functions

bool ApplyKernel (cci_object *params, CONST char_t *kernel, dm_int action, dm_int iter, dm_int operation, dm_uint conditional)
 Apply a morphogical transformation.
bool DoSeparation (cci_object *params, CONST char_t *kernel, dm_uint seeds)
 Separate objects in a binary mask.
bool DistanceFunc (cci_object *params, CONST char_t *kernel, dm_uint index)
 Compute the distance function for a binary mask.
bool UltimateErosion (cci_object *params, CONST char_t *kernel)
 Compute kernel-based ultimate erosion of binary mask.
bool UltimateDilation (cci_object *params, CONST char_t *kernel, dm_uint conditional)
 Compute kernel-based ultimate dilation.
bool LocalMax (cci_object *params)
 Create a binary mask representing local max of image.
bool Reconstruct (cci_object *params, dm_int connect, dm_uint seeds)
 Create a binary mask by reconstruction.
bool Watershed (cci_object *params, dm_uint seeds)
 Simple watershed implementation.


Detailed Description

Apply morphological operation on binary masks.


Member Function Documentation

bool dmIBinaryMath::ApplyKernel cci_object *  params,
CONST char_t *  kernel,
dm_int  action,
dm_int  iter,
dm_int  operation,
dm_uint  conditional
[inline]
 

Apply a morphogical transformation.

Parameters:
params parameter object ( see dmIParameters )
kernel the kernel family string id.
action Type of operation ( see daim_operations )
iter Number of iteration, 0 is synonmous for idempotence
operation Arithmetic operation to perform
conditional Use a conditional mask, this mask must be located in the buffer 0 of the Mask buffers accessible through the params object
Note that applying a dilation-like operation will require a condtional mask. (otherwise idempotence would not be reached).

If conditional is required and no valid buffer is found then the roi member of the parameter object will be used.

bool dmIBinaryMath::DistanceFunc cci_object *  params,
CONST char_t *  kernel,
dm_uint  index
[inline]
 

Compute the distance function for a binary mask.

Parameters:
params parameter object ( see dmIParameters )
kernel the kernel family string id.
index Index of image buffer where the resulting 16 bit grayscale imageimage will be stored.

bool dmIBinaryMath::DoSeparation cci_object *  params,
CONST char_t *  kernel,
dm_uint  seeds
[inline]
 

Separate objects in a binary mask.

Parameters:
params parameter object ( see dmIParameters )
kernel the kernel family string id.
seeds Use a seeds mask, this mask must be located in the buffer 0 of the Mask buffers accessible through the params object.
If seeds are required and no valid buffer is found then the method will fail.

bool dmIBinaryMath::LocalMax cci_object *  params  )  [inline]
 

Create a binary mask representing local max of image.

Parameters:
params parameter object ( see dmIParameters )

bool dmIBinaryMath::Reconstruct cci_object *  params,
dm_int  connect,
dm_uint  seeds
[inline]
 

Create a binary mask by reconstruction.

Parameters:
params parameter object ( see dmIParameters )
connect connectivity used in the reconstruction algorithm.
The reconstruction algorithm require seeds that must be located in the buffer 0 of the Mask buffers accessible through the params object.

bool dmIBinaryMath::UltimateDilation cci_object *  params,
CONST char_t *  kernel,
dm_uint  conditional
[inline]
 

Compute kernel-based ultimate dilation.

Parameters:
params parameter object ( see dmIParameters )
kernel the kernel family string id.
conditional Use a conditional mask from mask buffer
Note that applying a dilation-like operation will require a condtional mask. (otherwise idempotence would not be reached).

If conditional is required and no valid buffer is found then the roi member of the parameter object will be used. If roi is invalid the the method will fail.

bool dmIBinaryMath::UltimateErosion cci_object *  params,
CONST char_t *  kernel
[inline]
 

Compute kernel-based ultimate erosion of binary mask.

Parameters:
params parameter object ( see dmIParameters )
kernel the kernel family string id.


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