- Articles & Information Index
- Glossary
- A brief guide to setting your camera
- Ball Clamp Maintenance
- Engineering
- Gallery & general interest
- Lens tests
- Lighting & Colour
- Maintenance
- Nikonos info.
- Optics & Imaging
- Starting out
- Underwater connectors

By David W Knight (Cameras Underwater)

The lens port fitted to an underwater compact camera housing is almost invariably a flat sheet of optically transparent glass or plastic. Such ports are also used on housings for interchangeable lens cameras, in which situation they are often referred to as 'macro ports'. It is tempting to think that such a physically simple arrangement must be optically simple; but in fact the converse is true. In this article, we analyse the behaviour of the flat port in order to show its optical limitations and discuss any possible optimisations.

For the initial part of this analysis, the camera is modelled as an idealised symmetric thin-lens system [see

Shown below are are two ray diagrams involving the same lens and object. The first diagram shows the object in air and its image as produced by a simple bi-convex thin lens. The ray diagram is constructed by assuming that the lens bends rays which enter parallel to the lens axis to make them pass through the focal point, whereas rays passing through the lens centre are undeflected. In the second diagram, the object distance u is unchanged, but a relatively thin flat port has been placed at a distance p from the entrance pupil, and the object has been immersed in water.

An off-perpendicular ray crossing the water-air boundary is deflected according to

n

where n

The flat port magnifying effect can be quantified as follows:

The magnification of the lens system in air can be expressed in terms of the object distance and focal length [see

m = f / (u - f)

The magnification underwater is given similarly by using the apparent position of the object:

m' = f / (u' - f) . . . . . . . . . . . . . . . (

The magnification due to the port is therefore the ratio of these two quantities:

m

To put this ratio in terms of fixed system parameters, we need to eliminate u'. Referring to the diagram above, note that:

Tanθ

i.e.,

u' = h

also

h

where

h

and

h

Thus:

u' = [ (u - p) Tanθ

i.e.:

u' = (u - p) ( Tanθ

Inserting this result into equation (

m_{p} = |
u - f (u - p) ( Tanθ _{w} / Tanθ_{a} ) + p - f |
. . . . . | (5) |

f = lens focal length

u = distance from object to entrance pupil

p = distance from port to entrance pupil (0 ≤ p ≤ u)

θ

and, using Snell's law (

θ

The first thing to notice about the formula (

As θ → 0 , Tanθ → Sinθ

This allows us to make a substitution using Snell's law, i.e.:

Tanθ

Inserting this into (

m_{p} = |
u - f (u - p) ( n _{a} / n_{w} ) + p - f |
. . . . . | (7) |

n

n

The small-angle formula (

m

i.e., the small-angle magnification is about equal to the refractive index of water. Note incidentally that this condition applies exactly when p = f, i.e., if we substitute f in place of p in equation (

m

Since the port is often located in the vicinity of the front focal point, the assumption that the port gives a small-angle magnification of about 4/3 is generally fairly realistic.

As shown above, the good news for users of lenses of small FOV (such as macro lenses) is that the flat port provides additional magnification. The bad news however is that the magnification so obtained is highly correlated to the refractive index of water, and water is a dispersive medium (i.e., its refractive index is a function of wavelength).

Shown in the table below are data from Kaye and Laby [

Wavelength / nanometres |
Refractive index (n) at 20°C |
Difference from green |

435.84 |
1.340210 |
+0.430 % |

546.07 |
1.334466 |
0 |

632.80 |
1.331745 |
-0.204 % |

Unfortunately, the figures discussed above only apply to lenses of small FOV. As mentioned before, the magnification also depends on the extent to which light rays crossing the port deviate from the perpendicular, and this serves to make matters much worse when a flat port is used with wide-angle lenses.

To work out how bad the chromatic aberration will be in practice, we need to consider the overall magnification (rather than the relative magnification due to the port). This is obtained by combining equations (

m = | f (u - p) ( Tanθ _{w} / Tanθ_{a} ) + p - f |
. . . . . | (8) |

Using the small angle approximation:

Tanθ

we get:

m = | f (u - p) ( n _{a} / n_{w} ) + p - f |
. . . . . | (9) |

Also note that, to find the magnification at the corners of the image, we can equate the angle θ

α

where d is the image format diagonal. When the lens is focused closer than infinity however, the distance from the exit pupil to the image plane is no longer f, but v (the image distance), i.e.,

α = 2Arctan (d / 2v)

Hence, at the corners of the image:

θ

or

Tanθ

The image distance v can be obtained by rearranging the

(1/u') + 1/v = 1/f

After rearrangement, this gives:

v = u' f / (u' - f)

The apparent object distance u' is given by equation (

u' = (u - p) (n

Hence:

v = f [ (u - p) (n

and thus:

Tanθ_{a} = |
d [ (u - p) (n_{a} / n_{w}) + p - f ]2 f [ (u - p) (n _{a} / n_{w}) + p ] |
. . . . . | (11) |

Examining equation (

Graphs of radial chromatic aberration vs. focal length, calculated using equations (

Δm

and

Δm

Note that the severity of the chromatic aberration depends on the image size required for presentation. An aberration of 0.5% at a radius of 10mm corresponds to a displacement of 0.05mm for the chosen colour component of a particular image detail relative to the green component, which will not be noticeable. The same aberration at a radius of 200mm however, corresponds to a displacement of 1mm, which will look bad.

The graph above is for an object distance of 1m, and a port to pupil distance of 25mm. This is fairly representative for compact camera housings, and shows why the corners of the image start to degrade when the zoom lens is set wider than about 35mm.

This graph is for an object distance of 25cm, a situation more typical of macro photography. It shows that, for small object distances, the small-angle aberration increases gradually for very long focal lengths. Hence there is an optimum focal length range, at which the corner aberration is reasonably small and the small-angle abberation has yet to grow. This occurs at around f = 35 to 60mm (35mm equivalent), depending on the value of u.

If you want to inspect the calculations shown above, or repeat them using different parameters, download the Open Document Spreadsheet:

You will need

Note that, with p at a fixed distance from the entrance pupil, as for the model used above; the situation is like that of using a flexible housing (e.g.,

In this diagram, the use of a compound (multi-element, thick) lens is represented by allowing a separation g between the entrance and exit pupils. Note that g is usually negative for wide angle lenses (the exit pupil is placed in front of the entrance pupil), but it can be near zero or positive for macro and telephoto lenses.

Also note here that the ray heading directly for the entrance pupil has been drawn parallel to the ray emerging from the exit pupil, which implies that the lens is optically symmetric (it has the same focal length front and back). This is a fairly reasonable assumption for SLR and system camera macro lenses of focal length ≥50mm.

Since the distance q is fixed (because both the camera body and the port are rigidly attached to the housing), the port to entrance pupil distance p varies as the camera is focused. This variation can be substantial for close-focusing macro lenses used on relatively large format (e.g., 35mm) cameras. To obtain an accurate model for high-resolution underwater macro photography systems therefore, we must derive p from the other parameters.

With reference to the diagram above, observe that:

q = p + g + v

but since both q and g are fixed, let us combine them into a single parameter:

q' = q - g = p + v . . . . . . (

The image distance v , as determined on the assumption that the lens is focused at the centre of the field, was given earlier as equation (

v = f [ p (1 - n

Combining this with (

(q' - p) [ p (1 - n

Multiplying out and moving all terms to the left-hand side gives a quadratic equation in something approaching the standard form:

- p

Now let

A = 1 - n

and multiply throughout by -1 , i.e.:

A p

Now let

B = u (n

and

C = - q' [ u (n

Hence:

p = [ -B ±√(B

Of the two possibilities, it turns out that the +√ solution is the correct one in this case. Hence:

p = [ -B +√(B^{2} - 4AC) ] / 2Awhere A = 1 - n _{a} / n_{w}B = u (n _{a} / n_{w}) - f + A (f - q + g) C = u f (n _{a} / n_{w}) - (q - g) [ u (n_{a} / n_{w}) - f ] |
. . . . (13) |

g = inter-pupil distance

Shown below is a graph of chromatic aberration vs. object distance for a 50mm 1:1 macro lens on the 35mm format. The curves were obtained by using formula (

The parameters for the example simulation were obtained by waving a set of engineer's calipers in the general vicinity of a Canon EF 50mm f/2.8 1:1 macro lens. For that lens, the inter pupil distance g is 10mm, and the entrance pupil is 50mm in from the front of the filter ring. Hence, the lens will hit the port during focusing if q is allowed to be less than 160mm (i.e.; 2×f + g + distance from front of lens to entrance pupil). Hence q was set at 170mm to give some clearance.

Chromatic aberration at large object distances is pretty much as dictated by the differences in the refractive index of water for red, green and blue light. Due to the small FOV, the difference between centre and edge aberration is small, which means that the resulting images respond well to first-order

To view or change the parameters of the calculations used to produce the graph above, download the spreadsheet file:

When the magnification due to an imaging system varies depending on the angle by which a ray passing through the centre of the lens deviates from the axial (perpendicular) direction, the resulting optical defect is known as 'radial distortion'. When there is no distortion, the system is said to be rectilinear; i.e., the image will reproduce straight lines correctly, and it will reproduce right angles correctly provided that object and image planes are parallel. If the magnification diminishes as the central ray moves away from the perpendicular, a rectangular object with its centre aligned on the lens axis will appear barrel-shaped in the image; and if the magnification increases, a rectangular object will appear pincushion-shaped.

For the purpose of modelling the radial distortion due to a flat port, we can represent the system as in the diagram below. This is the same as was used earlier to derive the system magnification, except that we are now also interested in the dimensions of the format and the way in which the deviation from perpendicular varies as we move across the format. Note that it is assumed that a ray travelling along the lens axis strikes the image plane at the exact centre (as is the case for ordinary cameras).

The maximum deviation from perpendicular is marked as θ

Tanθ

where d is the format diagonal. Thus the actual deviation θ

Tanθ

For the purpose of quantifying radial distortion, we can define it as the proportionate difference in magnification between an arbitrary point in the picture and the point at the centre. An expression for magnification in terms of image distance v is given in a separate article [see

m

which can be rearranged:

v = f (m

Using this in (

θ

And using Snell's law as before:

θ

These angles can be used in equation (

m = f / [ (u - p)( Tanθ

Notice here that when θ

When θ

Notice also that if we try to simulate the radial distortion for a lens focused at infinity, this corresponds to m

The set of curves below shows the percentage change in magnification at relative radius r for lenses of 35mm equivalent focal length from 20 to 80mm. The method of calculation is as discussed above. An image centre magnification of 0.1 was chosen as being fairly representative of a wide range of situations encountered in underwater photography. The y-axis is:

Δm /% = 100[ (m / m

We may note that the underwater flat port introduces severe pincusion distortion when used with wide-angle lenses.

To view the calculations or change the parameters, download the spreadsheet file:

No camera is perfect. Consequently, in order to show the optical defects associated with a supplementary optical system (such as an underwater port), it is necessary somehow to remove the defects introduced by the camera lens. This is particularly important when using a zoom lens, because such lenses generally exhibit radial distortion which varies according to the focal length setting. The solution used here was to acquire a set of reference pictures for the camera lens on its own (in air) at specific zoom settings, in each case using a magnification (i.e., the test-card size in the image) similar to that used in the corresponding test picture. The reference pictures were then individually computer-corrected for radial distortion and chromatic aberration [see

The width of the test card is 451mm. The focal lengths marked on the example pictures below are 35mm-format equivalent. For the f = 19mm example, the camera was an Olympus C-5060 with a WCON-07 wide converter in an Olympus PT-020 housing with a PPO-02 flat port. For the examples from 24 to 50mm, the camera was a Canon S100 in a Recsea housing. For the corner detail images, the pictures were resized to 5M pixels (2582 × 1937) before cropping. Hence, assuming that the computer screen being used to view the images has a resolution of 96ppi, the visibility of the chromatic aberration is as it would be when viewing a picture reproduced at a size of 27 × 20" (68 × 51 cm).

According to the theory given earlier, the pincushion distortion due to a flat port will be severe with wide-angle lenses, but the geometry will settle down to something approaching rectilinearity as FOV is reduced. Corner chromatic aberration will also be severe at large FOV, but unlike the overall distortion, it will not tend to zero for zero FOV. Instead, the chromatic aberration settles down at long focal length and large object distance in such a way that the radial displacements become proportional to the diffences in the refractive indeces of water for red, green and blue light.

The theoretically predicted trends are clearly visible in the example pictures. They lead to the already well-established conclusion that flat ports are unsuitable for use with wide-angle lenses; but also underline a less-obvious point, which is that the chromatic aberration will always be visible in large prints and displays, even when the lens FOV is small. Some supplementary lens systems can (in principle, if not always in practice) compensate for this deficiency, but in the absence of an optical cancellation method, the solution is to apply

DWK

[

See p108, 'Calibration of liquid refractometers'.

© Cameras Underwater Ltd.

David W Knight asserts the right to be recognised as the author of this work.

Photographs by Steve Knight and David Knight.

.