Sample Color
The Sample Color module provides a way to compare a specific image area with known colors to determine which
color is most representative of the area. The module performs an averaging over the specified image area
and compares this resulting value with color values entered into the Nearest Color list. Successive modules
can then access the results of this module via variables to trigger actions based on the results
of this module.
Interface
Instructions
1. Current Image - Move the red square to the place you want to sample the colors. You can move the entire square
by dragging the smaller red square in the center or by adjusting the individual corner squares.
To fine tune the positioning you can change the coordinates of the overall square using the
textboxes below in the Coordinates area.
2. Add Red/Blue/etc - Add the colors to compare to the sample square by clicking on one of the appropriate
buttons.
3. Add Custom - Add a custom color to the list
4. Add Current - Add the current intensity to the list
5. Add Variable - Add a variable that contains a color to compare to
6. Del/Del All - Delete a or all the selected colors in the list.
Example
| Source |
 |
 |
Variables
COLOR_SAMPLE - holds the current average intensity in hex format
COLOR_SAMPLE_RGB - holds the current average intensity in rgb integer format
COLOR_SAMPLE_NEAREST - holds the nearest color hex value to the sampled area
COLOR_SAMPLE_CONFIDENCE - specifies the confidence amount (0-100%) that
the nearest color is the current color.
See Also
RGB_Filter
|