Quality Magazine logo
search
cart
facebook twitter linkedin youtube
  • Sign In
  • Create Account
  • Sign Out
  • My Account
Quality Magazine logo
  • NEWS
  • PRODUCTS
    • FEATURED PRODUCTS
    • SUBMIT YOUR PRODUCT
  • CHANNELS
    • AUTOMATION
    • MANAGEMENT
    • MEASUREMENT
    • NDT
    • QUALITY 101
    • SOFTWARE
    • TEST & INSPECTION
    • VISION & SENSORS
  • MARKETS
    • AEROSPACE
    • AUTOMOTIVE
    • ENERGY
    • GREEN MANUFACTURING
    • MEDICAL
  • MEDIA
    • A WORD ON QUALITY PUZZLE
    • EBOOK
    • PODCASTS
    • VIDEOS
    • WEBINARS
  • EVENTS
    • EVENT CALENDAR
    • IMTS
  • DIRECTORIES
    • BUYERS GUIDE >
      • Supplier Insights
    • NDT SOURCEBOOK
    • VISION & SENSORS
    • TAKE A TOUR
  • INFOCENTERS
    • Digital Quality Management Systems
    • NEXT GENERATION SPC & QUALITY ANALYTICS
  • AWARDS
    • ROOKIE OF THE YEAR
    • PLANT OF THE YEAR
    • PROFESSIONAL OF THE YEAR
  • MORE
    • Expert Columns
    • NEWSLETTERS
    • QUALITY STORE
    • INDUSTRY LINKS
    • SPONSOR INSIGHTS
  • EMAG
    • eMAGAZINE
    • ARCHIVES
    • CONTACT
    • ADVERTISE
  • SIGN UP!
Vision & Sensors

Machine Vision Color Analysis

AN ENTRY-LEVEL OVERVIEW AND PRACTICAL GUIDE TO THE SUCCESSFUL IMPLEMENTATION OF COLOR ANALYSIS USING MACHINE VISION IN AUTOMATED INSPECTION AND ON-LINE QUALITY CONTROL APPLICATIONS.

By David L. Dechow
July 8, 2015

What is color? There are technical responses to the question as well as more practical answers. Technically, one could define a specific color as a wavelength (or combined wavelengths) of energy in the electromagnetic spectrum generally visible to the human eye. But is that really “color”? In effect, it is not. The term has little meaning technically except in the context of perception. Certainly, reflected or transmitted or absorbed light can be analyzed as to spectral content. Practically though, the color of something is simply what we perceive it to be and the name we attribute to that visual perception.

Identification or Differentiation

From the human perspective, we are terribly inconsistent in reporting color. In fact, color perception has not only physiological but also psychological implications. Consider this: no one can ever know how another person actually experiences, for example, the color “blue.” Compounding this issue are the effects of external influences, in particular the content and intensity of the light illuminating the object and even variation in size and shape of the object. (Ever wonder why the paint looks like a different color on that big wall as opposed to on the small sample card?) Human vision though is pretty efficient at matching or differentiating even very similar colors when observing objects all at once. Therefore, in many cases it is sufficient for the analysis of color in automated inspection and quality control to achieve this human ability to differentiate closely related colors.

TECH TIPS

Applications in color analysis with matching face certain critical implementation challenges.

The consistency of lighting intensity and the color content play important roles.

Just as with our own vision, the perception of a color changes with the amount of light reflected from the object.

Can one discretely measure the exact spectral response of the item for greatest accuracy instead of just differentiating color? There are many devices—spectrophotometers, colorimeters, and other analyzers—capable of accurately reporting the spectral wavelengths absorbed or reflected by an object. Functionally though, these devices usually are designed either for off-line or laboratory use in specific applications, may require precision setup and part presentation, or may be too costly and otherwise impractical for plant-floor use. Furthermore, in many applications for color inspection, the acceptable variation is relatively broad to the extent that precise spectral measurement is not necessary on-line. A realistic approach then is to use machine vision technology, components, and software to achieve reliable and usable color analysis by matching to a known sample. The remainder of this discussion relates to this type of processing, which comprises the majority of on-line color applications. Let’s continue by reviewing how a color image is produced.

Machine vision color imaging

Fortunately, color imaging and analysis using machine vision is widely available with minimal, if any, component cost impact. The most commonly used machine vision cameras that acquire a color image are virtually identical to monochrome cameras with one exception being the addition of a special array of color filters over the sensor pixels called a “Bayer Filter,” designating the arrangement and color of the filters. (There are other filter arrangements but they are rarely used for machine vision cameras).

This type of color camera produces three images in a single acquisition, one each with red, green, and blue content for the respective filtered pixels. Note that each individual pixel does not have full color content. To create a full image, the camera must examine the content of neighboring pixels (per their filtered color content) in a process called “demosaicing” which reconstructs the three sub-sampled images to cover the full resolution of the camera. It’s important to know that this process results in a color image with less real spatial resolution than would be found in a corresponding monochrome image (up to 30%), a fact that may be important in certain applications.

Alphabet soup of color representation

Some technical articles go into great detail about how machine vision might process and analyze a color image. A wide variety of acronyms exist for many different color space representations: CIE (XYZ, LUV, UVW), RGB, YIQ, YPbPr, HSI, CMYK, and several more. There even is some disagreement between experts as to the best representation of color for analysis in a machine vision system.

We won’t join that discussion in this article. In general, expect that the machine vision products offered for color analysis by matching perform well for many typical applications regardless of the choice of color space representation.

Typical application execution

Depending upon the machine vision product, one (or more) of these color representations will be used to tune a target color and/or to configure the degrees to which an observed color will be allowed to deviate from the original color. Two common ways to process a color image are color extraction and color modeling (the names and actual implementations of these types of tools vary by manufacturer). The task of color extraction is to create a grayscale image from a color image where each pixel only contains content with a specific color response.  Color modeling (or matching) is a task that matches colors in an image with a pre-trained color model, within, as before, a specified range of color deviation. In both cases, the allowable color deviation will be configured using parameters related to the color space representation (RGB, HIS, etc.) depending on the product.

The subsequent result processing varies from product to product, but often the result of color processing is a grayscale image that contains only the portion of the captured image that has objects with the correct color. Using that image, further analysis of the feature can be done using standard grayscale tools.

While color matching can be a highly reliable process there are some common contributors to performance inconsistency that should be considered when matching colors.

Implementation Challenges

Applications in color analysis with matching face certain critical implementation challenges. As suggested earlier, the consistency of lighting intensity, and the color content play important roles. Just as with our own vision, the perception of a color changes with the amount of light reflected from the object. If the intensity is consistent, for color matching this may not be an issue. If it is inconsistent, the color differentiation could be highly unreliable, and more so for some color space representations than others. Illumination color content can impact color analysis in the same way if it varies, but in this case the problem is in the real color of the source.

What is the actual color of an illumination source? If it is monochromatic, the color might be well specified. Unfortunately, single color illumination (like red, green, or blue light) has minimal use in the analysis and matching of colors in a production environment. Normally, a white light is required. However, white is not a “color;” it is a combination of many colors: a perfect white light would have all visible color wavelengths combined in equal intensity. Unfortunately, general-purpose machine vision illumination sources are far from perfect white. Fortunately, though, it’s not a problem for most applications in color matching where cameras can be color-balanced for closer to consistent responses. But, the content must remain constant, just like the intensity, for a robust application.

There are several other implementation challenges, but in conclusion let’s discuss perhaps the most challenging: that of part-to-part variation. In an actual production environment there are many applications that adhere to very tight specifications for color content. Take for example, printing processes. Printed labels, containers, and commercial packaging, to name a few, all require very tightly-maintained color content in production. Other applications have similar specifications. In these cases, the target color(s) and the limitations of the acceptable deviation from that target are very well defined. As a result, well-designed color imaging and configuration should be successful in capturing localized features or colors that deviate from the expected target. In other applications, however, objects to be inspected are not so consistent. Applications in fabric, plastics molding, and similar products are known to often have widely varying color content. What is “brown” one week may be a slightly different “brown” the next week. Humans are well equipped to do this kind of comparative inspection, but the configuration of machine vision tools to accommodate these changes can be very challenging. In some cases, one acceptable color can overlap the extents of a similar acceptable color, making discrete differentiation of the two nearly impossible. In such cases, a protocol of re-training target colors or other process mechanisms might be required. 

 In closing, color processing using machine vision can be a valuable, if arguably currently somewhat under-utilized, tool on the plant floor. Ultimately, color analysis tools may evolve to the point that all inspection, guidance, and on-line analysis is done completely in color—like human vision. A lofty but perhaps achievable goal.  

KEYWORDS: color analysis

Share This Story

Looking for a reprint of this article?
From high-res PDFs to custom plaques, order your copy today!

David L. Dechow is an engineer, programmer, and entrepreneur specializing in the integration of machine vision, robotics, and other industrial automation technologies. Over a long career in manufacturing, he has served various companies including Landing AI, Integro Technologies, and Fanuc America. He also was founder, owner, and principal engineer for two successful systems integration firms. Currently Dechow provides technology consulting and integration services through his company Machine Vision Source (MVSource.com) and also works with TECH B2B Marketing helping companies with technology training delivery, services and support.

Dechow is a recipient of the A3 Automated Imaging Achievement Award honoring industry leaders for outstanding career contributions in industrial and/or scientific imaging. He is a member of the Association for Advancing Automation (A3) Imaging Technology Strategy Board, and technical advisory board member with Saccade Vision Ltd.

As a key educator within the machine vision industry, Dechow has participated in the training of hundreds of engineers as an instructor with the A3 Certified Vision Professional program. He also is well known for his frequent informative technical articles, papers, webinars, and conference sessions and classes covering a wide range of technical topics involving machine vision and enabling technologies in industrial automation. For more information, email [email protected].

Recommended Content

JOIN TODAY
to unlock your recommendations.

Already have an account? Sign In

  • 2024 Quality Rookie of the Year Justin Wise 1440x750px banner with "Quality Rookie of the Year" logo inset

    Meet the 2024 Quality Rookie of the Year: Justin Wise

    Justin Wise is an exceptional individual who has been...
    Aerospace
    By: Michelle Bangert
  • Man with umbrella and coat stands outside while it rains at night looking at a building.

    Nondestructive Testing: Is there an ethics problem?

    I was a whistleblower who exposed fraudulent activities...
    NDT
    By: Dale Norwood
  • Unraveling Deflategate: Football stadium with closeup of football on field

    Unraveling the Tom Brady Deflategate

    The Deflategate scandal erupted following the 2014 AFC...
    Measurement
    By: Greg Cenker and Henry Zumbrun
Manage My Account
  • eMagazine Subscriptions
  • Newsletters
  • Online Registration
  • Subscription Customer Service
  • Manage My Preferences

More Videos

Sponsored Content

Sponsored Content is a special paid section where industry companies provide high quality, objective, non-commercial content around topics of interest to the Quality audience. All Sponsored Content is supplied by the advertising company and any opinions expressed in this article are those of the author and not necessarily reflect the views of Quality or its parent company, BNP Media. Interested in participating in our Sponsored Content section? Contact your local rep!

close
  • Key Takeaways for Quality Leaders
    Sponsored byComplianceQuest

    Key Takeaways for Quality Leaders from the 2026 Gartner Magic Quadrant™ for QMS

  • This image shows a person seated next to a Bobcat T66 compact track loader.
    Sponsored byPolyWorks by InnovMetric

    Supercharging Digital Gauging at Bobcat North America

  • Dorsey Calibration Lab photo by Tom LaBarbera Picture this Studios
    Sponsored byDorsey Metrology International

    Ensuring Product Quality in a Competitive Manufacturing Landscape

Popular Stories

This image shows a person seated next to a Bobcat T66 compact track loader.

Supercharging Digital Gauging at Bobcat North America

a professional in the aviation field performing maintenance, repair, and overhaul (MRO) work

Manufacturing Retention: Strategies for Improving Company Culture, Engagement and Skill Development

Dorsey Calibration Lab photo by Tom LaBarbera Picture this Studios

Ensuring Product Quality in a Competitive Manufacturing Landscape

2026 Quality Professional of the Year!

Events

June 22, 2026

Automate 2026

Automate is North America's largest robotics and automation event — and the best place to take your ideas from insight to impact.
 
Our show floor features the world’s leading automation solutions, from AI and robotics to motion control, vision systems, and more. Plus, our educational conference is second to none, led by the brightest minds in automation today.
 
Ready to transform the way you work? Take the next step at Automate.
July 14, 2026

Quality Leaders Forum: Better Communication, Better Quality Data

The Quality Leaders Forum is a quarterly, editor-moderated fireside chat series hosted by Quality Magazine, featuring candid conversations with senior manufacturing and operations executives shaping enterprise-level quality.

View All Submit An Event

Products

Lean Manufacturing and Service Fundamentals, Applications, and Case Studies

Lean Manufacturing and Service Fundamentals, Applications, and Case Studies

See More Products
Quality Podcast Channel Custom Content

Related Articles

  • Image Analysis for Machine Vision

    See More
  • GMM model created to show a simple classification of fruit.

    Traditional Machine Learning for Practical Machine Vision: It’s Been There All Along

    See More
  • Robotic machine visual system

    The Expanding Role for Machine Vision in Smart Factories

    See More

Related Products

See More Products
  • Machine Vision and Error Proofing DVD

  • Failure Mode Effects Analysis (FMEA) DVD

See More Products

Related Directories

  • Machine Vision Store

    Machine Vision Store has a laser-sharp focus on machine vision imaging. We deliver a select group of components - cameras, lenses, lights, industrial vision PC's - from leading manufacturers known for quality. Components we understand, support and stand behind. Components and consulting services that will power your success.
×

Stay in the know with Quality’s comprehensive coverage of
the manufacturing and metrology industries.

Newsletters | Website | eMagazine

JOIN TODAY!
  • RESOURCES
    • Advertise
    • Contact Us
    • Directories
    • Manufacturing Division
    • Store
    • Want More
  • SIGN UP TODAY
    • Create Account
    • eMagazine
    • Newsletters
    • Customer Service
    • Manage Preferences
  • SERVICES
    • Marketing Services
    • Market Research
    • Reprints
    • List Rental
    • Survey/Respondent Access
  • STAY CONNECTED
    • LinkedIn
    • Facebook
    • YouTube
    • X (Twitter)
  • PRIVACY
    • PRIVACY POLICY
    • TERMS & CONDITIONS
    • DO NOT SELL MY PERSONAL INFORMATION
    • PRIVACY REQUEST
    • ACCESSIBILITY

Copyright ©2026. All Rights Reserved BNP Media, Inc. and BNP Media II, LLC.

Design, CMS, Hosting & Web Development :: ePublishing