Lens and imaging work done in millimeters

Camera lenses, microscope objectives and machine vision optics are described in millimeters: focal length, sensor size, working distance. Calculations in SI, and quantities such as lens power in diopters, come out in reciprocal meters. An optical designer who has to feed the power of a lens or the attenuation of a material into a millimeter-based model needs the same number per millimeter. This page multiplies a value in m⁻¹ by 0.001 and returns mm⁻¹. Working in one length unit through the whole model removes the most common cause of a thousandfold slip between a datasheet and a script. A short example is a sensor model that stores the lens power as 0.02 per millimeter, while the lens maker prints 20 diopters on the barrel, and both describe one lens.

A thousand millimeters in a meter

One meter is 1,000 mm, so one unit per meter is one thousandth of a unit per millimeter. The formula is mm⁻¹ = m⁻¹ × 0.001, and it is exact under the SI definitions of the meter and the milli prefix. By hand, move the decimal point three places left: 20 m⁻¹ is 0.02 mm⁻¹, and 4,500 m⁻¹ is 4.5 mm⁻¹. Going the other direction multiplies by 1,000, so 0.02 mm⁻¹ is 20 m⁻¹. The SI Brochure from the BIPM lists the prefixes and the meter, and the factor needs no other input. The direction is easy to check by size: a count per longer unit is always larger, so the figure per meter exceeds the figure per millimeter.

Wavelength and attenuation readings of 10 m⁻¹

The page starts with 10 m⁻¹ and returns 0.01 mm⁻¹. As a wavenumber, 10 m⁻¹ corresponds to a wavelength of 10 cm, so the value is a microwave-scale quantity. As an attenuation coefficient it means that intensity falls to 1/e over 0.1 m, which is 100 mm. Both readings give a small number per millimeter because a millimeter is a short length compared with the scale of the quantity. The default is therefore a gentle example, and results stay near one only for quantities that vary over a few millimeters, such as optical absorption in a dense medium. If your own number is 10 m⁻¹ and you want a figure near one, a centimeter or a meter scale would suit it better than a millimeter.

Diopters and the 50 mm lens

A lens with focal length f in meters has a power of 1/f in diopters, and a diopter is one reciprocal meter. A 50 mm camera lens therefore has a power of 20 m⁻¹, which the page converts to 0.02 mm⁻¹, the reciprocal of 50 mm. A reading lens of 4 diopters has a focal length of 250 mm and a power of 0.004 mm⁻¹, and eyeglasses of 2.5 diopters correspond to 0.0025 mm⁻¹. Lens power is a vergence, not a wavenumber, yet it shares the unit, so the same factor applies. Keep the quantity name in your notes, since the conversion is unit-only. A 35 mm lens has about 28.6 diopters and a 100 mm lens has 10, which in mm⁻¹ gives 0.0286 and 0.01.

Attenuation of X-rays in water

The linear attenuation coefficient of water for X-ray photons near 60 keV is roughly 20 m⁻¹, which is 0.02 mm⁻¹, an illustrative value in the range quoted in imaging physics. Over a 100 mm path the exponent is 2, and the transmitted fraction is about 13.5 percent. Imaging software often takes coefficients in mm⁻¹ because voxel sizes are in millimeters, while reference tables use cm⁻¹ or m⁻¹. The page changes only the unit. The coefficient depends on photon energy, so a number taken at the wrong energy will give the wrong answer no matter how it is converted. Bone and metal implants have much larger coefficients, so a single water value cannot stand in for a whole body.

From mm⁻¹ to m⁻¹

Select reciprocal millimeters as the source and reciprocal meters as the target for the reverse. The factor is 1,000. A coefficient of 0.0206 mm⁻¹ becomes 20.6 m⁻¹, and 0.004 mm⁻¹ becomes 4 m⁻¹, which is 4 diopters. This is the direction needed when a model run in millimeters has to be reported against an SI standard or a table. A short check: the number of digits to the left of the decimal point should grow by three when you go from mm⁻¹ to m⁻¹. If the result is smaller than the input, the units are in the wrong order.

Spatial frequency and line pairs

Resolution targets for lenses and sensors are specified in line pairs per millimeter, a spatial frequency in mm⁻¹. In SI units that is a count per meter, so 50 line pairs per millimeter is 50,000 m⁻¹. The page converts 50,000 m⁻¹ to 50 mm⁻¹. Do not confuse a line pair, which is one light and one dark line, with a single line, as some vendors count lines. The conversion is a unit change, and the definition of the count remains the one in the chart or datasheet you are using. Photographers see the same unit in lens reviews, where charts of contrast against frequency run out to a few tens of line pairs per millimeter on full-frame sensors.

Different quantities with one unit

Reciprocal length covers wavenumber, absorption coefficient, lens power, spatial frequency and others. They have different meanings and different formulas, so you cannot add or equate them just because the units match. An absorption coefficient of 20 m⁻¹ and a lens power of 20 m⁻¹ are unrelated. When you convert, record both the quantity and the unit in your table, for example attenuation coefficient (mm⁻¹). This page returns a number and a unit and does not know what the number describes.

Rounding and extreme values

The factor 0.001 keeps every significant digit, so the number of significant figures in the result equals that of the input. A value of 4,500 m⁻¹ with two significant figures becomes 4.5 mm⁻¹, not 4.500. Very small or very large inputs may appear in scientific notation. A result of 1e-5 means 0.00001. Check the exponent before reading the digits. Whether a coefficient suits a particular material, energy or wavelength is outside what a unit conversion can decide, so use the source of the number for that. If a spreadsheet displays 2E-05, read it as 0.00002 and keep the unit label in the next cell.