ColorClassifier

Module used to classify 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 = "ColorClassifier"
      name = "ColorClassifier"
      color = "145 degrees"
      width = "30 degrees"
      saturation_min = "0.05"
      saturation_max = "0.35"
      compensation = "yes"
  />

Parameters

NameDescriptionTypeDefault
classThe class name for the module; must be "ColorClassifier".string
nameThe name of this instance of the module.string
compensationCompensate for the illumination using a gray world assumptionboolno
diagnosticsDraw pixel locations in the diagnostic output COLORSPACE. This is slower but useful during set-up.boolyes
colorThe target hue (in degrees). red=135, green=315; blue = 225float225
widthThe target width (in degrees).float20
saturation_minThe minimum saturation of the target color.float0.05
saturation_maxThe maximum saturation of the target color.float0.50

Module Connections

Inputs

NameDescription
RThe normalized red channel
GThe normalized green channel
IThe intensity channel

Outputs

NameDescription
OUTPUTImage with the detected points.
COLORSPACE_RImage with all pixels plotted in the rg color space. Red channel.
COLORSPACE_GImage with all pixels plotted in the rg color space. Green channel.
COLORSPACE_BImage with all pixels plotted in the rg color space. Blue channel.

Author

Christian Balkenius
christian.balkenius@lucs.lu.se
Lund University Cognitive Science

Files

ColorClassifier.h
ColorClassifier.cc
ColorClassifier.ikc

blog comments powered by Disqus