Diffraction Grating - Definition, Formula and Solved Examples - diffraction by grating
MTFimage quality
Mtf cameranikon
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.
The goal of the apochromatic lens is also to reduce the level of chromatic aberration. However, unlike an achromatic lens, we use three different wavelengths: red (620nm), green (530nm) and blue (465nm). The intention is the same: bringing all three wavelengths in focus in the same image plane. As you may suspect, the design tolerances are tighter when we are designing for three wavelengths. A design of an apochromat lens is shown in Figure 1
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.
Mtf cameraexplained
In an achromatic lens design, we optimize such that two wavelengths, usually red (590nm) and blue (495nm), focus on the same image plane. This is done to reduce chromatic aberration. In this article, we’ll talk about a similar design type called an Apochromatic lens design.
An important aspect when designing an apochromatic lens is in the choice of materials. We want materials where the dispersion at each wavelength compensates as light travels through the different materials. So a combination of flint and crown materials is often necessary. In some designs, a refractive index matching liquid can be used between optical elements.
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.
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.
MTFchart
MTF cameratest
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.
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.
With over 15 years of experience and 500+ unique optical systems designed, Optics for Hire specializes in advanced optical engineering. If it uses light, we've worked on it.
Modulation transfer function
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.
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“.
MTFlens
With over 20 years of experience and 800+ unique optical systems designed, Optics for Hire specializes in advanced optical engineering. If it uses light, we've worked on it.
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 lenses, cables, NIC card and industrial computers, we can provide a full vision solution!
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.
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.
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.
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.
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.
MTFOptics
Glass selections during the design phase play an important role in sufficiently reducing both chromatic aberrations and other aberrations on the selected wavelength range. One of the clear benefits of using apochromatic lenses versus achromatic lenses is that we will have a better image quality. This is of particular importance when working with digital image sensors, where individual pixels are sensitive to specific wavelengths (due to a mask over the sensing elements).
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.
Where fx is the focal length of each optical element, f is the overall focal length of the system, Vx is the abbe-number of each element and Px is the partial dispersion. The P and V values can be obtained from a P-V diagram as the one shown in Figure 2.
When designing a three-element apochromatic lens, we want one of the glasses to be off the straight line. For doublet designs, we would like to have two glasses with equal P values, forming a horizontal line. Possible choices of glasses for triplet-apochromatic lenses are: (PK51, KZSF4 and SF15), or (PK51, LAF21, and SF15) .
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.
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.