VP11 1 Color
VP11 1 Color
Session 11
Objectives
• The student will understand the differences between grayscale
representation and color representation
• Understand the basics of color spaces in RGB and HSI
• Use the pertinent vision tools to solve color applications
1
Color Tools
• Color tools use the
additional pixel information
to process and analyze a
color image
• Color tools include:
– FireWire white balance
– Color Match
– Composite Color Match
– Color Segmenter
– Color Extractor
2
Basics of Color
RGB: HSI:
3
Color Match Tool
4
Simple Color Match
• Identifies uniform colors, such as yellow and orange
• Learns the average color in the learn region
• Define colors by point or region
• Runs faster than composite match
10
5
Color Match & Composite Color Match
• Color Match tool provides a matching score
– Analogous to “Color Distance”
• Simple match compares against average RGB value
• Composite match compares against the distributions
11
12
6
Examples for Composite Color Match
• All samples have similar average values, but different distributions and
scores
Original
.930 .370
.886
.152
.111 .102
13
7
What does the Color Extractor tool do?
• Segments the image into two parts – the learned color(s) and
everything else
15
Defining Colors
• Colors can be defined as regions
– Select the region of color that you want to find
– Subtract any additional colors that may get added
16
8
Advantage of the ColorExtractor
• No knowledge of color spaces needed
– Add the color you want
17
Adjusting Colors
• Dilation to 1
– On original color trained (not
on Subtracted colors)
– Incorporates colors on edge
of model
18
9
Summary
• VisionPro color tools handle the additional color information
captured using color cameras
• Color can be equally represented in RGB and HSI color spaces
• Color Match performs a comparison between trained colors
and run time colors
• Color Composite Match is similar to Color Match, but it uses
finer measurements to distinguish between similar areas with
color
• Color Extractor segments images by separating the colors of
interest and everything else
19
10