SpatialClustering
Module used to track one or several objects of a particular color in a scene. The input is a color image in rgI format which can be obained from the ColorTransform module. The output is a table of target coordinates.
Example XML definition
A simple example
<module
class = "SpatialClustering"
name = "SpatialClustering"
cluster_radius = "0.1"
no_of_clusres = "6"
/>
Parameters
| Name | Description | Type | Default |
|---|---|---|---|
| class | The class name for the module; must be "SpatialClustering". | string | |
| name | The name of this instance of the module. | string | |
| no_of_clusters | The maximum number of clusters to find in the scene. No of rows in the output matrix | int | 1.0 |
| cluster_radius | The radius of a cluster (in relation to the width input image). | float | 0.1 |
| min_cluster_area | The minimium filled region of a cluster (in relation to the area of the input image). | float | 0.2 |
| tracking_distance | The maximum movement of a cluster between frames in relaion to image width. | float | 0.25 |
Module Connections
Inputs
| Name | Description |
|---|---|
| INPUT | The input image with white for target elements |
Outputs
| Name | Description |
|---|---|
| OUTPUT | The positions of the found objects, (x, y) for each object. |
| CERTAINTY | The fraction of the circle area around teh center of each cluster filled with pixels. |
Author
Christian Balkenius
christian.balkenius@lucs.lu.se
Lund University Cognitive Science
Files
SpatialClustering.h
SpatialClustering.cc
SpatialClustering.ikc