Sensor Sense: Grayscale Versus Color Vision Sensors

Aug. 7, 2008
The imager chip in a grayscale vision sensor acts like thousands of electronic light meters that measure light levels at specific points across an area.

The light-sensitive elements, called photosites, create an electrical signal proportional to the amount of light striking that element. All photosites on the imager chip eventually get linked to “picture elements” or “pixels” in a display. Each pixel shows a photosite’s collected light value on an 8-bit grayscale from 0 (darkest) to 255 (brightest). Such an imager is said to detect 256 shades of gray with each image stored as thousands of individual light measurements.

Successful vision applications depend on creating contrast between the feature of interest and the background. Optimal contrast means the edge pixels that make up the feature of interest have different grayscale values from the surrounding background pixels — the greater the difference, the better.

Contrast is commonly created through proper lighting. In a good, high-contrast image, these edge pixels are present at the boundaries between the feature of interest and the background. Thus, if we can identify the edge pixels, we can identify the feature of interest. Vision tools look for these “edges” or locations where drastic changes exist in the grayscale values of neighboring pixels.

Grayscale vision sensors can also usually tell the difference between different colored parts. Each color appears as a slightly different shade of gray in the image. In some cases two colors may appear as the same shade. In such a case, a color filter placed in front of the imager compensates for the similarity by letting only certain wavelengths of light through to the imager. For example, a redbandpass filter paired with a white light helps differentiate between green and red parts. The filter lets only red light pass, so red parts appear bright while green parts appear dark.

However, neither green nor blue parts reflect red light, so both appear dark in the red-filtered image. The detection of three or more colors or identification of a specific color usually demands a color vision sensor. Most color vision sensors are actually grayscale imagers overlaid with a special filter. The filter alternates between red, blue, and green-bandpass areas over each photosite in what is called a Bayer pattern. Thus each photosite responds to only red, green, or blue light. A special color-processing chip uses the imager data to determine the red, green, and blue content of each pixel.

Banner Engineering (bannerengineering.com) supplied information for this column.

 

The imager in a typical grayscale vision sensor has thousands of light-sensitive regions called photosites arranged in a 640 × 480 grid. Each photosite corresponds to a picture element or pixel. Color sensors use the same imager with a special color filter applied that limits the response of each photosite to a specific color of light.

About the Author

Robert Repas

Robert serves as Associate Editor - 6 years of service. B.S. Electrical Engineering, Cleveland State University.

Work experience: 18 years teaching electronics, industrial controls, and instrumentation systems at the Nord Advanced Technologies Center, Lorain County Community College. 5 years designing control systems for industrial and agricultural equipment. Primary editor for electrical and motion control.

Sponsored Recommendations

50 Years Old and Still Plenty of Drive

Dec. 12, 2024
After 50 years of service in a paper plant, an SEW-EURODRIVE K160 gear unit was checked. Some parts needed attention, but the gears remained pristine.

Explore the power of decentralized conveying

Dec. 12, 2024
Discover the flexible, efficient MOVI-C® Modular Automation System by SEW-EURODRIVE—engineered for quick startup and seamless operation in automation.

Goodbye Complexity, Hello MOVI-C

Dec. 12, 2024
MOVI-C® modular automation system – your one-stop-shop for every automation task. Simple, future-proof, with consulting and service worldwide.

Sawmill Automation: Going Where Direct-Stop and Hydraulic Technologies “Cant”

Aug. 29, 2024
Exploring the productivity and efficiency gains of outfitting a sawmill’s resaw line with VFDs, Ethernet and other automated electromechanical systems.

Voice your opinion!

To join the conversation, and become an exclusive member of Machine Design, create an account today!