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
Name | Description | Type | Default |
---|---|---|---|
class | The class name for the module; must be "ColorMatch". | string | |
name | The name of this instance of the module. | string | |
alpha | Learning rate for the color prototype | float | 0.01 |
sigma | Width of prototype | float | 25.0 |
gain | Output gain | float | 1.0 |
threshold | Intensity threshold | float | |
target0 | Initial color target 0 | float | |
target1 | Initial color target 1 | float | |
target2 | Initial color target 2 | float |
Module Connections
Inputs
Name | Description |
---|---|
INPUT0 | The first input channel |
INPUT1 | The second input channel |
INPUT2 | The third input channel |
TARGETINPUT0 | The first target channel |
TARGETINPUT1 | The second target channel |
TARGETINPUT2 | The third target channel |
FOCUS | Pixel with the target color x, y |
REINFORCEMENT | Reinforcement when the correct color is in focus |
Outputs
Name | Description |
---|---|
OUTPUT | The color map output |
Author
Christian Balkenius
christian.balkenius@lucs.lu.se
Lund University Cognitive Science
Files
ColorMatch.h
ColorMatch.cc
ColorMatch.ikc