#include <CCI_ImageMap.h>
Inherits dmINotify.
Public Member Functions | |
bool | Build (cci_object *params, dm_uint connect, dm_uint flags) |
build a region partition map | |
bool | CreateRegion (cci_object *params, dm_int label, dm_bool include_holes) |
Create the mask corresponding to the object designated by label. | |
bool | Clear (dm_int label) |
Remove object corresponding to label. | |
dm_uint | GetLabels (CONST dmRegion *rgn, dm_int *&labels) |
Return a list of labels of objects that intersects the region rgn. | |
dm_int | GetLabelFromPoint (dm_int x, dm_int y) |
Return the label of the object located at (x,y). | |
bool | RemoveLabels (dm_int *labels _in dm_uint count) |
Clear all labels in labels. | |
bool | SelectLabels (cci_object *params, dm_int *labels _in dm_uint count) |
Create the mask corresponding to all the objects in labels. | |
bool | SetCalibration (dm_real uppx, dm_real ar) |
Set the spatial calibration. | |
dm_uint | GetChildRegions (dm_int label, dm_int *&labels) |
Return a list of labels correponding to connnexe objects included in the object designated by label. | |
dm_uint | GetIndexTable (dm_int *&table) |
Return a inversed index tables for all objects labels. | |
bool | FillHoles () |
Fill holes in objects. | |
bool | CleanBorders () |
Remove objects adjacent to borders. | |
bool | GetProperties (dm_int label, dm_uint flags, Properties &props) |
Return properties for the object designated by label. | |
bool | Reconstruct (cci_object *params) |
Perform a reconstruction using the mask given in params. | |
bool | RegionProps (cci_object *store, tg_TagItem *params) |
Compute object properties. | |
bool | CleanRegionBorders (cci_object *params) |
Remove all objects outside or adjacent to the border of the given roi. | |
Classes | |
struct | Properties |
Structure holding properties values. More... |
The ImageMap interface will compute topological attributs from a partition in connexe components of a given region. The partition is organized so has to take advantage of the hierarchical structure of objects and holes in the computation of the objects properties. Each connexe components is designated by a label used as an object réference in ImageMap methods.
Note that the label 0 always correspond to background.
|
build a region partition map Build a partition from the mask obtained from the params object
|
|
Remove object corresponding to label. Warning that label is likely to be affected to the parent object |
|
Create the mask corresponding to the object designated by label. The mask will be stored in the params object (using dmIparameteres::SetMask).
|
|
Return a list of labels correponding to connnexe objects included in the object designated by label. Warning that labels is a temporary object and should not be stored for later use. |
|
Return a inversed index tables for all objects labels. This table will enable to fetch values from labels in arrays returned by the Compute() method. Given a label value, the array return the index for the value of a given property.
|
|
Return a list of labels of objects that intersects the region rgn. Warning that labels is a temporary object and should not be stored for later use. |
|
Return properties for the object designated by label.
|
|
Perform a reconstruction using the mask given in params. The Reconstruction is done by constructing a new mask from objects that intersect the mask given in params. This method is an equivalent of calling GetLabels() followed by the SelectLabels() method. |
|
Compute object properties.
'name ?arg1=value1&arg2=value2...'The following example will ask to compute the 2 order moment in x and y : tg_TagItem _params = {
CCIA_RgnDesc_Moment,dm_ptr_to_long("m22?xn=2&yn=2"),
TGZ_DONE
};
|