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

Lighting

Lighting Design for Machine Vision, Part 4

This article provides examples of how the mappings in the previous two articles are used to identify good candidate lighting solutions.

By Perry C. West
The image depicts a vintage automotive manufacturing plant, likely a Cadillac assembly line from the 1960s or 1970s.
Image Credit: Perry West
April 13, 2026

This is the fourth article of a five-article series on lighting design for machine vision. The first article in the series introduced the scene analysis form that is an aid to determining what characteristics of a feature and its background have the potential to create contrast. The second article in the series introduced the lighting cube and showed how machine vision light sources mapped onto it. The third article in the series described the mappings of the information from the scene analysis form onto the lighting cube. This article provides examples of how the mappings in the previous two articles are used to identify good candidate lighting solutions.

Using the Mappings

Example 1

Gold star on a blue background
Figure 1 -- Gold Star on Blue Background
Image Source: Perry West  

Let’s take a simple example — a gold star on a blue background shown in Figure 1. The scene analysis form is shown in Figure 2. The differentiating characteristics that can create contrast are circled in green.

Scene analysis form for gold star on blue background
Figure 2 -- Scene Analysis Form for Gold Star on Blue Background
Image Source: Perry West

Setting aside color, which is very significant in creating contrast and is covered in the fifth article in this series, we have two different conditions: flat and specular, and flat and diffuse. Take the mappings of each and compute the absolute difference using a graphics program such as Photoshop, MatLab, or your machine vision software library. The result is shown in Figure 3.

Available lighting areas on the lighting cube
Figure 3 -- Available Lighting Areas
Image Source: Perry West

Absolute difference between two scene mappings on the lighting cube
Figure 4 -- The Absolute Difference Between Two Scene Mappings of the Lighting Cube
Image Source: Perry West

You will notice that the difference mapping has light and dark areas. The lighter areas indicate the lighting that produces higher contrast. Darker areas indicate lighting that produces little or no contrast. While the lower right-hand corner seems to be the best area for good contrast, remember that this corner is invalid — there is no highly diffuse back lighting method. This is indicated by the added hatched area in Figure 4.

The area of best contrast appears to be high-angle dark field illumination, as shown by the green rectangle in Figure 4.

Minimum of combined mappings and the ring light
Figure 5 -- The Minimum of the Combined Mappings and the Ring Light
Image Source: Perry West

Candidate light sources for the gold star example
Figure 6 -- Candidate Light Sources
Image Source: Perry West

From the light source mappings covered in the second article in this series, there are four candidates. (See Figure 5.) The spot light would seem to be the best candidate, but it usually gives non-uniform illumination. The flood light and the bar light also appear useful, but their illumination also tends to be somewhat non-uniform. The ring light provides good uniformity and aligns well with the indicated lighting requirement.

Most people could make the light source determination by a quick examination of the mappings. A more procedural approach takes the minimum of the combined mappings from the scene analysis form and the candidate light source. Figure 6 shows this result. The light area indicates where the candidate light source might work. For this example, it might seem that a bright field ring light would work, but that is only partial lighting and may or may not make the star bright. The dark field portion seems like a much better approach.

Gold star imaged with dark field ring light
Figure 7 -- Result of Imaging with Dark Field Ring Light
Image Source: Perry West

A test image with the selected light source, shown in Figure 7, confirms the lighting gives good contrast. In acquiring the image, high angle dark field was used — that is, the ring light was higher up and just outside of the illumination “W”. The reason for that was a deficiency in the data provided on the scene analysis form. The star is ever so slightly higher than the background. A lower ring light would have produced brightly reflected light from the edges of the star.

Example 2

Bottle cap and flange spacing
Figure 8 -- Bottle Cap and Flange Spacing
Image Source: Perry West

Scene analysis form for bottle cap and flange
Figure 9 -- Scene Analysis Form for Bottle Cap and Flange
Image Source: Perry West

Let’s look at a second example, finding the gap between a bottle flange and the cap as shown in Figure 8. This gap is important to ensure the cap is screwed on all the way and not tilted. The scene analysis form is shown in Figure 9.

Notice an additional column has been added because there are two features to image against the background: the cap and the flange on the bottle. Also, notice that the background is not filled in. This happens when the background is not specified. However, the background cannot be ignored — it is an integral part of the image and a critical element of contrast. Initial ideas for the background could be a fixed color like black or white with front lighting, or a back light.

The cap is curved (convex) and diffuse. The flange is also curved (convex) and, at least in principle, transparent. Both front lighting and back lighting need consideration.

Absolute difference between cap and bottle flange scene mappings for front lighting
Figure 10 -- Absolute Difference Between Two Scene Mappings on the Lighting Cube, Cap on the Left and Bottle Flange on the Right, for Front Lighting
Image Source: Perry West

Figure 10 shows the absolute difference in the mappings of the cap (round diffuse) and the bottle flange (round specular) for front lighting. Unlike the previous example where we wanted contrast between a single feature and its background, in this case, we want the two features, cap and bottle flange, to both contrast against a common background. The dark area in the absolute difference is where the two features can appear similar.

Notice that the absolute difference results in the dark field part of the lighting cube black. This could lead to a misinterpretation, since the dark field portion of both the cap and the bottle flange is curved; their dark field mappings are X’d out. There is no dark field front lighting for a curved surface.

Very diffuse front lighting with a corresponding dark background is one candidate. Since very diffuse front lighting sources, the dome light or the flat dome light, are large and expensive, the search for a lighting solution should continue.

Absolute difference between two scene mappings on the lighting cube for back lighting
Figure 11 -- Absolute Difference Between Two Scene Mappings on the Lighting Cube for Back Lighting
Image Source: Perry West

For back lighting, the absolute difference is shown in Figure 11. Notice the dark field regions for round objects are crosshatched. This indicates that some of the area will be dark and some, typically the edges, will reflect light into the camera.

For bright field back lighting, the opaque cap will be dark, and the transparent bottle will be bright except in the checkered area for directed front lighting where the edges will typically be dark due to refraction and internal reflection. Again, the intention is to have both of the objects, the cap and the bottle flange, be the same against the background. So, we are looking for dark areas in the absolute difference.

Candidate light sources for bottle cap and flange example
Figure 12 -- Candidate Light Sources
Image Source: Perry West

Either dark field back lighting or directed bright field front lighting are possible candidates. Dark field front lighting requires two lights, one on either side of the bottle, along with a dark background. The amplitudes of the reflections from the cap and bottle may differ, causing unnecessary complexity in image processing.

Minimum of combined mappings and mapping for semi-collimated backlight
Figure 13 -- Minimum of Combined Mappings and Mapping for Semi-Collimated Backlight
Image Source: Perry West

Directed bright field back lighting is possible and practical. Examining the candidate light sources shown in Figure 12, semi-collimated or telecentric back lights can make the cap dark and bottle edges dark. A telecentric back light is expensive, large, and must be used with a telecentric lens that is also expensive and large. The lens and light will take up significant space. The semi-collimated light source has a good chance of working. The result shown in Figure 13 illustrates this observation.

Bottle and cap illuminated with semi-collimated back light
Figure 14 -- Bottle and Cap Illuminated with Semi-Collimated Back Light
Image Source: Perry West

The selection of a semi-collimated back light gives excellent results, as shown in Figure 14.

Example 3

Tire tread
Figure 15 -- Tire Tread
Image Source: Perry West

An interesting example is imaging a tire tread, such as that shown in Figure 15. The tread is comprised of lugs, the raised part, and grooves. Both are composed of black rubber that is diffusely reflective.

One important fact brought out in this example is that black does reflect sufficient light for imaging with very limited exceptions. Obviously, if both features, lugs and grooves, are the same material with the same optical properties, one feature must be the background and the other feature the one that must contrast with the background. The choice is not important since the only difference is the height. For simplicity, the lugs will be considered the background. Figure 16 shows the scene analysis form, identifying that height is the only differentiator.

Scene analysis form for tire tread
Figure 16 -- Scene Analysis Form for Tire Tread
Image Source: Perry West

Absolute difference between lugs and grooves on tires
Figure 17 -- Absolute Difference Between Lugs and Grooves on Tires
Image Source: Perry West

Following along with the lighting design procedure, take the absolute difference between the flat diffuse surface for the lugs and the height difference for the grooves. It is apparent from Figure 17 that only very directed dark field illumination can create contrast.

There are four candidate light sources with mappings that suggest they will provide directed dark field illumination. These are shown in Figure 18.

Candidate light sources for tire tread example
Figure 18 -- Candidate Light Sources
Image Source: Perry West

Of the candidates, the spot light would appear to have the best potential for creating contrast. Spot lights, however, are usually avoided unless necessary because of their potential to create non-uniform illumination.

Minimum of tire tread mapping and bar light mapping
Figure 19 -- Minimum of Tire Tread Mapping and Bar Light Mapping
Image Source: Perry West

The flood light is known for producing softer shadows. This application wants high-contrast shadows so the grooves show up dark; so, the flood light is not a good choice. The bar light appears to be a reasonable option.

Bar lights illuminating a tire
Figure 20 -- Bar Lights Illuminating a Tire
Image Source: Perry West

This application was actually deployed for testing in an auto assembly plant, as shown in Figure 20.

Image of tire tread showing high-contrast tread pattern
Figure 21 -- Image of Tire Tread
Image Source: Perry West

The image of a tire tread is shown in Figure 21. Note the high contrast of the tread pattern on the tread portion of the tire. Also, notice that where the tread pattern wraps up toward the sidewall, there is much less contrast. The lighting was not designed for the sidewall.

Conclusion

This article shows how mapping light sources onto the lighting cube, along with mapping the scene characteristics onto the lighting cube, can be used to identify a lighting technique with a high likelihood of creating a high-contrast image.

The final article in this series covers the other dimensions of lighting: color, polarization, and intensity. It also identifies certain conditions for which the techniques described in this article are unlikely to return good results and explains the reason why.

READ MORE

  • Lighting Design for Machine Vision, Part 1 
  • Lighting Design for Machine Vision, Part 2 
  • Trends in Machine Vision: AI is Here to Stay 
KEYWORDS: lighting machine vision manufacturing metrology quality software

Share This Story

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

Perry C. West is president of Automated Vision Systems Inc. (San Jose, CA). For more information, call (408) 267-1746, e-mail [email protected] or visit www.autovis.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
  • 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

iStock-1352825159-jpg.jpg

U.S. Should Substantially Boost Support for Manufacturing USA Program, Issue National Industrial Manufacturing Strategy, Says New Report

Dorsey Calibration Lab photo by Tom LaBarbera Picture this Studios

Ensuring Product Quality in a Competitive Manufacturing Landscape

Visions Sensors Ebook

eBook | How AI-driven Vision Systems Are Transforming Automotive Quality Control

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

  • QM0526-OO-Lighting3PerryWest-Figure-1FT.jpg

    Lighting Design for Machine Vision, Part 3

    See More
  • a chromatic color wheel with marked wavelengths in nanometers (nm)

    Lighting Design for Machine Vision, Part 5

    See More
  • Scene Analysis Form

    Lighting Design for Machine Vision, Part 1

    See More

Related Products

See More Products
  • Design for Manufacture and Assembly (DFMA) DVD

  • 9780367782894.jpg

    Design for Six Sigma: A Practical Approach through Innovation

  • Machine Vision and Error Proofing 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