top of page

Line Pair Per Mm Explained: Lenses, Sensors and Cameras

8 hours ago
14 min read

If a camera module is advertised as 20 megapixels and the lens next to it is rated at 100 lp/mm, which number tells you whether you can read a 2 mm code from a metre away?


Neither, on its own. The megapixel count says how many samples the sensor takes. The lp/mm figure says how much contrast survives at a given spatial frequency, under conditions the datasheet usually doesn't print. The number that decides your application is the one you calculate for the smallest feature you need to see, at the distance you mount the camera, checked against the ceiling your sensor imposes.


Most integration problems start when those three numbers are never brought into the same sentence. A drone payload, a bedside monitor and a parking gate all get sold the same headline figure, and all three need a different one.


Table of Contents



What Line Pairs per Millimeter Measures


A line pair is one dark line and one adjacent light line of equal width. Line pairs per millimeter counts how many of those pairs fit into one millimetre of the image. That's the whole definition, and it's worth holding onto because everything else in this article is a consequence of it.


The arithmetic follows directly. A 10 lp/mm target fits ten pairs into a millimetre, so each black bar is 0.05 mm and each white bar is 0.05 mm. A 100 lp/mm target fits a hundred pairs into the same millimetre, so the bars are 0.005 mm each. Higher numbers mean finer detail, and the target that produces them has to be manufactured and photographed more carefully.


A diagram explaining the measurement of line pairs per millimeter, showing black and white line width ratios.


Note what lp/mm is not. It isn't a pixel count, and it can't be derived from one. It's a spatial frequency, measured either with a bar target (the USAF bar chart is the classic) or with a slanted-edge test that computes contrast across a range of frequencies from a single angled edge.


Why the number always needs a contrast threshold


Contrast falls as frequency rises. Two lines don't switch from perfectly separated to merged; they fade into grey gradually. So the resolution limit is the highest frequency at which the two lines remain distinguishable, and "distinguishable" needs a threshold attached before the figure means anything.


Image plane and object plane are different measurements


An lp/mm figure can describe the sensor surface (image plane) or the scene at a working distance (object plane). A lens may deliver 120 lp/mm at the sensor while the scene resolves 15 lp/mm at two metres. Quoting one as if it were the other is the most common misreading on a specification sheet.


The practical consequence: a 20 MP sensor behind a weak lens still delivers only a few usable lp/mm. Pixel count tells you the sampling ceiling, never the delivered sharpness.

Pixel Pitch to Line Pairs per Millimeter Quick Reference


The conversion between pixel pitch and resolution ceiling is one line of arithmetic. Nyquist limit in lp/mm = 1000 / (2 × pixel pitch in micrometres). The factor of two exists because one line pair needs one pixel for the dark bar and one for the light bar, so the finest pattern a sensor can represent is two pixels wide.


That formula gives you the theoretical maximum. Here it is applied across the pitches you'll meet in embedded modules.


Pixel pitch (µm)

Nyquist limit (lp/mm)

Typical sensor class

1.4

357

small-pixel mobile and 20 MP modules

1.5

333

compact multi-megapixel modules

2.4

208

mid-range 5 MP class

3.45

145

4000-pixel-wide arrays near 13.8 mm across

4.0

125

1080p large-pixel sensors

5.0

100

low-light and NIR-leaning sensors


A worked example you can repeat


Take a sensor with 3.45 µm pixels. The Nyquist limit is 1000 / (2 × 3.45), which is about 145 lp/mm. A 4000-pixel-wide array at that pitch measures 13.8 mm across, so the sensor could record 145 line pairs in every millimetre of a 13.8 mm field.


Whether it does is a separate question. The ceiling is reached only if the lens delivers usable contrast at 145 lp/mm across that field, which most M12 lenses don't at the corners.


What the table does not promise


Nyquist is a sampling limit, not a delivered result. Colour sensors with a Bayer filter resolve less than the ceiling, and the optical low-pass filter fitted to many of them deliberately removes detail near it. Lens losses pull the figure lower again. Read the table as an upper bound, and check the explanation of how pixel size and sensor architecture interact before treating a pitch as a performance figure.


Run the table backwards too. If your target is 60 lp/mm, any pitch at or below about 8 µm clears it on sampling alone, so the sensor is no longer your constraint and the lens becomes the deciding component.


How Lens and Sensor Limit Measured Resolution


Detail travels through four stages, and the weakest one sets the result. Light leaves the scene, passes the lens, lands on the sensor, and is then processed by the image signal processor. Improving any link above the weakest one changes nothing measurable.


A diagram illustrating how camera lenses and sensors limit the measured resolution of an image processing pipeline.


Lens contrast and sensor contrast multiply at each frequency. A lens that has already given up much of its contrast at 120 lp/mm, placed in front of a sensor with its own losses, leaves the system with a fraction of what either component manages alone. That's why a sensor with a 357 lp/mm sampling ceiling can end up in a product that resolves less than a third of it.


Where the lens gives up


Three lens-side losses dominate. Resolution falls toward the image edges and corners on most fixed-focus designs, particularly wide-angle M12 types. Falloff appears when the image circle is too small for the sensor format, so the corners receive less light and less contrast. Diffraction spreads each point of light into a small disc that grows as the aperture closes, so stopping down past the lens's sweet spot reduces contrast at high frequencies rather than improving it.


Chromatic aberration belongs in the same list. Colour fringing at edges is a contrast loss at exactly the frequencies you're trying to measure, and it's worth understanding what causes chromatic aberration before blaming the sensor for soft corners.


Where the sensor gives up


Pixel aperture integrates light over the pixel's finite width, which removes detail finer than the pixel before sampling even begins. The optical low-pass filter on many colour sensors then removes more, on purpose, to suppress colour artefacts. Demosaicing of Bayer output reconstructs colour from a sparse grid and softens fine luminance detail in the process.


Aliasing is not extra resolution


Detail above the Nyquist limit does not disappear. It folds back into the image as false stripes, moiré or colour shimmer. That's an artefact, and a higher megapixel count makes it more visible rather than less, because finer pixels push the fold-back point higher into the scene's detail.


Match the lens to the sensor so neither sits far above the other. A 1.4 µm sensor with a 357 lp/mm ceiling behind a lens that holds useful contrast to about 120 lp/mm caps the whole system near 120 lp/mm.

Fixed-focus and M12 autofocus options differ in how well they hold that match across a working range. Fixed focus locks one distance and one field position; a voice-coil autofocus assembly can hold focus across distances but adds a moving element that drifts with temperature and shock. The guide to matching a lens to an embedded camera covers the mount and format checks that come before either choice.


One concrete starting point for a high-resolution build is the AR2020 Color 20MP MIPI CSI-2 Camera, a 20 MP MIPI module with HDR support. Its value here is that a 20 MP array sets a high sampling ceiling, which shifts the decision onto the lens rather than the sensor.


Reading Lp/mm Ratings on Datasheets


A single lp/mm figure on a datasheet is incomplete in a specific way: it doesn't say where contrast fell to that value. Published ratings use three thresholds, and the same lens produces three different numbers.


MTF50 is the frequency where the image keeps half its original contrast. Edges look clearly sharp, and this is the figure to use for measurement, inspection and code reading. MTF20 is where fine detail remains visible but weak, useful for detection tasks where you only need to know something is there. MTF10 is the faintest level, and it's the one most often quoted as "maximum resolution" in marketing material.


The same lens can post a large figure at MTF10 and a much smaller one at MTF50. If your application needs to resolve a feature reliably, the second number is the one that describes your image.


Conditions a figure cannot be separated from


Any lp/mm number is only comparable when it arrives with five conditions attached:


  • Aperture or f-number, because diffraction and aberrations trade off across the range

  • Working distance or magnification, which sets whether the figure is object-plane or image-plane

  • Wavelength band, visible or near-infrared, since lens coatings and sensor response differ

  • Field position, centre, mid-field or corner, where edge performance can be half the centre figure

  • Measurement standard, ideally a slanted-edge test under ISO 12233 rather than an eyeballed bar target


Strip those away and two numbers cannot be compared, even from the same vendor.


What to ask a vendor for


Ask for the MTF curve across the field rather than one figure, and ask which threshold each point represents. Ask for slanted-edge results under a stated standard, at your aperture and working distance if the vendor can supply them.


Reading order for a datasheet line: threshold first, then aperture, then field position, then whether the number is image-plane or object-plane. A figure that survives all four checks is worth testing on your own bench.

Target Line Pairs per Millimeter for Embedded Camera Markets


Begin with the smallest feature and its working distance. A feature w millimetres wide corresponds to roughly 1/(2w) lp/mm at the object when that width represents one light or dark bar. A 2 mm bar therefore corresponds to about a quarter of a line pair per millimetre. For a code, use the smallest bar or module, not the width of the complete symbol.


Convert the object-plane requirement to the image plane by dividing by magnification. Then use the sensor's Nyquist relationship to find the corresponding pixel-pitch ceiling. This is a sampling limit, not a promise of usable detail: the lens must still deliver enough contrast at that spatial frequency under the intended test conditions.


The table gives qualitative starting points. Each market contains tasks with different feature sizes, so a market label alone cannot establish an lp/mm target.


Application

Detail that must resolve

Resolution need

Interface to consider

Drones and UAVs

Edges, markings and landing targets at altitude

High image-plane demand as targets appear smaller

MIPI CSI-2 for compact payloads; USB or GigE for ground links and tethers

AMRs and AGVs

Floor markers, fiducials and obstacle edges

Medium to high, depending on marker size and distance

MIPI CSI-2 inside the chassis; GigE for multi-camera rigs

Kiosks

Printed codes and on-screen text at arm's length

Medium, set by the smallest code element or text stroke

USB or MIPI on short runs

Digital signage

Viewer presence and coarse features at close range

Low to medium

USB or MIPI on short runs

Medical and point-of-care

Fine tissue, text and instrument detail

High, checked against the required clinical detail

MIPI CSI-2 in compact devices; USB at lab workstations

Patient monitoring

Presence and gesture at the bedside, often in low light

Low to medium

Wireless links or compact MIPI connections within the device

Smart parking

Plate and space-occupancy detail at gate and bay distances

Medium, set by feature size and magnification

GigE over long cable runs

Smart farming

Crop-row, leaf and pest detail outdoors

Medium to high for pest detail

GigE for longer runs; USB or MIPI within equipment


Match the interface to cable length and timing


The technical comparison of MIPI CSI-2, USB/GigE and PCIe from Ximea lists MIPI CSI-2 connection distances of millimetres to metres, aggregated bandwidth of 2.5 to 10 Gb/s and low latency, while its grouped USB/GigE category spans centimetres to 100 metres, 0.5 to 10 Gb/s and high latency. Those grouped ranges describe interface options, not guaranteed performance for every implementation.


Cable length and timing narrow the choice.


For a drone, the short connection inside a weight-limited payload makes MIPI worth considering. A ground station or tethered deployment may favour USB or GigE, depending on cable length and acceptable delay. The interface carries the image; it does not establish the lens's resolving power.


AMRs and AGVs similarly need guidance timing considered alongside multi-camera cabling. Kiosks and digital signage may need only coarse detail, although small code elements can raise the target. In parking and farming, greater working distance reduces magnification for unchanged optics. The same feature then occupies less sensor area, increasing the image-plane resolution demand without changing its object-plane lp/mm requirement.


For fixed-mount code reading, the AR2020 AI-Powered 20MP Fixed-Mount Barcode & QR Code GigE Camera combines a 20 MP sensor, GigE and on-camera decoding. Evaluate that combination against the smallest code element at the intended distance. Pixel count and decoding capability alone do not establish whether the lens and sensor preserve sufficient contrast.


Line Pairs per Millimeter in Medical and Point-of-Care Imaging


A respiration monitor and a surgical-instrument camera both carry lp/mm figures on their datasheets, and the numbers tell you almost nothing until you match them to the structure each device has to resolve. Start there, with the tissue or instrument, not with the sensor.


A 2024 pilot study indexed on PubMed makes the point directly: it compared radiographic spatial resolutions of 20, 25 and 40 lp/mm and found that 25 lp/mm produced better measurement results at 0° vertical angulation. The highest available resolution lost to the middle setting, because a finer pattern carries less contrast and measurement noise grows with it.


That result is radiographic, so treat it as a method rather than a specification for a visible-light module. The lesson transfers: choose the lp/mm your measurement task needs, and judge it at the contrast threshold where the measurement happens, not at the highest number the hardware can produce.


The working distance sets the target


A clinical camera needs enough object-plane resolution to separate the smallest structure it must measure. A 0.05 mm instrument edge needs about 10 lp/mm at the tissue; a suture line well under a millimetre wide needs only a few. Convert that object-plane figure to an image-plane figure with the magnification, then to a pitch requirement, and finally check it against the sensor's Nyquist ceiling. Each step is a ceiling of its own, and the lowest one wins.


Point-of-care and patient-monitoring devices are compact, often wireless, and mounted at fixed working distances. Those three constraints make the calculation easier than it sounds, because the enclosure fixes the distance and the design fixes the lighting.


A datasheet figure measured on a bench, at a different distance, under lab light, tells you what the component can do. It doesn't tell you what your device does.

The healthcare machine vision sector these devices sit in is expanding quickly. A market analysis of healthcare machine vision systems valued it at $617.40 million in 2021 and projected $4.5 billion by 2031, a 22.4% compound annual growth rate from 2022 through 2031, with patient monitoring forecast as the fastest-growing application at 23.6%, driven by wireless respiration and blood-pressure monitoring devices.


Verification under clinical conditions


A professional analyzing a camera module using a line pairs per millimeter test chart for resolution testing.


The general bench test in Section 7 covers distance, lighting and MTF50 readings. Clinical hardware adds conditions a bench never sees, so repeat the measurement with these in place:


  1. Fit the sterile or sealed housing before measuring. Its window adds reflections and can shift effective focus, so contrast at the target lp/mm drops even when the module itself is unchanged.

  2. Test through the wireless link and final power supply. Compression and power ripple both eat contrast at the finest line pairs first, exactly where the measurement lives.

  3. Check for glove reflections and fluid glare. Specular highlights near the region of interest raise the noise floor and lower measured contrast at MTF50.

  4. Record centre and corner readings separately. A patient rarely sits in the middle of the frame, and edge contrast is often the limiting number.


Compact USB modules are often the practical choice for lab-side instruments, and the high-resolution USB camera options for medical devices cover the interface and driver side of that decision.


Diagnosing Soft, Aliased or Low-Detail Images


Field diagnosis works like tracing a bad signal through a cable. Do not start by the camera or rewriting the requirement. Start with the symptom, because each visual pattern points to a different weak link between scene, lens, sensor and processing. Then change one thing at a time. If the mount, aperture and sensor setting all move together, the result cannot identify the cause.


Symptom

Likely cause

Fix

Fine detail soft at every distance

Lens MTF too low for the sensor, or focus off

Refocus on a test chart, compare lens MTF at the target lp/mm, and upgrade the lens if needed

Moiré or false stripes on fine repeating patterns

Detail above the Nyquist limit, so it aliases

Use a sensor with a higher Nyquist limit or a lens that softens detail before Nyquist

Sharp centre, soft corners

Image circle too small for the sensor, or field curvature

Use a lens rated for the sensor format and check edge MTF

Detail fades as aperture closes

Diffraction at small apertures

Set the f-number where the lens peaks and trade depth of field carefully

Sharp on the bench, soft in the field

Vibration, motion blur or focus drift with temperature

Fix the mount, shorten exposure or use a global shutter for moving subjects

Less detail than the megapixel count suggests

Megapixels reported instead of measured lp/mm

Compare the image with the target lp/mm and the lens contrast at that frequency


The test that separates the rows


Use the failure image itself as the first clue. Soft detail at every distance points toward focus or lens contrast. False stripes point toward sampling trouble, where fine repeating detail sits above the Nyquist limit and returns as a pattern that was never in the scene. Sharp centre and soft corners point toward coverage or field curvature, while detail that fades as the aperture closes points toward diffraction.


A field failure needs a different order from a controlled bench check. First, confirm that the complaint follows the subject and distance. If the blur stays fixed while the subject changes, inspect the mount, focus position and housing_window. If it appears only on moving parts, shorten the exposure or use a global shutter before blaming the lens.


Next, isolate processing from optics. Compression, power ripple and window reflections can make a camera look weak even when the lens and sensor pairing is sound. The fastest way to separate them is to compare the live image with the recorded one. If the live image holds detail and the saved image loses it, the loss sits after the sensor. If both are soft, work backward through aperture, focus, lens MTF and sampling ceiling.


Sort the fixes by cost. Refocusing, changing the aperture, shimming the mount and cleaning a window cost hours. Replacing the lens costs days. Replacing the sensor to raise the sampling ceiling costs a redesign, and it only helps if the lens was already delivering contrast above the old ceiling. A sensor swap also cannot rescue soft optics. It only raises the ceiling, so the lens still has to feed it usable contrast at the target lp/mm.


Confirm Your Target Before Choosing a Camera


Six checks, in this order, will keep a project out of the situation where a prototype arrives and nobody can say why the image is soft.


  1. Name the smallest feature and the working distance. Everything downstream depends on these two values, and they come from the application, not the camera.

  2. Convert the feature to object-plane lp/mm using 1/(2w). Write the number down and keep it in the requirements document.

  3. Convert the target to a sensor-plane requirement with the Nyquist formula, and leave margin so the sensor ceiling sits comfortably above the target.

  4. Check the lens at the target lp/mm at MTF50, centre and corner, at the aperture you'll ship. A centre-only figure hides the corner loss that ruins code reading at the frame edge.

  5. Choose the interface from cable length and latency. Short run inside a sealed housing points to MIPI CSI-2; a run across a vehicle or a building points to USB or GigE.

  6. Confirm on a prototype with a test chart under lighting conditions before committing to volume. This is the step that catches window reflections, IR illuminator hotspots and compression artefacts.


A six-step infographic on how to confirm your target before choosing an industrial machine vision camera.


The order matters because each step constrains the next. Choosing a camera first and working backwards usually ends with a lens that can't meet the target and a sensor that can't be fed.



Send Vadzo Imaging your target lp/mm, working distance, cable length and latency limit, and its team can check the USB, GigE and MIPI camera options against those numbers before a prototype is built. Vadzo Imaging supplies OEM camera modules and custom imaging builds for drones, AMRs, kiosks, medical devices and smart-city equipment, with fixed-focus and autofocus lens options across its range. Start at Vadzo Imaging with the four numbers in hand, and the lens and sensor conversation becomes a specification check rather than a guess.


 
 

Reach Vadzo Team for the Customization

Vadzo team shall be able to assist you with the details on this.

contact form camera image
bottom of page