0% found this document useful (0 votes)
27 views10 pages

VP11 1 Color

The document discusses color tools in Cognex VisionPro. It describes how color can be represented in RGB or HSI color spaces. It explains that the Color Match tool compares trained colors to runtime colors, while Composite Color Match uses finer measurements to distinguish similar colored areas. The Color Extractor segments images by separating colors of interest from other colors.

Uploaded by

inigofet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views10 pages

VP11 1 Color

The document discusses color tools in Cognex VisionPro. It describes how color can be represented in RGB or HSI color spaces. It explains that the Color Match tool compares trained colors to runtime colors, while Composite Color Match uses finer measurements to distinguish similar colored areas. The Color Extractor segments images by separating colors of interest from other colors.

Uploaded by

inigofet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Color Tools

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

Which platforms support color?


• GigE
– Wide selection of color cameras
– May work with existing network hardware
• FireWire
– Widest selection of color cameras
• All are 1CCD color cameras with Bayer filter
– Best value
• 8504
– Supports the Sony 3CCD analog color
• One camera per 8504
• 8600
– Can do either area scan or line scan color
– Usually the most expensive cameras
4

2
Basics of Color

In a Color Camera each color is composed of three separate color components.

These components may be represented as combinations of:


red, green, and blue (RGB);
or hue, saturation, and intensity (HSI).

Each component of a pixel is converted to a value from 0 to 255.


55

Pixels – Comparative RGB / HSI Values

RGB: HSI:

Red 255, 0, 0 Red 0, 255, 85

Green 0, 255, 0 Green 85, 255, 85

Blue 0, 0, 255 Blue 170, 255, 85


66

3
Color Match Tool

What does the Color Match tool do?


• Determines how well a color region matches a learned color
model, scores from 0.0 – 1.0

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

Using Simple Match to Select Colors


• Correctly identify all the flavors
– Although Grape and Black Cherry are similar

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

Composite Color Match


• Used for subtle variations, such as speckles, patterns
• Learns the color distribution in the learn region
• Colors defined by regions

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

Color Extractor Tool

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

- Subtract colors not desired

17

Adjusting Colors

• Minimum Pixel Count to 1


– Amount of pixels of a given
color value

• 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

You might also like