ColorMatch

Module used match colors in an image to a prototype color. The module can also learn the color based on its reinforcement input and a target input image.

Example XML definition

A simple example

  <module
      class = "ColorMatch"
      name = "ColorMatch"
  />

Parameters

NameDescriptionTypeDefault
classThe class name for the module; must be "ColorMatch".string
nameThe name of this instance of the module.string
alphaLearning rate for the color prototypefloat0.01
sigmaWidth of prototypefloat25.0
gainOutput gainfloat1.0
thresholdIntensity thresholdfloat
target0Initial color target 0float
target1Initial color target 1float
target2Initial color target 2float

Module Connections

Inputs

NameDescription
INPUT0The first input channel
INPUT1The second input channel
INPUT2The third input channel
TARGETINPUT0The first target channel
TARGETINPUT1The second target channel
TARGETINPUT2The third target channel
FOCUSPixel with the target color x, y
REINFORCEMENTReinforcement when the correct color is in focus

Outputs

NameDescription
OUTPUTThe color map output

Author

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

Files

ColorMatch.h
ColorMatch.cc
ColorMatch.ikc

blog comments powered by Disqus