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

Use Optical Filtering to Improve Machine Vision Repeatability

Optical filters have been used to help solve difficult machine vision challenges

By John Lewis, Jason Dougherty
January 6, 2014

Although optical filters are often viewed as an afterthought in machine vision applications, their  ability to optimize lighting and the entire vision system makes them so valuable that they should be considered from the initial planning stages of most applications. The value of optical filters arises from their ability to block all unwanted ambient lighting and pass only the output of light needed for inspection while increasing contrast and resolution. To select the right filter for a specific application, first define the imaging objective such as improving contrast, reducing glare, color sorting, and removing barcode interference. Determine the optimal light emitting diode wavelength by testing white light with various bandwidth bandpass filters. Once the appropriate light wavelength has been chosen, the corresponding bandpass filter can be used to control the variables. This article will provide more information on optical filter advantages and selection and provide real-world examples of how optical filters have been used to help solve difficult machine vision challenges.

Basics of Optical Filters

Optical filters are all about increasing or maintaining consistent image quality, which in turn can improve the accuracy and reduce inspection time of most machine vision applications. Filters improve image quality, by blocking interfering light that surrounds the application and only passing light that adds value to the machine vision application, which often results in higher contrast and resolution. Each color focuses at a different point on the imaging plane of a lens which limits the resolution of the resulting image due to an effect known as chromatic aberration. By using a bandpass filter that allows only one color to reach the lens, you can effectively increase the resolution.

Typical monochromatic LEDs have a total light output that spans 60 to 70 nanometers that generally have a ±10nm tolerance. Some machine vision bandpass filters are available that span 80-90 nm and are designed purposefully broad to accommodate the entire output of the LED (and their typical tolerance shifts). A narrow bandpass filter spans 40-50 nm and an acutely narrow filter spans 20 nm. The acute narrow filter, for example, blocks the maximum amount of ambient light; however, it also reduces the intensity of the wavelength of interest. On the other hand, some bandpass filters pass the entire wavelength of interest. Which filter will work best in a specific application depends largely on the degree to which ambient light is interfering with the inspection operation. A narrow bandpass filter (40-50nm) offers a good compromise for the majority of extreme ambient light applications.

Selecting Optical Filters

A good starting point when choosing a filter is to understand what the imaging objective is or what the imaging problem may be in order to help determine what filter is going to work best for the application. What are you trying to do? What do you need to look at? Does the contrast need to be increased? Do you have a lot of ambient light surrounding the area to be inspected? Are there different colors that you’re trying to separate?

Next, utilize white light with bandpass filters to determine the optimal LED wavelength for your application. Each bandpass filter highlights a different wavelength of light similar to the output of its corresponding LED. Viewing the image that is captured with each filter makes it possible to evaluate how different wavelengths (illumination) will affect image quality.

Filter test kits containing an assortment of bandpass filters are usually the fastest way to find the most suitable wavelength to optimize image quality. They can be used to quickly find the light source and bandpass filter that maximizes contrast and reduces interfering light to control the variability of the application.

Another common question to ask in the beginning phase of the application is whether to use a monochrome or color vision system. The first thought in applications where color is present is to use a color sensor but often a monochrome imaging system and filters can provide a more efficient way of optimizing the system. Consider this example (seen in Figure 5) where the cartridge shown on the lower left image fluoresces blue. Using a color camera to look at the blue print would be inefficient because only 25% of the pixels in a color camera are configured to see blue light. Of the rest, 25% are configured to look at red and 50% to look at green. Half the pixels are set up to detect green light because our eyes are more sensitive to green light. On the other hand, a monochrome filter with a blue bandpass filter utilizes 100% of the pixels in the vision system while the bandpass filter passes about 90% of the blue light. The result is that in this application a monochrome light with a blue bandpass filter is 90% efficient compared to 25% efficiency for a color vision system.

Polarizing filters are very useful in applications where glare is a problem. When light that is polarized in a specific direction hits a diffuse surface most of the light becomes randomly polarized and reflects in random directions. Areas where strong reflections exist, however, maintain much of the incident light angle of polarization. By placing another polarizing filter on the camera lens, rotated 90 degrees relative to the light source angle of polarization, the strong reflections of polarized light are absorbed by the camera lens filter. The diffused light from the non-glare area is transmitted to the camera lens and glare is greatly reduced.

Application Examples

The next application (shown in Figure 7) involves reading the date and lot which consists of yellow text on a white background, resulting in a low contrast image. Keeping in mind that blocking a particular color will darken it while passing a color will highlight it, a blue bandpass filter was used to block the yellow portion of the spectrum, causing the yellow text to appear as black. At the same time, the blue bandpass filter passes the blue portion of the white light, so the white text remains white. The result is that the contrast of the application is dramatically increased, improving the read rate and reducing the inspection time.

The objective of this next application is to separate the red from the blue caps with a monochrome vision system. With no filter there’s very little contrast between the red and blue caps. With a blue bandpass filter, the blue caps are highlighted due to the filter passing that specific wavelength and the red caps are darkened due to the filter blocking that specific wavelength. With a red bandpass filter, on the other hand, the red caps are highlighted and the blue caps are darkened. In this application, either filter improves the contrast between the red and blue caps to the point that they can easily be distinguished with image processing tools.

An optical filter that blocks the visible portion of the spectrum can be used to inspect parts using the infrared (IR) spectrum. Since we can’t see IR with our eyes, it’s difficult to predict the effectiveness of IR inspection in advance.

Neutral Density (ND) filters can help to resolve issues caused by oversaturation of light on the part being inspected. ND filters limit the intensity of light seen by the camera equally across the vision spectrum.

In summary, optical filters are often the simplest, fastest and most cost effective way to improve repeatability and stability in machine vision applications. By controlling the quality and quantity of light reaching the vision system, optical filters can block unwanted ambient lighting, pass only the light used for inspection and increase contrast and resolution. To achieve the highest possible machine vision performance, consider optical filters early in the development of machine vision applications. V&S

John Lewis is market development manager for Cognex Corp. For more information, email [email protected] or visit www.cognex.com

 Jason Dougherty is managing director of Midwest Optical Systems. For more information, email [email protected] or visit www.midopt.com

KEYWORDS: machine vision

Share This Story

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

John Lewis is market development manager of Cognex Corp. (Natick, MA). For more information, call (508) 650-3000 or visit www.cognex.com.

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
  • 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

  • This image displays a Eddyfi Technologies Cypher portable inspection instrument alongside a scanner for non-destructive testing (NDT).
    Sponsored byEddyfi Technologies

    A Safer, Smarter Approach to Weld Inspection: Why Advanced Ultrasonic Testing Is Redefining Industry Standards

Popular Stories

MicroRidge MobileCollect wireless measurement system

Before AI Can Help, the Data Has to Be Ready

a titanium diaphragm speaker driver

The One Thing Elon Gets Right Is Designed to Scare You

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

Supercharging Digital Gauging at Bobcat North America

2026 Quality Professional of the Year!

Events

June 4, 2026

Scaling Manufacturing Quality with Automation for Greater ROI

If you need to do more with the same resources or build a new tech foundation, this session shows where to start and how to create a more efficient, scalable, cost-conscious quality process.

June 9, 2026

Future-Proof your Quality Processes with Advanced 3D Optical CMM Technology

Discover how to effortlessly capture complex data, leverage true multi-sensor automation, and ensure continuous operation without creating inspection delays.

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

  • Machine Vision 101: How to Use Machine Vision to Measure Edge Positions

    See More
  • Using Optics to Optimize Your Machine Vision Application

    See More
  • How to Choose the Right Lighting for Machine Vision Applications

    See More

Related Products

See More Products
  • Machine Vision and Error Proofing DVD

  • Factory Physics for Managers: How Leaders Improve Performance in a Post-Lean Six Sigma World

  • Optimizing Factory Performance: Cost-Effective Ways to Achieve Significant and Sustainable Improvement

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.
  • Phoenix Imaging Machine Vision

    Porosity Inspection of machined metal components using 3D image acquisition. High resolution laser-based scanning optimizes Porosity detection. Phoenix-Middle-Man™ software package provides image storage and database, SQL query and visual display of defects. High-Speed Surface Inspection Systems from Keyence, Omron and Phoenix Imaging for the tough ICE, BEV & Battery projects.
×

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