How it is calculated
The lens is a thin lens with its principal plane at the working distance \(s\) from the part. The sensor of width \(w\) and height \(h\) must see a field of at least \(W \times H\), so the magnification cannot exceed
In automatic mode it picks the longest standard focal length at or below \(f_\text{ideal}\) (4, 5, 6, 8, 12, 16, 25, 35, 50, 75, or 100 mm), so the field is always covered. The actual magnification is then \(m = f/(s - f)\), each pixel of pitch \(p\) covers \(p/m\) on the part, and the smallest feature spans \(d\,m/p\) pixels.
Depth of field, diffraction, and motion
Depth of field uses the exact thin-lens limits with the acceptable blur \(c\) (in pixels) and hyperfocal distance \(H = f^2/(Nc) + f\), the same model as the lens selection calculator. The height check passes only when both ends of the range, \(s \pm \Delta z/2\), lie between the near and far limits; the far side of the depth of field is always the longer one. The Airy disk diameter at the sensor is \(2.44\,\lambda N(1+m)\), and the ideal-lens MTF at the sensor Nyquist frequency \(1/(2p)\) shows whether the optics or the pixels limit resolution.
Motion blur in pixels is the distance the part moves during the exposure divided by the pixel size on the part, \(v\,t_\text{exp}\,m/p\). Keep it under one pixel for measurement and under about two for detection. Rolling-shutter sensors also skew moving parts, because rows expose at different times.
Bandwidth and lens format
The data rate is pixels per frame × bytes per pixel × frame rate. Packed 10- and 12-bit pixel formats carry 1.25 and 1.5 bytes per pixel. The interface limits are typical sustained image payloads, listed below. The sensor maker’s full-resolution frame rate is checked too, but a camera can be slower than its sensor, so check the camera datasheet as well.
| Interface | MB/s used | Plugs into |
|---|---|---|
| GigE Vision | 115 | Ethernet port |
| 2.5/5/10 GigE | 290/580/1150 | Ethernet port |
| USB3 Vision | 380 | USB 3 port |
| Camera Link Base/Full | 255/680 | Frame grabber |
| CoaXPress CXP-6/CXP-12, per cable | 600/1200 | Frame grabber |
The Ethernet figures follow JAI’s effective-throughput table for 1, 2.5, 5, and 10 Gb/s links, rounded (Ethernet cables run up to 100 m). USB3 Vision’s 5 Gb/s link carries 500 MB/s after 8b/10b coding, and A3 gives 350–400 MB/s sustained (passive copper cables are specified to 3 m, though 5 m cables often work). Camera Link Base and Full are 2.04 and 5.44 Gb/s at an 85 MHz pixel clock, their maximum. CoaXPress runs 6.25 Gb/s (CXP-6) or 12.5 Gb/s (CXP-12) per cable, also 8b/10b coded, keeps at least 95 % of the coded rate for image data, and can combine cables (four CXP-12 cables: about 4800 MB/s). Real throughput also depends on the host computer, so leave some margin.
A lens must project an image circle at least as large as the sensor diagonal. Format names such as 2/3″ are a legacy of television camera tubes, not a dimension: a 2/3″ sensor is about 11 mm across its diagonal, not 17 mm. The configurator suggests the smallest standard lens format that covers the sensor and the usual mount for that format. C-mount covers sensors up to about 1.1″ (17.6 mm diagonal), or 1.2″ (19.3 mm) with lenses rated for it; larger sensors need TFL (M35), TFL-II (M48, designed for APS-H, about 35 mm), M42, F-mount, M58, or M72 lenses. No standard format is listed above the 35 mm full-frame circle (Ø 43.3 mm): a larger sensor gets a warning to use custom or large-format optics whose image circle is at least the sensor diagonal. Format names that are not inch types (APS-C, APS-H, Super 35 mm, 35 mm full frame, medium format 645) are the makers’ own; the check always compares the computed diagonal with the lens circle.
How the sensors are ranked
Every sensor in the table gets its own lens by the rule above and lands in one of three groups. Fits: the smallest feature spans at least the pixels you asked for, the depth of field covers the height variation (skipped when the height variation is zero), and the max fps, the lower of the interface limit and the maker’s full-resolution figure, is at least your frame rate. Close: it fails a check, but the feature still spans at least 80 % of the pixels you asked for. No: everything else, including a sensor that would need a lens shorter than 4 mm. Fits come first, then close, then no. Inside the fits, the sensor with the fewest megapixels is first. Inside the other two groups, the sensor with the most pixels on the feature is first. Choosing another sort changes the order inside each group only. Motion blur, diffraction, and lens format are checked for the sensor you load, not for the ranking.
Why the fewest megapixels first? Every sensor in the fits group already resolves your feature, so extra pixels add data, not detail you asked for. A sensor with fewer pixels runs faster on the same interface and is easier to light and to lens: for the same field it has either larger pixels, which collect more light and ask less of the lens, or a smaller sensor, which takes a smaller lens. If you want headroom, raise the pixels-across target or sort by most pixels.
Lighting
Lighting decides contrast, and contrast decides whether a feature that spans enough pixels is actually detectable. The suggestions follow standard practice: backlights for silhouettes and gauging, coaxial light for flat reflective parts, dome light for curved shiny parts, low-angle dark field for scratches and particles, and patterned backgrounds for transparent parts. The machine vision optics article covers the geometry in more depth.
Worked example
The defaults: a 120 × 90 mm field at a 300 mm working distance, a 0.2 mm smallest feature that should span 3 px, and a 2/3″ Sony IMX250 (2448 × 2048 pixels of 3.45 µm, an 8.446 × 7.066 mm sensor).
- The width sets the limit: mmax = 8.446/120 = 0.0704 (the height would allow 7.066/90 = 0.0785), so fideal = 0.0704 × 300/1.0704 = 19.7 mm, and automatic mode picks the 16 mm lens.
- Then m = 16/(300 − 16) = 0.0563, the field is 149.9 × 125.4 mm, each pixel covers 61.2 µm, and the 0.2 mm feature spans 3.27 px, above the target of 3.
- At f/4 with an acceptable blur of 2 px (6.9 µm), the part stays in focus from 291.1 to 309.5 mm, a depth of field of 18.4 mm, which covers the 2 mm height variation (299 to 301 mm).
- The working f-number is 4 × 1.0563 = 4.23, so the Airy disk at 525 nm is 5.41 µm (1.57 px), and the ideal-lens MTF at Nyquist is 60 %: the pixels, not the optics, limit the finest detail.
- At 100 mm/s, a 100 µs exposure smears the part by 10 µm, 0.16 px. Mono8 at 10 fps is 2448 × 2048 × 1 byte × 10 = 50.1 MB/s, well inside GigE’s 115 MB/s, which allows up to 22.9 fps.
- The 11.0 mm diagonal needs a lens rated for 2/3″ (Ø 11 mm) or larger: a C-mount lens.
Assumptions and limits
- Thin-lens, paraxial model. Real lenses have separated principal planes and a minimum object distance, so confirm the working distance with the lens maker’s data or a test image.
- Telecentric lenses do not follow \(m = f/(s - f)\). For gauging with height variation, the perspective check suggests when a telecentric lens is worth it.
- In a color camera’s Bayer filter, green covers every other pixel and red and blue each cover every second row and column, so fine color detail is sampled at about half the monochrome pixel density in each direction. Use monochrome unless the decision depends on color.
- Sensor data come from each maker’s datasheet, flyer, product page, or press release, or for a few older parts a distributor’s or camera maker’s copy (each linked in the table). Each array is the maker’s recommended recording size where one is stated (what most cameras output by default), otherwise the effective or active array; camera makers may crop further. The maximum frame rate is the maker’s full-resolution figure at the bit depth shown, an upper bound for any camera. “EOL” means the maker or an authorized distributor lists the part as discontinued, and “status unknown” means neither says either way. The year is the release year or the earliest dated maker document, so a part may be older.
- Global-shutter sensors and interline CCDs expose every pixel at the same time. Rolling-shutter sensors expose row by row, so moving parts skew. Full-frame CCDs have no electronic shutter: the pixels keep collecting light while the image is read out, so they need a mechanical shutter or a strobe in the dark. Interline CCDs with frame readout read two interlaced fields one after the other and need the same for a full-resolution image.
- Sensitivity and noise are not modeled. To compare cameras for dim scenes or short strobes, use their EMVA 1288 data: quantum efficiency (the share of photons that become signal), saturation capacity, and dynamic range.
References
Primary sources and standards
- C. Steger, M. Ulrich, and C. Wiedemann, Machine Vision Algorithms and Applications, 2nd ed., Wiley-VCH (2018), ISBN 978-3-527-41365-2, secs. 2.1.5 (bright-field, dark-field, and back-light illumination), 2.2.2–2.2.4 (lens model, depth of field, telecentric lenses), 2.3.2–2.3.4 (rolling and global shutters, color cameras, sensor sizes), and 2.4.2–2.4.3 (Camera Link, CoaXPress, USB3 Vision, GigE Vision, and GenICam).
- B. Jähne, Digital Image Processing and Image Acquisition, 7th ed., Springer (2026), doi:10.1007/978-3-032-04806-6, secs. 3.4.4 (depth of field), 3.5.3 (the MTF of diffraction-limited optics), 4.4.5–4.4.6 (color sensors and digital camera interfaces), and 5.2.3 (the sampling theorem).
- J. E. Greivenkamp, Field Guide to Geometrical Optics, SPIE Press (2004), doi:10.1117/3.547461 (f-number, depth of field, hyperfocal distance).
- G. D. Boreman, Modulation Transfer Function in Optical and Electro-Optical Systems, SPIE Press (2001), doi:10.1117/3.419857, secs. 1.5 (the diffraction MTF) and 2.2 (sampling and aliasing).
- European Machine Vision Association, EMVA Standard 1288: Standard for Characterization of Image Sensors and Cameras, Release 4.0 Linear (16 June 2021), emva.org, secs. 2.1 and 2.7 (quantum efficiency, saturation capacity, and dynamic range); free.
- Association for Advancing Automation (A3), GigE Vision 3.0 (2026), USB3 Vision 1.2, and Camera Link 2.1 standards, automate.org/vision/vision-standards (the camera interface standards; free to download for evaluation).
- Japan Industrial Imaging Association, JIIA CXP-001-2021, CoaXPress Standard, version 2.1 (2021) (CXP-6 and CXP-12 links at 6.25 and 12.5 Gb/s, with 8b/10b coding).
- European Machine Vision Association, GenICam Pixel Format Naming Convention (PFNC), version 2.4 (16 June 2021), emva.org, sec. 6.3 (packed formats: Mono10p and Mono12p carry 1.25 and 1.5 bytes per pixel).
- Japan Industrial Imaging Association, LE-004, TFL Mount and TFL-II Mount Standards and Operational Regulations, and JIIA’s comparison of machine vision lens mounts by image size, jiia.org/mv_dl/lens, in Japanese (the mount suggested for each lens format).
- Edmund Optics, “TFL Lens: Maximum Optical Performance beyond 1.1″ Sensors,” white paper (2020), PDF, and “Lens Mounts,” edmundoptics.com (1.1″, 17.6 mm, as the practical limit of C-mount; the TFL mount for APS-C sensors, 27.9 mm, and the TFL-II mount for APS-H, 35 mm; the F-mount for 35 mm, 43.3 mm).
- Sensor data: Sony Semiconductor Solutions, Product Selector for Industrial Image Sensors and product flyers; onsemi, Gpixel, Teledyne e2v, ams OSRAM, Canon, OmniVision, SmartSens, STMicroelectronics, and Fairchild Imaging datasheets, product pages, and press releases, some through distributor copies or the Internet Archive (array, pixel pitch, optical format, shutter, frame rate, and status of every sensor in the list; the table links each sensor’s source; checked October 2026).
- Interface throughput: JAI, “GigE Interface, a true versatile workhorse” (12 October 2020), news.jai.com (effective throughput of 115, 287.5, 575, and 1150 MB/s); A3, “What Is USB3 Vision?”, automate.org (350–400 MB/s sustained); Opto Engineering, “Camera Link,” opto-e.com (255 and 680 MB/s at 85 MHz); A. Wilson, “CoaXPress gains support as bandwidth rises,” Vision Systems Design (14 February 2018), vision-systems.com (at least 95 % of the coded CoaXPress rate carries image data).
- Pixels across a feature: M. Henkart, “Spatial Resolution in Machine Vision,” Commonlands Optics (updated May 2026), commonlands.com (2 pixels as the sampling floor, 3–5 for production inspection, 10 or more for measurement, all as starting heuristics).
- Texas Instruments, “Light That Freezes Motion – Insight into a LED Lighting Control Design for Machine Vision,” technical article SSZT704 (May 2018), ti.com (motion blur of at most one pixel, by shutter or strobe).
Textbooks
- H. H. Telle and A. González Ureña, Laser Spectroscopy and Laser Imaging: An Introduction, CRC Press (2018), secs. 6.3.1–6.3.2, pp. 144–147 and sec. 17.2.2, pp. 480–482 (multielement array detectors, Table 6.3: CCD against CMOS, full-well capacity, dark current, and read noise; sampling and the Nyquist pixel criterion).
- J. H. Moore, C. C. Davis, M. A. Coplan, and S. C. Greer, Building Scientific Apparatus, 4th ed., Cambridge University Press (2009), sec. 7.7.4, pp. 580–581 and sec. 4.2.5, pp. 166–174 (imaging arrays: the Bayer pattern, CCD shuttering, and camera interfaces; the modulation transfer function).
- W. M. Steen and J. Mazumder, Laser Material Processing, 4th ed., Springer (2010), sec. 2.8.1, pp. 102–104 (Table 2.5 thin-lens relations and the Airy diameter, eq. 2.11).
Free introductions
- NI, “Calculating Camera Sensor Resolution and Lens Focal Length” (updated 7 October 2020), ni.com (from field of view and smallest feature to sensor resolution and focal length, step by step).
- Edmund Optics, “Imaging Electronics 101: Understanding Camera Sensors for Machine Vision Applications,” edmundoptics.com (sensor format names, global and rolling shutters, color sensors).
- H. H. Nasse, “How to Read MTF Curves,” Carl Zeiss Camera Lens Division (2008), PDF, p. 9 (resolving power read where the MTF falls below a low threshold such as 10 %, and why that limit is imprecise).
- Imatest, “Sharpness,” imatest.com (the visual resolution limit corresponds to an MTF of roughly 10 to 20 %; MTF10, MTF20, and MTF50).
- D. Martin, “A Practical Guide to Machine Vision Lighting,” Advanced Illumination (February 2013), PDF (back, dome, on-axis, and dark-field lighting, and choosing a light color for contrast).