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

NameDescriptionTypeDefault
classThe class name for the module; must be "SpatialClustering".string
nameThe name of this instance of the module.string
no_of_clustersThe maximum number of clusters to find in the scene. No of rows in the output matrixint1.0
cluster_radiusThe radius of a cluster (in relation to the width input image).float0.1
min_cluster_areaThe minimium filled region of a cluster (in relation to the area of the input image).float0.2
tracking_distanceThe maximum movement of a cluster between frames in relaion to image width.float0.25

Module Connections

Inputs

NameDescription
INPUTThe input image with white for target elements

Outputs

NameDescription
OUTPUTThe positions of the found objects, (x, y) for each object.
CERTAINTYThe 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