1/10ページ
カタログの表紙 カタログの表紙 カタログの表紙
カタログの表紙

Download this catalog and see all

Download(511.3Kb)

[White Paper] Depth of field, hyperfocal distance, and hyperfocal sequence

Whitepaper

Useful knowledge of optics

The depth of field is the distance between the nearest and the farthest objects in an image that appear acceptably sharp.
This white paper describes, in an easy-to-understand way, the depth of field in relation to the hyperfocal distance and the hyperfocal sequence.

Document Information

Document Title [White Paper] Depth of field, hyperfocal distance, and hyperfocal sequence
Document Type Whitepaper
File size 511.3Kb
Category
Company Toshiba Teli Corporation (Documents List)

Documents related to this company

この企業の関連カタログの表紙
Camera Catalog All Models 2026 -
Product Catalog

Toshiba Teli Corporation

この企業の関連カタログの表紙
[NEW] Machine Vision Camera F Series USB 10Gbps Model
Product Catalog

Toshiba Teli Corporation

この企業の関連カタログの表紙
CoaXPress 2.0 CMOS Camera EX Series leaflet
Product Catalog

Toshiba Teli Corporation

Document Contents

Page1

WHITE PAPER Useful knowledge of optics Depth of field, hyperfocal distance, and hyperfocal sequence April 2022 URL: https://www.toshiba.co.jp/en/ Information contained in this document is subject to change without prior notice. If you have any questions, please fill out our inquiries form in our web site. We shall be exempted from taking responsibility and held harmless for damage or losses incurred by the user. Company name, product name or logo are trademark or registered trademark of each company or organization. DAA03188B
Page2

Contents 1. Introduction ................................................................................................................ 2 2. Depth of field .............................................................................................................. 2 2.1. What is the depth of field? ........................................................................................ 2 2.2. Permissible circle of confusion versus depth of focus .................................................... 2 2.3. Depth of field and optical magnification ...................................................................... 3 2.4. Calculating the depth of field ..................................................................................... 4 1. Equation using optical magnification................................................................ 4 2. Equation using Newton’s lens formula ............................................................. 5 3. Equation using Gauss' lens formula ................................................................. 6 3. Hyperfocal sequence .................................................................................................... 7 3.1. What is a hyperfocal sequence? ................................................................................. 7 3.2. Obtaining a hyperfocal sequence ............................................................................... 7 4. Hyperfocal sequence .................................................................................................... 8 4.1. What is a hyperfocal sequence? ................................................................................. 8 4.2. Obtaining a hyperfocal sequence ............................................................................... 8 4.3. Example of shooting at infinity .................................................................................. 8 4.4. Example of close-up shooting .................................................................................... 9 1 Copyright © 2022 Toshiba Teli Corporation, All rights reserved. DAA03188B
Page3

1. Introduction Many of the readers of this white paper might have had questions before about the depth of field (DoF) not only when using machine vision systems but also when taking photographs with ordinary cameras. The depth of field is the distance between the nearest and the farthest objects in an image that appear acceptably sharp. You can find information about the depth of field on the Internet, in off-the-shelf books, and in trade journals. White papers about the depth of field are also available on our website under the headings Basics of camera lenses: Guidelines for lens selection and Consideration for depth of field in machine vision. These white papers discuss the depth of field from a different perspective than the commonly adopted one in the photography industry. This white paper describes, in an easy-to-understand way, the depth of field in relation to the hyperfocal distance and the hyperfocal sequence. Although these lens properties are closely related to each other, it is difficult to find such information on the Internet. Therefore, you will find this white paper useful. 2. Depth of field For a detailed description of the depth of field, see Basics of camera lenses: Guidelines for lens selection and Consideration for depth of field in machine vision on our website. This section provides an overview of the depth of field and some added information about it. 2.1. What is the depth of field? The depth of field is the distance between the nearest and the farthest objects in an image that appear acceptably sharp. When you shoot images, you focus a camera on objects at arbitrary distances. The distance to the nearest point in acceptably sharp focus in front of the best-focused point is called the front depth of field whereas the distance to the farthest point in acceptably sharp focus behind the best-focused point is called the rear depth of field. The distance between these points is the total depth of field. The depth of field can be calculated as described in the following subsection. However, objects appear differently, depending on their size and surface characteristics as well as the optical aberrations of the lens used. Therefore, cameras do not always come into sharp focus precisely at the calculated threshold; rather, they gradually come into and out of focus around a threshold. 2.2. Permissible circle of confusion versus depth of focus The depth of focus refers to the tolerance of placement of an image sensor in relation to the lens. The depth of focus is the conjugate of the depth of field. Since both the depth of field and the depth of focus are abbreviated as DoF, they are hereinafter referred to as DoFi and DoFo respectively for the sake of clarity. The depth of focus (DoFo) is the distance over which a sensor can be displaced along the optical axis while an object remains in acceptably sharp focus. DoFo can be calculated from the permissible circle of confusion (δ) and the effective f-number (Fe). 2 Copyright © 2022 Toshiba Teli Corporation, All rights reserved. DAA03188B
Page4

2*δ *Fe image sensor ???? = ±? ∙ ?? = 2 ∙ ? ∙ ?? δ DoFo: Depth of focus Fe: Effective f-number δ: Permissible circle of confusion (abbreviated as CoC) Lens Best-focused point Image-side focus An image of a point source that is not in perfect focus appears as a blur spot called a circle of confusion (CoC). The size of the smallest spot that an image sensor cannot recognize as a blur is called the permissible circle of confusion or simply a circle of confusion. Even today when digital cameras are the mainstream cameras, the CoC diameters (δ) commonly referenced on the Internet (e.g., 0.033 mm, or 1/1300th of the image diagonal) are for images on silver halide films. These values are specified for images that are printed on a photographic paper of a certain size and viewed at a certain distance. In machine vision, which processes each pixel of an image sensor at high brightness levels, the permissible circle of confusion (δ) is calculated based on the pixel pitch (Ppix) or the diameter of the Airy disk (DAiry) that represents a limit to the optical resolution of an image created by a lens. In the case of monochrome cameras, the larger of these values is used as δ. (For color cameras with an on-chip color Bayer array filter, a value equal to two to three times δ is generally used.) ????? = 2.44 ∙ ? ∙ ?? DAiry: Diameter of the Airy disk ≈ 1.34 ∙ ?? (at ? = 0.55 μm) λ: Wavelength In order to determine the depth of focus (DoFo) accurately, it is necessary to consider the optical aberrations of a lens such as an image plane curvature. However, since such accuracy is generally unnecessary, the depth of focus is calculated based only on parameters along the optical axis. The DoFo value obtained by the above equation represents the most stringent case in terms of accuracy. For actual applications, a more relaxed value can be used as necessary. (For details, see the white paper Consideration for depth of field in machine vision from Toshiba Teli.) 2.3. Depth of field and optical magnification The information available on the Internet states that the depth of field has the following characteristics: 1. The greater the f-number (i.e., the more the aperture is reduced), the greater the depth of field. 2. The shorter the focal length (i.e., the wider angle a lens is), the greater the depth of field. 3. The farther away a subject is, the greater the depth of field. 3 Copyright © 2022 Toshiba Teli Corporation, All rights reserved. DAA03188B
Page5

4. The rear depth of field is greater than the front depth of field. These are all true, but this information does not help you determine which lens provides a greater depth of field because cameras with different sensor sizes require lenses with different focal lengths to obtain the same angle of view. Note that the depth of field is related to optical magnification. In the case of machine vision applications requiring close focusing at relatively high magnification, it would be safe to consider as follows: 5. Two optical systems provide the same depth of field when their lenses have the same optical magnification and f-number and their image sensors have the same pixel pitch. Remember that the previous subsection mentioned that the depth of focus is the conjugate of the depth of field. A change in the object-side depth of focus caused by a displacement of the image plane by half the depth of focus is equal to half the depth of field. A slight displacement of an image plane causes the object-side focal point to shift by as much as a change in the image-side depth of focus divided by the longitudinal magnification of the lens. Because the depth of focus is symmetrical around the image plane, the depth of field is also symmetrical around the image plane. However, if the optical magnification of a lens differs greatly at both ends of the depth of focus, the front and rear depths of field are not equal as described in 3 and 4 above. Equations for the depth of field are presented in the following subsections. In the case of machine vision and other applications requiring relatively close focusing, we recommend using an equation with an optical magnification term. Otherwise, we recommend using an equation with a subject distance term. 2.4. Calculating the depth of field This section presents three ways of calculating the depth of field. 1. Equation using optical magnification Many machine vision applications shoot subjects at close distances (for example, at a distance of 300 mm). For close-up shooting, the depth of field can be calculated using optical magnification. The previous subsection explained the depth of field in relation to longitudinal magnification (α). The following shows an equation for calculating the depth of field using linear magnification, β (also called lateral or transverse magnification) since optical magnification generally means linear magnification. α and β have the following relationship: α=β2. DoFi /2 DoFi /2 DoFi DoFo DoFo: Depth of focus DoFi: Depth of field ???? = ±? ∙ ?? f: Focal length ???? ? ∙ ? Fe: Effective f-number ? ???? = ± = ± α: Longitudinal optical magnification ? ? β: Linear optical magnification ? ∙ ?? = ± δ: Diameter of the Airy disk ?2 (abbreviated as CoC) 4 Copyright © 2022 Toshiba Teli Corporation, All rights reserved. DAA03188B
Page6

2. Equation using Newton’s lens formula The following shows an equation for calculating the depth of field using the distance to a subject (x) from the focal point. Newton’s lens formula uses the front focal point as an origin to measure the distance to a subject (x). For typical shooting, a point on the opposite side of an image takes a negative value. The front depth of field (DoFF) is positive whereas the rear depth of field (DoFR) is negative. Since the total depth of field represents a distance, it is expressed as an absolute value. As effective f-numbers, the values calculated from the optical magnification at the front and rear depths of focus (FeF and FeR) are used. For general applications, FeF and FeR can be replaced with the Fe value that is calculated from optical magnification at a distance to the subject (x). x f xR‘ DoFR DoFF xF’ DoFi x’ DoF o: Depth of focus DoFi: Depth of field (absolute value) ???? = ???? − ???? DoFF: Front depth of field (positive) DoFR: Rear depth of field (negative) ? ∙ ??? ∙ ?2 ? ∙ ?? ∙ ?2 ???? = ≈ f: Focal length ?2 − ? ∙ ??? ∙ ? ?2 − ? ∙ ?? ∙ ? Fe: Effective f-number at x FeF: Effective f-number at the front depth of focus ? ∙ ??? ∙ ?2 ? ∙ ?? ∙ ?2 ???? = − ≈ − FeR: Effective f-number at the rear depth of focus ?2 + ? ∙ ??? ∙ ? ?2 + ? ∙ ?? ∙ ? δ: Diameter of the Airy disk (abbreviated as CoC) x: Distance to a subject (from the front focal point) FeF and FeR are calculated as described below. f: Focal length From Newton’s lens formula, the Fe: Effective f-number lens extension (x’) is expressed Fex: Effective f-number at x(=Fe) FeF: Effective f-number at the front depth of focus as follows using the camera-to- FeR: Effective f-number at the rear depth of focus subject distance (x): βx: Linear magnification factors at x ?2 βF: Linear magnification factors at the front depth of focus ?′ = − βR: Linear magnification factors at the rear depth of focus ? δ: Diameter of the Airy disk (abbreviated as CoC) x: Distance to a subject (from the front focal point) xF: Distance to a subject at the front depth of focus The lens extensions (xF’ and xR’) (from the front focal point) at the nearest point of the front xR: Distance to a subject at the rear depth of focus rear depth of field (DoFF) and the (from the front focal point) x’: Lens extension farthest point of the rear depth of xF’: Lens extension at the front depth of focus field (DoFR) are calculated as xR’: Lens extension at the rear depth of focus follows using the effective f- number at x, Fex (denoted as Fe in the above paragraph): 5 Copyright © 2022 Toshiba Teli Corporation, All rights reserved. DAA03188B
Page7

??? = ?(1 − ??) ?2 ??′ = ?′ + ? ∙ ??? = − + ? ∙ ? ? ?? ?2 ? ′ ?′ = ? − ? ∙ ??? = − − ? ∙ ? ? ?? The linear magnification factors (βF and βR) and the effective f-numbers (FeF and FeR) at xF’ and xR’ are calculated as follows: ?? ′ ?? = ? ??′ ?? = ? ??? = ?(1 − ??) ??? = ?(1 − ??) 3. Equation using Gauss' lens formula Gauss’ lens formula (1/(-a)+1/b=1/f ) expresses the depth of field using the distance to a subject from the principal point. The subject distance used in Gauss’ lens formula is greater than the one used in Newton’s lens formula by the focal length of a lens (f). Therefore, the depth of field can be easily obtained simply by replacing x in Newton’s lens formula with a+f. The origin of the coordinate system for the subject distance (a) is the front principal point. For typical shooting, a point on the opposite side of an image takes a negative value. a DoFR DoFF f DoFi DoFo ? = ? + ? ???? = ???? − ???? ? ∙ ??? ∙ (? + ?)2 ? ∙ ?? ∙ (? + ?)2 ???? = ≈ ?2 − ? ∙ ??? ∙ (? + ?) ?2 − ? ∙ ?? ∙ (? + ?) ? ∙ ??? ∙ (? + ?)2 ? ∙ ?? ∙ (? + ?)2 ???? = − ≈ − ?2 + ? ∙ ??? ∙ (? + ?) ?2 + ? ∙ ?? ∙ (? + ?) DoFo: Depth of focus DoFi: Depth of field (absolute value) DoFF: Front depth of field (positive) DoFR: Rear depth of field (negative) f: Focal length Fe: Effective f-number δ: Diameter of the Airy disk (abbreviated as CoC) a: Subject distance (from the front principal point) 6 Copyright © 2022 Toshiba Teli Corporation, All rights reserved. DAA03188B
Page8

3. Hyperfocal sequence 3.1. What is a hyperfocal sequence? When a lens is focused on an object at a distance of H, a depth of field extends from infinity to H/2. In this case, H is called a hyperfocal distance. INF H(Hyperfocal sequence) ?2 ? = − f ? ∙ ? H /2 Range that can be seen in focus Depth of focus 3.2. Obtaining a hyperfocal sequence When a lens is focused at infinity (x=∞, x’=0), the hyperfocal distance is equal to the front depth of field as given by the following equation. (Here, we use Newton’s lens formula since our attention is on the lens extension, x’.) Optical magnification has not been determined yet when you calculate a hyperfocal distance. Therefore, we use the f-number (F) at infinity (that is not modified by optical magnification) instead of the effective f-number (Fe). ? = ∞ H: Hyperfocal sequence ?′ = 0 f: Focal length ′ F: f-number ?? = ?′ − ? ∙ ? = −? ∙ ? (over infinity) δ: Diameter of the Airy disk (abbreviated as CoC) ?? ′ = ?′ + ? ∙ ? = ? ∙ ? x: Distance to a subject (from the front focal point) xF: Distance to a subject at the front depth of focus ?2 ?2 ?? = − = − = ? (from the front focal point) ?? ′ ? ∙ ? xR: Distance to a subject at the rear depth of focus (from the front focal point) x’: Lens extension xF’: Lens extension at the front depth of focus xR’: Lens extension at the rear depth of focus 7 Copyright © 2022 Toshiba Teli Corporation, All rights reserved. DAA03188B
Page9

4. Hyperfocal sequence 4.1. What is a hyperfocal sequence? Depths of focus are arranged as a sequence to show the ranges over which an object remains in acceptably sharp focus. This sequence is called a hyperfocal sequence (HS) or consecutive depths of focus. 4.2. Obtaining a hyperfocal sequence Focusing at H/n (where n is an integer) causes the depth of field to extend from N/(n+1) to H/(n-1). A hyperfocal sequence is a sequence of N/n: ? ? ? ? ? HS = (∞),?, , , , ,…, ,… 2 3 4 5 ? When a lens is focused at H/n, H/(n-1) and H/(n+1) are the rear and front depths of field respectively. For example, a lens focused at H holds a depth of field from H/2 to infinity. As shown in the previous subsection, when a lens is focused at infinity, the rear depth of field is infinite, going slightly “over infinity,” while the front depth of field is H. Dividing a hyperfocal distance (H) by an integer (n) means that the focal point shifts along the optical axis by half the depth of focus (δ*Fe) times n in relation to the lens extension (x’) at infinity. ?′ = ?′ ∞ + ? ∙ ? ∙ ?? x’: Lens extension ?? ′ = ?′ ∞ + (? + 1) ∙ ? ∙ ?? xF’: Lens extension at the front depth of focus xR’: Lens extension at the rear depth of focus ??′ = ?′ ∞ + (? − 1) ∙ ? ∙ ?? n: Integer 4.3. Example of shooting at infinity Nowadays, surveillance cameras in distant-view shooting mode employ image shooting and processing techniques for machine vision cameras, for example, to synchronize trigger control with lighting. Suppose, for example, a wavelength of 550 nm, a camera with a pixel pitch of 3.45 μm, and an F2 lens with a focal length (f) of 50 mm. Let us calculate consecutive depths of field under these conditions. The specifications for the camera and the lens are: (1) Wavelength: λ=550 nm=0.55 μm (2) Pixel pitch: PPix=3.45 μm (3) Focal length: f=50 mm (4) f-number: F=2 8 Copyright © 2022 Toshiba Teli Corporation, All rights reserved. DAA03188B
Page10

The permissible circle of confusion (δ) is the larger of the pixel pitch (Ppix) and the diameter of the Airy disk (DAiry). So, let us calculate DAiry to determine δ: ????? ≈ 1.34 ∙ ?? (at ? = 0.55 μm) = 1.34 ∙ 2 = 2.68 μm ????? < ???? ? = ???? = 3.45 μm=0.00345 mm Hence, the hyperfocal distance (H) is calculated as: ?2 502 ? = − = − = −362,318.8 mm ? ∙ ? 0.00345 ∙ 2 The hyperfocal sequence is a sequence of successive H/n values, where n is an integer. The following table shows the values of H to H/5. (The unit of measure is mm. The negative sign that represents a direction is omitted.) INF H H/2 H/3 H/4 H/5 ∞ 362,318.8 181,159.4 120,772.9 90,579.7 72,463.8 When a lens is focused at a hyperfocal distance (H) of about 362.3 m, the depth of field extends from infinity to H/2. So, the farthest point is infinity, and the nearest point is roughly 181.2 m. When the lens is focused at H/3 (≈120.8 m), the depth of field extends from about 181.2 m to about 90.6 m. 4.4. Example of close-up shooting Most machine vision applications provide close focusing. The following table shows the consecutive depths of field for relatively close focusing under the same conditions as above. H/361 H/362 H/363 H/364 H/365 H/366 1003.653 1000.881 998.124 995.381 992.654 989.942 In this case also, focusing at H/n causes the depth of field to extend from H/(n+1) to H/(n- 1). As you see, close focusing causes the depths of field to become considerably shallower than infinity focusing. In the case of close focusing with large optical magnification, the depth-of-field values differ considerably from the results of the calculation shown in Section 2.4. It is therefore recommended to consider the above depth-of-field values as rough estimates at an early stage of system design. (Reference: Shotaro Yoshida (1997) Lens Science for Photographers. Chijinshokan Co. Ltd.) 9 Copyright © 2022 Toshiba Teli Corporation, All rights reserved. DAA03188B