머신 비전 광학 가이드

머신 비전에서의 피사계 심도: 조리개, 작동 거리, 혼동 원

Aperture, focal length, working distance, and the circle of confusion decide how much of the scene stays sharp. This guide works through each one, shows where stopping down stops helping, and explains how depth of focus differs from depth of field.

By Max Henkart, Commonlands · Updated May 2026 · 10 min read

M12 렌즈로 비스듬히 놓인 자를 촬영했을 때, 피사계 심도 덕분에 한 평면만 선명하게 나타납니다.

Depth of field (DOF) in machine vision is the range of object distances that produce acceptably sharp images on the sensor. Four variables control it: f-number, focal length, working distance, and the permissible circle of confusion, which machine vision sets from pixel pitch rather than photographic convention. A larger working-distance-to-focal-length ratio extends DOF the most. Stopping down widens it further, until diffraction cancels the gain. Run your own numbers in the Commonlands camera depth of field calculator.

머신 비전에서 피사계 심도란 무엇인가요?

Depth of field is the range of object distances over which a lens holds blur below the permissible circle of confusion on the sensor. In machine vision the blur limit comes from pixel pitch, not print sharpness, so practical DOF is far shallower than photography rules of thumb suggest. Any published DOF figure is unusable until you know the CoC behind it.

Strictly, the circle of confusion does not define depth of field. It is a geometric blur budget that turns a focus question into arithmetic, and it is least applicable near the diffraction limit, where the in-focus spot is already an Airy disk. The real usable range depends on how the lens's MTF at your feature's spatial frequency holds through focus.

Geometry dominates: at low magnification DOF scales with the square of the working-distance-to-focal-length ratio, and F# and the CoC scale it linearly once the geometry is fixed. That is why a smaller pixel pitch, which tightens the CoC, shrinks the working DOF even though nothing about the lens changed. The working distance guide covers how WD fits the rest of the optical stack.

다중 날개 조리개가 작은 다각형 조리개 크기로 조여진 C-마운트 렌즈
조리개를 조이면 빛의 양은 줄어들지만 피사계 심도는 넓어집니다.

머신 비전 시스템에서 피사계 심도는 무엇에 의해 결정되나요?

Four variables set depth of field: F#, focal length, working distance, and the permissible circle of confusion. To a low-magnification approximation, DOF grows with F# and CoC, and with the square of the working-distance-to-focal-length ratio. The exact near and far limits are nonlinear, and finite conjugates add pupil magnification through the working f-number.

조리개(f값)

Stopping down reduces the entrance pupil diameter, cutting off the marginal rays of the imaging cone. A defocused point then casts a smaller geometric blur spot, so a higher F# widens the sharp zone. At a fixed focal length, working distance, and blur budget, the widening is proportional to the working F#, and each stop halves the light.

Many M12 lenses run at a fixed F#, so aperture is set at selection. An adjustable-iris C-mount lens such as the Commonlands CIL544 tunes it at the bench. See the f-number guide.

초점 거리

At a fixed working distance and aperture, DOF scales with the inverse square of focal length: a 6mm lens holds roughly 7 times more DOF than a 16mm lens, since (16/6)² ≈ 7.1. The 6mm lens sees a wider field, though: moving the camera closer to match the 16mm framing restores the ratio and most of the DOF advantage with it. If the feature size needs the longer lens, the extra DOF must come from aperture or working distance. See the focal length selection guide.

작동 거리

DOF scales with the square of working distance, so moving the camera from 300mm to 600mm at constant focal length and aperture roughly quadruples it. Restoring the field of view needs a longer focal length, which cancels most of the gain at low magnification, so model the two together. Early on the camera can move, so a DOF problem is cheap to fix. Once the mechanics are committed, the remaining levers are optical.

허용 가능한 흐림 정도 (혼동 원)

Relaxing the CoC raises the calculated DOF without changing the physical blur; only the label of what counts as acceptable moves. The right CoC is the largest blur the algorithm still tolerates at full reliability. The section below gives per-task starting values.

조달 안내

Published DOF figures rarely state their CoC assumption. When comparing lenses, request the assumed CoC or recompute DOF from F#, focal length, and your own pixel-pitch CoC so the comparison is like for like.

조리개를 조이면 피사계 심도가 깊어지나요?

Stopping down increases depth of field, and at a fixed focal length, working distance, and blur budget the geometric gain is proportional to the working F#. It costs light, and eventually the growing diffraction blur outweighs the added depth. On 1.5-2µm pixels, the Airy disk spans two pixel pitches by F/2.2-F/3 at 550nm, a gradual slide, not a fixed threshold.

광 손실

Each full stop halves the light, so going from F/2.8 to F/11, four stops, drops it to a sixteenth. Strobe power must rise or the exposure must lengthen, risking motion blur, and eventually the illumination system hits its power limit. Illumination is programmable, so the cost is often payable, but budget it.

회절

Light passing through a small aperture spreads by diffraction, so the point image on the sensor becomes an Airy disk whose diameter grows with F#:

에어리 원반 직경 ≈ 2.44 × λ × N F/8에서 550nm → ≈10.7µm · F/16에서 550nm → ≈21.4µm λ = 파장 · N = 조리개 수치. 회절로 인한 흐림 현상은 초점이 맞든 맞지 않든 이미지의 모든 점에 적용됩니다.

On 1.85µm pixels, an F/8 Airy disk at 550nm spans nearly 6 pixels, a blur floor under the entire image, so closing the iris past this point erases the resolution the extra DOF was meant to protect. The two-pitch marker falls near F/5.1 on 3.45µm pixels and near F/2.2 on 1.5µm pixels at the same wavelength.

It is a flag, not a limit: diffraction rises gradually across the band in use, so set the stop from system MTF or measured task performance, not spot diameter. The diffraction limit guide covers the resolution side.

Machine vision systems commonly operate in F/2.8-F/8. Commonlands can supply a measured through-focus MTF curve for a candidate lens, so the tradeoff is not left to the geometric estimate.

머신 비전에서는 어떤 서클 오브 컨퓨전을 사용해야 할까요?

Use a circle of confusion derived from pixel pitch, commonly 1-2 pixel pitches depending on the task. Pixel pitch comes from the sensor datasheet, not the format name. See the sensor size guide.

The machine vision criterion is CoC = k × pixel pitch, where k is the number of pixels of blur the task tolerates. The k values below are starting heuristics, not measured limits.

Sensor type shifts k as well. Monochrome sensors resolve at full pixel pitch, so k near 1 is a common measurement starting point. Bayer sensors are often given k near 2 because color interpolation already softens fine detail, but that is a convention, not a law: CFA, ISP, task, and system MTF set the real tolerance.

과제 Starting CoC (pixels) 근거
계측학, 치수 측정 1 측정 임계값에서 1 픽셀 이상의 블러 처리는 가장자리 위치를 이동시킵니다.
정밀 표면 검사 1 결함은 1~2픽셀 정도에 불과할 수 있으며, 블러 효과로 인해 잘 가려집니다
바코드, 2D 코드, OCR 1-2 가장 얇은 막대, 셀 가장자리 또는 획은 선명하게 표시되어야 합니다.
픽 앤 플레이스 위치 파악 1-3 배치 정확도는 허용 오차를 결정합니다
존재 감지, 로봇 내비게이션 2-4 픽셀 크기에 비해 특징의 크기가 크다

The definitive test is empirical: expose the real algorithm to controlled defocus at the working aperture and find where output error crosses the acceptance threshold. Enter that value, not a photography default, into the Commonlands depth of field calculator.

머신 비전에서 초점 초점 거리란 무엇인가요?

Hyperfocal distance is the closest focus distance at which the far depth-of-field limit reaches infinity. For a thin lens H = f² / (N × c) + f, and the +f term is negligible at the distances below. Focused at H, everything from H/2 to infinity stays within the circle-of-confusion budget. It suits navigation and monitoring cameras with variable object distances, not fixed-distance inspection.

Because H scales with f², focal length dominates. With c = 3.7µm, two pixel pitches on a 1.85µm sensor, the Commonlands CIL821 2.1mm M12 lens at F/2.4 gives H = 2.1² / (2.4 × 0.0037) ≈ 0.50m. Everything from about 0.25m to infinity then holds within budget, a workable fixed-focus navigation camera. The CIL160 16mm at F/1.9 gives H ≈ 36m, near limit around 18m. Focus it at the working plane instead.

Commonlands CIL821 2.1mm wide-angle M12 lens, F/2.4, 150-degree field, for hyperfocal-focus navigation cameras
Short focal lengths like the 2.1mm CIL821 pull the hyperfocal distance to about half a meter, making fixed-focus navigation cameras practical.

Hyperfocal focus fits AMR and drone navigation, wide-area monitoring, and factory-set fixed-focus modules, where object distances vary and no plane deserves peak sharpness. It is the wrong strategy for inspection, metrology, and barcode reading: at H/2 blur equals the full CoC, a liability when the target sits at one controlled distance. See the focusing guide for setting focus at either target.

The calculation is only as good as its CoC: tightening c from 6µm to 3µm doubles H and can push the near limit beyond the closest object the camera must see. Before committing a factory focus setting, verify the detection rate on images captured at H/2.

초점 심도와 피사계 심도의 차이는 무엇인가요?

Depth of field is the object-side tolerance: how far the scene can move while lens and sensor stay fixed. Depth of focus is the image-side tolerance: how far the sensor can shift along the optical axis before blur exceeds the permissible circle of confusion, about 2 × the working F# × CoC in total. They are conjugates, not synonyms.

매개변수 피사계 심도 피사계 심도
시스템 측면 객체 측 이미지 측 (센서면)
무엇이 움직이는가 피사체 거리 센서 위치
일반적인 범위 밀리미터에서 미터로 수십 마이크로미터
오류 시그니처 거리가 맞지 않는 부분은 흐릿하고, 다른 부분은 선명하다 조립 후 전체 이미지가 균일하게 흐릿해짐

The image-side window totals about 2 × N_w × c, where the working f-number N_w = N × (1 + |m| / p) and p is the pupil magnification: roughly 40µm at F/4 with c = 5µm at low magnification, doubling at 1:1 when p = 1. Object-side depth of field grows as magnification falls, so a low-magnification system with generous depth of field still carries a tens-of-micrometers sensor-placement budget.

That window must absorb every sensor-position error in the build: PCB thickness variation, package height, flange tolerance, shims, and thermal drift, which can reach tens of micrometers in compact assemblies. A lens that passes bench testing can still image softly after integration, so validate focus in the assembled camera at the working aperture.

피사계 심도가 중요한 용도에는 어떤 렌즈가 적합할까요?

Short focal lengths give forgiving depth of field even at a fixed aperture. Longer focal lengths trade that margin for magnification, where a finite conjugate design holds sharpness at close working distances. The four M12 lenses below cover that range. Check the machine vision lens collection for current options. Commonlands ships in-stock lenses same day on orders placed before 12 PM PT.

All four are fixed-aperture designs, so the DOF decision is made when you pick the variant. They are ordered by focal length.

순위 렌즈 마운트 EFL 조리개 언제 선택해야 할까요? 제품
1 CIL059 M12 5.9mm F/1.7, F/2.8, F/4.0, F/5.6 fixed variants Short-EFL layouts that need the widest DOF margin. The four fixed-aperture variants let the blur budget pick the F#. Low distortion 6mm M12 lens
2 CIL064 M12 6.0mm F/2.9 fixed Short-EFL DOF behavior on larger 1/1.6" to 2/3" sensors, covered by its 11.0mm image circle. Two thirds inch 6mm M12 lens
3 CIL142 M12 14.4mm F/2.6, F/4.1, F/5.2 fixed variants Mid-telephoto framing where DOF starts to tighten. The F/5.2 variant buys margin back when the light budget allows. Telephoto 14.4mm M12 lens
4 CIL121 M12 21.8mm F/2.8, F/5.9, F/8.0 fixed variants Close-range telephoto work. Finite conjugate correction centered at 500mm holds sharpness where telephoto DOF is thinnest, and the F/8.0 variant maximizes it. Telephoto 21.8mm M12 lens
14mm M12 렌즈 CIL142

망원 14.2mm M12 렌즈

$59.00

.STP 파일 다운로드상품 보기
유한 공액용 20mm M12 렌즈

망원 21.8mm M12 렌즈

$70.00

.STP 파일 다운로드상품 보기
5mm 렌즈 AR2020 저왜곡

저왜곡 5mm M12 렌즈

$79.00

.STP 파일 다운로드상품 보기
12mm C 마운트 렌즈 Kowa Lucid Vision

12mm C-마운트 렌즈 2/3인치 12MP

$149.00

CIL532-F2.0-CMANIR — 39 in stock

.STP 파일 다운로드상품 보기

머신 비전 렌즈 둘러보기

카메라 보드에 장착된, 돔형 전면 렌즈 요소를 갖춘 짧고 광각인 M12 렌즈
단초점 렌즈를 사용하면 고정 초점 카메라에서 하이퍼포컬 거리가 가까워집니다.

자주 묻는 질문

머신 비전에서 ‘혼동 원(circle of confusion)’이란 무엇인가요?

The circle of confusion is the maximum blur-spot diameter on the sensor that an application still treats as in focus. In machine vision it is an engineering tolerance set from pixel pitch and algorithm tolerance, commonly 1-2 pixel pitches, far tighter than photographic conventions for print viewing. Monochrome sensors often sit near 1 pixel pitch. Bayer RGB sensors are frequently allowed closer to 2, a demosaicing rule of thumb, not a law.

머신 비전에서 초점 초점 거리란 무엇인가요?

Hyperfocal distance is the closest focus distance at which the far depth-of-field limit extends to infinity for a given lens, aperture, and circle of confusion. Focused at the hyperfocal distance H ≈ f² / (N × c), everything from H/2 to infinity stays within the blur budget. It suits navigation and monitoring cameras, not fixed-distance inspection.

머신 비전에서 초점 심도란 무엇인가요?

Depth of focus is the allowed displacement of the image sensor along the optical axis before blur exceeds the permissible circle of confusion. It is an image-side tolerance, approximately 2 × the working F# × CoC in total, typically tens of micrometers. Depth of field is the corresponding object-side tolerance; the two are not interchangeable.

머신 비전에서 피사계 심도를 늘리려면 어떻게 해야 하나요?

Raise the working-distance-to-focal-length ratio first, then stop down. Those two levers are coupled: shortening the focal length or backing the camera off only helps if you let the field of view widen, because restoring the original framing puts the ratio back. Stopping down costs light and adds diffraction blur. Model the options in the Commonlands depth of field calculator before changing hardware.

회절 현상은 언제 작은 조리개의 장점을 상쇄하게 될까요?

Gradually, as the Airy disk grows past the sensor pixel pitch, with no single crossover point. The Airy disk diameter is approximately 2.44 × wavelength × F#: about 10.7µm at F/8 in 550nm light, which spans nearly 6 pixels on a 1.85µm sensor. Larger pixels, such as 3.45µm, tolerate a higher F# before diffraction dominates.

작업 평면에 초점을 맞춰야 할까요, 아니면 초점 심도보다 먼 거리에 초점을 맞춰야 할까요?

대상이 정의되고 반복 가능한 거리에 위치할 때는 작업 평면에 초점을 맞추며, 이는 대부분의 검사 시스템에 해당합니다. 로봇 내비게이션, 광역 모니터링, 고정 초점 임베디드 카메라와 같이 피사체 거리가 지속적으로 변동하고 특정 평면이 두드러지지 않는 경우에는 초점 거리보다 먼 거리까지 선명하게 보이는 초점 거리(하이퍼포컬 거리)에 초점을 맞춥니다.

DOF 예산 검토가 필요하신가요?

Commonlands manufactures M12 and C-mount lenses for machine vision, with MTF testing as part of production quality control. Send the San Diego engineering team your working distance, part-height variation, and sensor, and we will recommend a lens and operating aperture. In-stock samples ship same day on orders placed before 12 PM PT.