nsIDaimBinaryMath Interface Reference

Apply morphological operation on binary masks. More...

import "nsIDaimBinaryMath.idl";

Inherits nsIDaimNotify.

List of all members.

Public Member Functions

void applyKernel (in nsIDaimParameters params, in ACString kernel, in PRInt32 action, in PRInt32 iter, in PRInt32 operation, in PRUint32 conditional)
void doSeparation (in nsIDaimParameters params, in ACString kernel, in PRUint32 seeds)
void distanceFunc (in nsIDaimParameters params, in ACString kernel, in PRUint32 index)
void ultimateErosion (in nsIDaimParameters params, in ACString kernel)
void ultimateDilation (in nsIDaimParameters params, in ACString kernel, in PRUint32 conditional)
void localMax (in nsIDaimParameters params)
void reconstruct (in nsIDaimParameters params, in PRInt32 connect, in PRUint32 seeds)
void watershed (in nsIDaimParameters params, in PRUint32 seeds)


Detailed Description

Apply morphological operation on binary masks.

nsIDaimBinaryMath

Implemented by:


Member Function Documentation

void nsIDaimBinaryMath::applyKernel in nsIDaimParameters  params,
in ACString  kernel,
in PRInt32  action,
in PRInt32  iter,
in PRInt32  operation,
in PRUint32  conditional
 

applyKernel

Apply a morphogical transformation.

Parameters:
params parameter object
kernel the kernel family string id.
action Type of operation ( see daim_operations )
iter Number of iteration, 0 is synonimous for idempotence
operation Arithmetic operation to perform with the initial mask
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.

void nsIDaimBinaryMath::distanceFunc in nsIDaimParameters  params,
in ACString  kernel,
in PRUint32  index
 

distanceFunc

Compute the distance function for a binary mask.

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

void nsIDaimBinaryMath::doSeparation in nsIDaimParameters  params,
in ACString  kernel,
in PRUint32  seeds
 

doSeparation

Separate objects in a binary mask.

Parameters:
params parameter object
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.

void nsIDaimBinaryMath::localMax in nsIDaimParameters  params  ) 
 

localMax

Create a binary mask representing local max of image.

Parameters:
params parameter object

void nsIDaimBinaryMath::reconstruct in nsIDaimParameters  params,
in PRInt32  connect,
in PRUint32  seeds
 

reconstruct

Create a binary mask by reconstruction.

Parameters:
params parameter object
connect connectivity used in the reconstruction algorithm.
seeds binary mask used as seeds for the reconstruction
The reconstruction algorithm require seeds that must be located in the buffer 0 of the Mask buffers accessible through the params object.

void nsIDaimBinaryMath::ultimateDilation in nsIDaimParameters  params,
in ACString  kernel,
in PRUint32  conditional
 

ultimateDilation

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 then the method will fail.

void nsIDaimBinaryMath::ultimateErosion in nsIDaimParameters  params,
in ACString  kernel
 

ultimateErosion

Compute kernel-based ultimate erosion of binary mask.

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

void nsIDaimBinaryMath::watershed in nsIDaimParameters  params,
in PRUint32  seeds
 

watershed

Simple watershed implementation


Generated on Tue May 23 17:31:48 2006 for Daim Library XPCOM Interfaces by  doxygen 1.4.6-NO