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

Shape from Shading: A Vital Shape Extraction Technology and its Applications

Vision inspection is not without its challenges.

By Steve Zhu
shape from shading

Original image (top); Image processed with Shape from Shading (bottom)

January 1, 2020

In today’s manufacturing environment, automatic vision inspection has been widely applied in many different industries including semiconductor, electronics, food and beverage, pharmaceutical packaging, automotive, and many others. Within vision inspection, applications can be categorized into measurement, absence/presence, robotic guidance, flaw detection, identification such as 1D/2D, and optical character recognition (OCR) reading. Conventional 2D algorithms are typically good at tackling applications in which certain features are clear and well-defined for the detection to be robust. In other words, the features of interest must be stable and consistently presented in order to be detected and read reliably.

However, like life, vision inspection is not without its challenges. Some surfaces have a natural texture or a highly reflective finish. In other cases, parts are grinded or stamped during the manufacturing process which may result in a curved or textured surface. Some objects include embossed characters or features are impressed or indented, such as stamped and engraved markings—these all make inspection very challenging. Conventional 2D algorithms and preprocessors often fail to find reliable ways to solve these problems. Shape from Shading technology has been proven a more reliable method to tackle such challenging inspections.

The following two application examples will provide some hints on how this technology has enhanced contrast of features of interest, and greatly suppressed background noise to make the following inspection a lot easier to reliably detect defects and read characters.

shape with shading

Shape from Shading Applications

These two examples show how Shape from Shading technology can be used in applications where conventional 2D algorithms and preprocessors would fail. In the first example, a manufacturer is trying to detect cracks or scratches on the surface of ceramic tiles. Due to a complex textured background on the ceramic surface, a common lighting technique and conventional 2D preprocessors and algorithms have a difficult time detecting the abnormalities because these defects are simply not noticeable with standard imaging. With Shape from Shading, dents, cracks, and scratches are easily separated from the background and detected reliably.

In the example on the left, letters and characters are embossed on a business card. As shown on the first image, all characters stamped on the card are pretty much invisible to human eyes. Although low-angle dark field light may help, it is still not robust and stable. By using Shape from Shading with multiple lights from different angles, a better image will be composited with stronger contrast. All characters on the card are easily shown and a standard OCR algorithm can tackle the inspection.

Four images

Four images acquired with different light segments from different directions (user programmable).

What is Shape from Shading Vision Solution?

Shape from Shading is a technique used to separate the shape of an object from its 2D surface texture. Typically, it’s used to highlight 3D surface structure information in one image, known as the shape image, and remove glare from highly reflective parts, known as the texture image. The technique works by using a segmented ring light or independent bar lights and combining multiple images into one. During this process, data are extracted from a series of images to reveal surface features or defects that were previously hidden.

Four images are taken as the light rotates around the part in a counter-clockwise direction, illuminating the part in a different direction for each image capture. By combining the resulting shadow images in a process known as Shape from Shading, the 3D surface structure of a part is revealed. The screen shots at the top of this page show an example of how the images of a bottle cap look as the light moves around the part from different directions, along with the resulting composite image from a Shape from Shading algorithm.

Shape from Shading

Shape from Shading software algorithm computes the composite image with 3D effect to enhance the contrast while suppressing background noise.

Shape Image

Here’s how it works. The algorithm looks for shadows that are created and edges that are highlighted as the light shines from each direction. The shadows and edges from each image are combined into one image that represents the height variation in a part. This is very helpful to detect scratches, dents, missing components, etc.

Texture Image

The algorithm also looks for the area of the images that do not have direct lighting. It then combines all areas of the image that look the same—meaning they do not have glare—into one image with no glare. This is useful for inspections of parts that are highly reflective or inspecting parts through a plastic or clear material covering or wrapper.

Motion Correction

If the part is in motion during the inspection, Shape from Shading uses an embedded motion correction mechanism that accounts for the part being in different positions as each image is captured. This algorithm requires an extra image after the initial four images are taken; this is known as the search image. The search image will determine how the part moved during the image capture sequence with the movement of the found pattern from the first image to the search image, so it can identify and align the correct pixels.

color

Original tile in color

mono

Tile in mono image

Shape from Shading

Image processed by Shape from Shading

Benefits of using Shape from Shading:

This advanced vision solution offers many distinct advantages. By combining multi-directional lighting with advanced software algorithms, it helps eliminate surface background effects, such as noise or color and produces an output image focused on the features with strong contrast to facilitate inspection. It is especially good at inspecting reflective and rough surfaces of many kinds of material such as metal, plastic, rubber and ceramics for imperfections, such as dents, grooves, cracks and scratches, as well as clearly showing hard-to-read characters. V&S

KEYWORDS: inspection machine vision vision systems

Share This Story

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

Steve Zhu is the director of sales for Asia for Teledyne DALSA Inc. For more information, call (514) 333-1301 ext. 4231, email [email protected] or visit www.teledynedalsa.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

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

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

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

  • QM Feb 2024 Podcast Jim Spichiger Quality Show South

    The Quality Show South Preview Podcast: Process Maps—A Vital Tool for Lean

    See More
  • protolabs

    Proto Labs Adds PolyJet Technology to Its 3D Printing Service Offering

    See More
  • Adept Technology Inc. Reports its Fourth Quarter Results

    See More

Related Products

See More Products
  • Optimizing Social Media from a B2B Perspective

  • Lean ITS DVD

  • lean manu.jpg

    Lean Manufacturing and Service Fundamentals, Applications, and Case Studies

See More Products

Events

View AllSubmit An Event
  • April 29, 2026

    Total Quality from Shop Floor to Top Floor: A Practical Look at Integrated CAQ Software Systems

    On Demand Attendees will gain a structured look at how a fully integrated CAQ environment supports consistency, traceability, and continuous improvement across the organization.
View AllSubmit An Event
×

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