How to read an MTF lens curve

We recently published a TechBrief “What is MTF?” to our Knowledge Base. It provides an overview of the Modulation Transfer Function, also called the Optical Transfer Function, and why MTF provides an important measure of lens performance. That’s particularly useful when comparing lenses from different manufacturers – or even lenses from different product families by the same manufacturer. With that TechBrief as the appetizer course, let’s dig in a little deeper and look at how to read an MTF lens curve. They can look a little intimidating at first glance, but we’ll walk you through it and take the mystery out of it.

Figure A. Both images created with lenses nominally for similar pixel sizes and resolution – which would you rather have in your application?

Test charts cluster alternating black and white strips, or “line pairs”, from coarse to fine gradations, varying “spatial frequency”, measured in lines / mm, in object space. The lens, besides mapping object space onto the much smaller sensor space, must get the geometry right in terms of correlating each x,y point to the corresponding position on the sensor, to the best of the lens’ resolving capacity. Furthermore, one wants at least two pixels, preferably 3 or more, to span any “contrast edge” of a feature that must be identified.

So one has to know the field of view (FOV), the sensor size, the pixel pitch, the feature characteristics, and the imaging goals, to determine optical requirements. For a comprehensive example please see our article “Imaging Basics: How to Calculate Resolution for Machine Vision“.

Figure B. Top to bottom: Test pattern, lens, image from camera sensor, brightness distribution, MTF curve

Unpacking Modulation Transfer Function, let’s recall that “transfer” is about getting photons presented at the front of the lens, coming from some real world object, through glass lens elements and focused onto a sensor consisting of a pixel array inside a camera. In addition to that nifty optical wizardry, we often ask lens designers and manufacturers to provide lens adjustments for aperture and variable distance focus, and to make the product light weight and affordable while keeping performance high. “Any other wishes?” one can practically hear the lens designer asking sarcastically before embarking on product design.

So as with any complex system, when transferring from one medium to another, there’s going to be some inherent lossiness. The lens designer’s goal, while working within the constraints and goals mentioned above, is to achieve the best possible performance across the range of optical and mechanical parameters the user may ask of the lens in the field.

Consider Figure B1 below, taken from comprehensive Figure B. This shows the image generated from the camera sensor, in effect the optical transfer of the real world scene through the lens and projected onto the pixel array of the sensor. The widely-spaced black stripes – and the equally-spaced white gaps – look really crisp with seeming perfect contrast, as desired.

Figure B1: Image of progressively more line pairs per millimeter (lp/mm)

But for the more narrowly-spaced patterns, light from the white zones bleeds into the black zones and substantially lowers the image contrast. Most real world objects, if imaged in black and white, would have shades of gray. But a test chart, at any point position, is either fully black or fully white. So any pixel value recorded that isn’t full black or full white represents some degradation in contrast introduced by the lens.

The MTF graph is a visual representation of the lens’ ability to maintain contrast across a large collection of sampled line pairs of varying widths.

Let’s look at Figure B2, an example MTF curve:

Figure B2: Example of MTF graph
  • the horizontal axis denotes spatial frequency in line pairs per millimeter; so near the origin on the left, the line pairs are widely spaced, and progressively become more narrowly spaced to the right
  • the vertical axis denotes the modulation transfer function (MTF), with high values correlating to high contrast (full black or full white at any point), and low values representing undesirable gray values that deviate from full black or full white

The graph in Figure B2 only shows lens-center MTF, for basic discussions, and does not show performance on edges, nor take in account f# and distance. MTF, and optics more generally, are among the more challenging aspects of machine vision, and this blog is just a primer on the topic.

Click to contact
Give us some brief idea of your application or your questions –
we will contact you to assist

In very general terms, we’d like a lens’ MTF plot to be fairly close to the Diffraction Limit – the theoretical best-case achievable in terms of the physics of diffraction. But lens design being the multivariate optimization challenge that it is, achieving near perfection in performance may mean lots of glass elements, taking up space, adding weight, cost, and engineering complexity. So a real-world lens is typically a compromise on one or more variables, while still aiming to achieve performance that delivers good results.

Visualizing correlation between MTF plot and resultant image – MORITEX North America

How good is good enough? When comparing two lenses, likely in different price tiers that reflect the engineering and manufacturing complexity in the respective products, should one necessarily choose the higher performing lens? Often, yes, if the application is challenging and one needs the best possible sensor, lighting and lensing to achieve success.

But sometimes good enough is good enough. It depends. For example, do you “just” need to detect the presence of a hole, or do you need to accurately measure the size of the hole? The system requirements for the two options are very different, and may impact choice of sensor, camera, lens, lighting, and software – but almost certainly sensor and lensing. Any lens can find the hole, but a lens capable of high contrast is needed for accurate measurement.

Here’s one general rule of thumb: the smaller the pixel size, the better the optics need to be to obtain equivalent resolution. As sensor technology evolves, manufacturers are able to achieve higher pixel density in the same area. Just a few years ago the leap from a VGA sensor to 1 or 5 MegaPixels (MP) was considered remarkable. Now we have 20 and 50 MP sensors. That provides fantastic options to systems-builders, creating single-camera solutions where multiple cameras might have been needed previously. But it means one can’t be careless with the optical planning – in order to achieve optimal outcomes.

Not all lens manufacturers express their MTF charts identically, and testing methods vary somewhat. Also, note that many provide two or even three lens families for each category of lenses, in order to provide customers with performance and pricing tiers that scale to different solutions requirements. To see an MTF chart for a specific lens, click first on a lens manufacturer pages such as Moritex, then on a lens family page, then on a specific lens. Then find the datasheet link, and scroll within the datasheet PDF to find the MTF curves and other performance details.

Contact us for a quote

Besides the theoretical approach to reading specifications prior to ordering a lens, sometimes it can be arranged to send samples to our lab for us to take sample images for you. Or it may be possible to test-drive a demo lens at your facility under your conditions. In any case, let us help you with your component selection – it’s what we do.

Finally, remember that some universities offer entire degree programs or specializations in optics, and that an advanced treatment of MTF graph interpretation could easily fill a day-long workshop or more – assuming attendees met certain prerequisites. So this short blog doesn’t claim to provide the advanced course. But hopefully it boosts the reader’s confidence to look at MTF plots and usefully interpret lens performance characteristics.

1st Vision’s sales engineers have over 100 years of combined experience to assist in your camera and components selection.  With a large portfolio of lensescablesNIC card and industrial computers, we can provide a full vision solution!

Acknowledgement / Credits: Special thanks to MORITEX North America for permission to include selected graphics in this blog. We’re proud to represent their range of lenses in our product offerings.

45 Megapixel Computar MPT lens series

Computar MPT series 45 MP lenses

The Computar MPT Series is a compact 45MP, 1.4″ C-Mount Lens Series engineered to optimize the capabilities of the latest industrial CMOS sensors. The 1.4″ Ultra-high resolution Machine Vision Lenses are ultra-low distortion in a compact design available in fixed focal lengths: 12mm, 16mm, 25mm, 35mm, and 50mm. C-Mount for large format sensor.

Computar MPT 45MP C-Mount series

Designed for up to 1.4″ sensors with densely-packed pixels, as compact C-Mount lenses one achieves a more compact overall design, and lower optics costs than with a large-format lens, at the same time getting high performance. High-level aberration correction and centering/alignment technology deliver an extraordinary performance from the image center to the corner with tiny pixels.

Since the lenses may also be used with popular 1.2″ sensors, one achieves impressive Modular Transfer Function (MTF) outcomes in such a configuration.

Screenshot from video below highlights MTF performance across working distances

Call us at 978-474-0044 for expert assistance. We can tell you more about these lenses, and help you determine if they are best for your application.

The Computar MPT series lenses deliver superior performance at any working distance, thanks to the floating design. This is ideal for industrial drones, sports analytics, wide-area surveillance, and other vertical markets.

Vision Systems Design awarded the Silver Honoree in their Innovator Awards for the Computar MPT lens series.

1st Vision’s sales engineers have over 100 years of combined experience to assist in your camera and components selection.  With a large portfolio of lensescablesNIC card and industrial computers, we can provide a full vision solution!

USB powers and controls LensConnect lenses

If your application enjoys fixed lighting conditions, objects of uniform height – and always at the same working distance from the lens – lucky you! For other imaging applications – where more variables challenge the optical solution – a different approach is needed.

In particular, IF your application exhibits one or more of:

  • Variable lighting due to time of day, cloud coverage (exterior application); or robot in a warehouse with uneven lighting (interior application)
  • Variable height targets (pick-and-place of heterogeneous items, autonomous vehicle continuously re-calculating speed and direction as it moves through the landscape or airspace)
  • Need to adapt to changing working distances while maintaining sharp focus

THEN you may find that a fixed aperture lens with a narrow focal range would yield sub-optimal outcomes, or that you’d have to software-manage two or more cameras each with a different optical configuration.

Those challenges triggered the emergence of motorized lenses, such that one or more of the aperture (a.k.a. iris), the focus, or even varifocal breadth may be software controlled via electro-mechanical features. Early offerings in motorized lenses often used proprietary interfaces or required separate power vs. control cabling.

Thanks to USB, there are now machine vision lenses engineered by Computar, their LensConnect series, such that applications software can continuously control lens configuration through a single USB connection.

Each lens in the LensConnect series provide motorized zoom and iris controls. Some additionally provide varifocal zoom controls across a wide working distance.

All lenses in the series are:

  • Easy to use
  • Plug-and-play
  • Compatible with Windows and Linux
  • Precise through use of stepping motors
Computar LensConnect USB controlled lenses

Vision Systems Design named Computar a Silver Honoree in their Innovator Awards for this lens series.

1st Vision’s sales engineers have over 100 years of combined experience to assist in your camera and components selection.  With a large portfolio of lensescablesNIC card and industrial computers, we can provide a full vision solution!

Components needed for machine vision and industrial imaging systems

Machine vision and industrial imaging systems are used in various applications ranging from automated quality control inspection, bottle filling, robot pick-and-place applications, autonomous drone or vehicle guidance, patient monitoring, agricultural irrigation controls, medical testing, metrology, and countless more applications.

Imaging systems typically include a least a camera and lens, and often also include one or more of specialized lighting, adapter cards, cables, software, optical filters, power supply, mount, or enclosure.

At 1stVision we’ve created a resource page is intended to make sure that nothing in a planned imaging application has been missed.  There are many aspects on which 1stVision can provide guidance.   The main components to consider are indicated below.

Diverse cameras

Cameras: There are area scan cameras for visible, infrared, and ultraviolet light, used for static or motion situations.  There are line scan cameras, often used for high-speed continuous web inspection.  Thermal imaging detects or measures heat.  SWIR cameras can identify the presence or even the characteristics of liquids.  The “best” camera depends on the part of the spectrum being sensed, together with considerations around motion, lighting, surface characteristics, etc.

An assortment of lens types and manufacturers

Lens: The lens focuses the light onto the sensor, mapping the targeted Field of View (FoV) from the real world onto the array of pixels.  One must consider image format to pair a suitable lens to the camera.  Lenses vary by the quality of their light-passing ability, how close to the target they can be – or how far from it, their weight (if on a robot arm it matters), vibration resistance,  etc.  See our resources on how to choose a machine vision lens.  Speak with us if you’d like assistance, or use the lens selector to browse for yourself.

Lighting: While ambient light is sufficient for some applications, specialized lighting may also be needed, to achieve sufficient contrast.  And it may not just be “white” light – Ultra-Violet (UV) or Infra-Red (IR) light, or other parts of the spectrum, sometimes work best to create contrast for a given application – or even to induce phosphorescence or scatter or some other helpful effect.  Additional lighting components may include strobe controllers or constant current drivers to provide adequate and consistent illumination. See also Lighting Techniques for Machine Vision.

Optical filter: There are many types of filters that can enhance application performance, or that are critical for success.  For example a “pass” filter only lets certain parts of the spectrum through, while a “block” filter excludes certain wavelengths.  Polarizing filters reduce glare.  And there are many more – for a conceptual overview see our blog on how machine filters create or enhance contrast

Don’t forget about interface adapters like frame grabbers and host adapters; cables; power supplies; tripod mounts; software; and enclosures. See the resource page to review all components one might need for an industrial imaging system, to be sure you haven’t forgotten anything.

1st Vision’s sales engineers have over 100 years of combined experience to assist in your camera and components selection.  With a large portfolio of lensescablesNIC card and industrial computers, we can provide a full vision solution!