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!
SoftwareVision & Sensors

Several Common Image Analysis Software Tools in Machine Vision

There are many different ways that an image can be distorted.

By Daniel Olache
VS0920-FT-Software-p1FT-Image_Analysis.jpg
September 1, 2020

In the world of machine vision, as in any tech field, there is a distinct divide between hardware and software. The hardware includes components of machine imaging systems such as the physical camera, lensing, cable interfaces, the PC or processor, etc. and are defined by rigid specifications (i.e. resolution of a camera, processing power, bandwidth of interface). The software side is more creative and flexible. I remember when I started my first job in this field I couldn’t believe what imaging systems were capable of and even now, some of it still feels like a magic trick. This article will briefly touch on some of the most common software analysis tools that are employed in machine vision and which serve as the foundation for more complex inspections and without which, machine vision would not be capable of everything it does.

 

Image perspective correction

There are many different ways that an image can be distorted. One of the most common is perspective distortion. Cameras often take images at an angle from an object as opposed to looking straight onto it. As is often the case in manufacturing, physical constraints can limit possible camera placement leading to images being taken at an angle. This causes the part of the object closer to the camera to appear larger and can throw off any subsequent inspections such as measuring distances or pattern detections. This is where image correction comes into play. Using software algorithms, the image can be rearranged to look as if the camera were taking images directly above the object and this allows for more accurate inspections for basically all subsequent machine vision tools. Another example of perspective correction is when a camera takes an image of a circular object (the cylindrical side of a soup can, for example). Software is then able to “unwrap” the label and have the image appear as a flat object which allows for further imaging software (such as barcode or letter reading) to be applied.

Here is an example of a camera taking an image at a slight angle from an object due to space constraints. The image on the left is before correction and the image on the right is after correction—now ready for distance measuring and hole quality inspections.

white balancing

White balancing for color cameras

Color is a complicated concept in machine vision. As humans, our eyes and brains are truly amazing at seeing and understanding color intuitively—doing so much automatically that we take it for granted. Unfortunately, cameras and the images that they render have to be taught and corrected through software algorithms. One such correction that must be made to get true colors is called white balancing.

Unlike the human eye, which is fully capable of automatically adjusting an image under different temperatures of light, the camera must be calibrated when under different lights to get a true representation of color. This is done by placing a white or gray surface under the camera “teaching” the camera to correct for any cast that is shed by different color lights. The software then automatically adjusts the image to correct for this cast. For example, LED illumination (which is commonly used in machine vision applications) often casts a bluish hue. In this image, the left side illustrates this blue cast before any white balancing and the right side is after the correction has been made.

 

Sub pixel accuracy

All cameras have a certain number of pixels determined by the size of the sensor that is built into the camera. This is a fixed value and cannot change—higher resolution sensors have more pixels than lower resolution sensors. However, in certain applications and instances, software can determine the edge of a shape or distance of an object within an image even more accurately than the pixels themselves (the camera’s hardware) would seem to allow. This is accomplished through algorithms that take the pixels that the image is seeing and extrapolating a more detailed line through the pixels. For example, in measuring applications, the edge of an object often covers multiple layer of pixels within an image and using algorithms, vision imaging software is able to determine where a most likely real edge is within the image—even if it means that edge is between pixels or inside of pixels. This is where the name sub-pixel accuracy comes from. Below is an image illustrating this concept. In this example, the software determines the most likely actual location of the circle edge despite it lying within the individual pixels picked up by the camera. Algorithms can do a good job of predicting this line. Here is a greatly magnified image to where the pixels are visible and the pink line is a software algorithm detecting the best fit line at the sub pixel level.

Care needs to be taken when using and relying on sub pixel accuracy. There are instances where it would not make sense. For example, take an application where we’re looking for contamination on an object. In this instance, the software would need to pick up at least one pixel of contamination on the image (i.e. a dark or light spot where there shouldn’t be any)—and preferably a multiple pixel group to ensure any noise on the sensor (dead pixels, etc.) doesn’t get counted as contamination. There is no way to accurately determine contamination without explicitly counting the pixels that are dark or light in whole numbers. There is no fractional or sub pixel contamination count and in this instance the accuracy of the application really is limited by the number of pixels within the image (i.e. the resolution of the camera). So, as with all software, it is important to understand the concepts behind the algorithms as they will help determine when they can be used.

pixel analysis

Conclusion

The field of machine vision has been and continues to be incredibly influential in solving some of the most complex applications in the world of automation and beyond. While the hardware certainly is a wonder of its own, it really is the software and the analysis tools behind the scenes that allow these machines to do the wonderful things they are capable of. This article covered some of the most common and basic software algorithms, when to use them, and how they work. These are the building blocks for many of the most advanced and complex machine imaging software tools. This field is fascinating because it is changing daily. New algorithms and tools are continuously being discovered, developed, and improved upon to solve the most challenging problems of our day. V&S

KEYWORDS: color management image analysis machine vision perspective

Share This Story

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

Daniel Olache is the product marketing manager – vision at Baumer Ltd. For more information, call (860) 621-2121, email [email protected] or visit www.baumer.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

  • Vision & Sensors Analysis feature image

    Image Analysis in Machine Vision

    See More
  • Practical Vision Guided Robotics – Programming and Execution

    A deeper look into using machine vision software and tools for applications in vision guided robotics.

    See More
  • VS 0922 Analysis Manufacturing Floor

    Understanding The Value Proposition For Deep Learning in Machine Vision

    See More

Related Products

See More Products
  • Machine Vision and Error Proofing DVD

  • Failure Mode Effects Analysis (FMEA) DVD

See More Products

Related Directories

  • 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