dmIImageParts Class Reference

Compute image partition and handle operations on it. More...

#include <CCI_ImageParts.h>

Inherits dmINotify.

List of all members.

Public Member Functions

bool BuildPartition (cci_object *params, dm_real distance, dm_uint connectivity, dm_param modes)
 Compute partition of the given input image.
dm_int CompactPartition ()
 Compact the partition.
bool RemoveBorderRgns ()
 Remove region touching the border of the map.
dm_int ResolveOverlappingRgn (cci_object *params)
 Merge regions overlapping the input region mask.
dm_int MergeRegions (dm_int firstlabel, dm_int secondlabel)
 Merge regions.
dm_int GetLabelFromPoint (const dm_point &point)
 Return the label at the given location.
dm_int GetMaxRegion ()
 Return the label of the largest region.
dm_uint GetRegionSize (dm_int label)
 Return the size of the given region.
dm_int GetRegionIndex (dm_int label)
 Return the index of the given region.
bool GetRegionLabels (CONST dmRegion *region, dm_int *&labels, dm_uint &size)
 Return an array of labels of the regions overlapping the input region.
bool GetRegionMask (cci_object *params, dm_int label, dm_uint index)
 Compute the mask of the region corresponding to the given label.
bool MergeLabels (dm_int label, dm_int *labels, dm_uint size)
 Merge regions specified by the array labels.
bool StoreRegion (dm_int label, cci_object *maskbuffer, dm_uint index)
 Store the region specified the label label at buffer index.


Detailed Description

Compute image partition and handle operations on it.

The partition is computed by agregation of pixels. Once computed, the ImageParts object will store a partition table and a image map of the same dimensions as the input image.


Member Function Documentation

bool dmIImageParts::BuildPartition cci_object *  params,
dm_real  distance,
dm_uint  connectivity,
dm_param  modes
[inline]
 

Compute partition of the given input image.

Compute a partition of the image stored in param by agregation of pixels whose value is less or equal than distance. Onc computed, the ImageParts object will store a partition table and a image map of the same dimensions as the input image.

dm_int dmIImageParts::CompactPartition  )  [inline]
 

Compact the partition.

Compact the partition : i.e make the partition table the same as the index table and perform a relabelling of the internal stored map. Return the number of partitions.

bool dmIImageParts::GetRegionMask cci_object *  params,
dm_int  label,
dm_uint  index
[inline]
 

Compute the mask of the region corresponding to the given label.

Parameters:
params dmIParameters object where the mask will be stored
label the label for the region partition.
Note:
if label is set to -1 and the input mask is not empty, then the method will compute the region corresponding to the union of all overlapping regions from the partition.


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