Understanding Digital Camera Sensors - sensors and cameras
Depth offocus
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.
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:
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.
F number and depth of fieldphotography
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.
F number and depth of fieldpdf
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.)
From Newtonâs lens formula, the lens extension (xâ) is expressed as follows using the camera-to-subject distance (x): The lens extensions (xNâ and xFâ) at the nearest point of the front rear depth of field (DoFN) and the farthest point of the rear depth of field (DoFF) are calculated as follows using the effective f-number at x, Fex (denoted as Fe in the above paragraph): The linear magnification factors (βN and βF) and the effective f-numbers (FeN and FeF) at xNâ and xFâ are calculated as follows:
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:
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 δ:
Depth of fieldphotography
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:
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.
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.)
he 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.
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.
F number and depth of fieldformula
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 (DoFN) is positive whereas the rear depth of field (DoFF) 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 (FeN and FeF) are used. For general applications, FeN and FeF can be replaced with the Fe value that is calculated from optical magnification at a distance to the subject (x).
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.
Whens 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).
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.
This page partially uses JavaScript. This page may not operate normally when these functions are not supported by your browser or the setting is disabled. Please look for the information you need from the following pages:
F number and depth of fieldexample
F number and depth of fieldcalculator
Also for entocentric lenses it is possible to calculate the magnification or imaging scale. this value changes for any working distance, which leads to problems in measurement applications.
Shallowdepth of field
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.
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).
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.
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.
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.
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.
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.
Usually no focal length is indicated for telecentric measuring lenses or macro-lenses, which would serve to calculate and select the optics. These lens types are characterised by the imaging scale β (beta). It can easily be calculated.
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.)