Lenses & opticsGuide

Neutral density filter optical density: sizing attenuation

Calculate neutral density filter optical density from exposure measurements, convert transmission and stops, and check aperture, spectrum, and safety.

LumaSpec Vision10 min read Share on LinkedIn

On this page 10 sections
  1. 01Choose attenuation after fixing the imaging requirements
  2. 02Convert transmission, optical density, and stops
  3. 03Measure an unclipped, linear reference
  4. 04Work through an attenuation example
  5. 05Preserve the aperture needed for useful detail
  6. 06Check neutrality across the camera's useful wavelengths
  7. 07Treat incident energy as a separate requirement
  8. 08Check lens compatibility and supporting parts
  9. 09Verify the installation before accepting it
  10. 10Questions

A bright scene can saturate a camera even after exposure and gain reach their useful limits. Closing the iris further may sacrifice the detail your inspection needs. For inspection designers and integrators, neutral density attenuation offers another control: reduce incoming light while retaining the chosen aperture. The practical task is to calculate the attenuation, verify its wavelength dependence, and confirm that the filter can tolerate the incident energy.

Choose attenuation after fixing the imaging requirements

Use a neutral density filter when you need less light without changing the aperture, illumination geometry, or validated exposure timing. First establish the exposure that controls motion blur and source flicker. Then select an aperture that provides sufficient depth of field without losing necessary detail to diffraction.

Reduce unnecessary electronic gain before adding attenuation. If you control the illuminator, reducing its output may be simpler than fitting another optical component. However, confirm that changing output does not alter pulse timing, uniformity, or the feature contrast being inspected.

The broader optical-filter selection guide explains when wavelength selection is more useful than broad attenuation. Neutral density is the appropriate starting point when the useful image is already present but excessively bright.

Do not treat a clipped image as an exposure meter. Saturation tells you that the signal exceeded the recording range, not how far it exceeded that range.

Convert transmission, optical density, and stops

Transmission is the fraction of incident light that passes through a filter. Optical density expresses attenuation logarithmically. Stops express the same reduction in successive factors of two.

T = transmitted light / incident light OD = -log10(T) T = 10^(-OD) attenuation factor A = 1 / T = 10^OD stops n = log2(A) = OD / log10(2) OD = n × log10(2)

Enter transmission as a fraction, not a percentage. For example, 10% transmission means T = 0.10, giving OD = -log10(0.10) = 1.

Optical density Transmission Attenuation factor Stops removed
0.30 50.1% 2.00 approximately 1.00 approximately
1.00 10% 10 3.32
2.00 1% 100 6.64
3.00 0.1% 1,000 9.97

The table uses rounded values. Exactly one stop corresponds to OD approximately 0.301, rather than exactly 0.30.

Check the meaning of every filter label. An attenuation factor of 8 corresponds to three stops and OD approximately 0.903. A label containing the number 8 does not, by itself, establish which convention applies.

For successive filters, optical densities add and transmissions multiply, assuming their quoted values apply at the wavelengths involved. Two filters each having OD 1 therefore give a nominal combined OD 2, not OD 1 with twice the transmission.

Measure an unclipped, linear reference

A usable attenuation calculation starts with a reference image containing measurable signal. Disable automatic exposure, gain, iris adjustment, gamma, and tone mapping where possible. Record raw or otherwise verified linear pixel values.

Keep the source geometry, aperture, and camera position unchanged. If the image remains clipped at the shortest usable exposure, use a filter with known transmission to obtain the reference. For intense sources, establish a suitable protective optical arrangement before exposing the camera; do not use the sensor as a damage detector.

Measure a representative bright feature, not simply the average of the whole frame. Include highlights that matter to the inspection, while distinguishing them from isolated defective pixels.

Subtract the camera's dark offset before comparing signals:

S_reference = measured reference value - dark offset S_target = desired value - dark offset OD_final = OD_reference + log10(S_reference / S_target) + log10(t_production / t_reference)

This estimate assumes linear response, constant gain and aperture, stable source output, and signal proportional to exposure duration. If the reference uses no filter, OD_reference is zero.

Pulsed or fluctuating sources can violate the exposure-duration assumption. In those cases, compare images using the same integration timing and repeat measurements across the source cycle. The guide to automatic iris, exposure, and gain control explains why interacting controls can obscure this diagnosis.

Work through an attenuation example

Assume a verified reference filter has OD 1.00 over the relevant wavelength band. At the intended production exposure, the bright inspection feature records 2,500 digital counts. A dark measurement under the same camera settings records 100 counts.

The desired operating value is 1,300 counts, leaving headroom for source and part variation. These values are illustrative application measurements, not camera specifications.

S_reference = 2,500 - 100 = 2,400 counts S_target = 1,300 - 100 = 1,200 counts additional attenuation factor = 2,400 / 1,200 = 2 additional OD = log10(2) = 0.301 final OD = 1.00 + 0.301 = 1.301 final transmission = 10^(-1.301) = 0.05 = 5% final attenuation factor = 1 / 0.05 = 20 stops removed = log2(20) = 4.32

The calculation calls for approximately OD 1.30 total attenuation. It does not call for adding another OD 1.30 to the reference filter.

If the reference exposure differed from production exposure, include that ratio. Increasing exposure from 50 microseconds to 200 microseconds introduces another factor of 200 / 50 = 4, requiring an additional OD of log10(4) = 0.602 under the stated linearity assumptions.

Choose the final operating target from measured process variation. For example, a predictable 20% increase in source brightness requires corresponding headroom below clipping. A filter selected only for the average part may still saturate on the brightest acceptable part.

Preserve the aperture needed for useful detail

Closing the iris reduces light, but also changes depth of field and diffraction. A neutral density filter lets you retain an aperture chosen for image quality rather than brightness alone.

For a circular aperture, an approximate diffraction-limited Airy disk diameter at the image plane is:

d_Airy ≈ 2.44 × wavelength × image-side effective f-number

For a simple distant-object estimate at 550 nm, using nominal f-numbers gives approximately 5.4 micrometers at f/4 and 21.5 micrometers at f/16. These are theoretical diffraction figures, not predictions of a complete lens's performance. Aberrations, wavelength range, sampling, and close-focus effective aperture also matter.

Stopping down can therefore improve focus tolerance while reducing fine-detail contrast. The relevant question is whether the smallest required feature remains distinguishable across the full permitted part-height range.

Depth of field around the focus plane Light from the lens converges on the focus plane. In front of and behind it, each point spreads into a blur circle; the zone where that blur stays below about a pixel or two is the depth of field. A smaller aperture gives a narrower cone and a deeper zone.depth of fieldfocus planeapertureoutside it, pointsblur into circleswide aperture: steep cone, shallow zonesmall aperture (high F#): deeper zone
Depth of field around the focus plane. Light from the lens converges on the focus plane. In front of and behind it, each point spreads into a blur circle; the zone where that blur stays below about a pixel or two is the depth of field. A smaller aperture gives a narrower cone and a deeper zone.

Use a depth-of-field estimate to plan the test, then verify it with representative features at the near and far limits. A geometric estimate alone does not establish inspection accuracy.

Depth of field and diffraction
Units
Depth of field
– mm
About the focus plane
– mm
Diffraction limit
– F/#
Blur limit
– µm
Diffraction spot
– µm
At this F-number
–

DOF ≈ 2 × N × c × (1 + m) / m², c = allowed blur × pixel size. Diffraction spot (Airy disk) ≈ 2.44 × wavelength × N × (1 + m); past the diffraction limit it is larger than the blur you allowed.

Browse lenses by aperture and format Open the full calculator

The explanation of object-space pixel size from magnification connects sensor sampling to part detail. For measurement applications, also check camera resolution for dimensional inspection before treating smaller pixels as a remedy for optical blur.

Check neutrality across the camera's useful wavelengths

Neutral density does not guarantee perfectly flat transmission at every wavelength. Ask for the transmission curve over the combined wavelength range of the source, lens, and detector.

For monochrome inspection under narrowband lighting, transmission near that illumination wavelength may dominate the decision. For broadband or color inspection, wavelength-dependent transmission can alter channel balance and change the contrast between different materials.

A camera may also respond outside the visible band. A filter that appears dark to the eye can still transmit wavelengths that contribute substantial camera signal. Assess the complete optical stack, including any existing blocking filter, rather than judging attenuation by appearance.

Measure each relevant color channel independently and check it for clipping. Automatic white balance can conceal a transmission imbalance in the displayed image without restoring lost signal quality.

Two crossed polarizers are not a general substitute for a specified fixed-density filter. Their attenuation depends on polarization, wavelength, and alignment. They may also change the appearance of reflections or stressed transparent materials. Use that arrangement only when those effects are part of the validated inspection method.

When combining filters, inspect for reflections, ghost images, and angle-dependent transmission. A numerically correct density does not guarantee an unchanged inspection image.

Treat incident energy as a separate requirement

Optical density describes transmitted light, not the maximum energy a filter can accept. An absorbing filter converts part of the incident radiation into heat. A reflective design redirects energy and can create a hazardous reflected beam or an unwanted optical path.

Before selecting a filter for a high-radiance source, establish the relevant wavelength range, beam size, incident power or energy, exposure duration, and pulse characteristics. Obtain documented suitability for that operating condition from the component's manufacturer or authorized distributor.

Do not assume that achieving an acceptable image also establishes adequate camera protection. Radiation outside the measured camera band can still load the filter or other optical components. Mounting materials, coatings, adhesives, and downstream optics may impose separate limits.

If the source presents an eye or skin hazard, use the applicable documented safety design and qualified assessment. Do not look through the imaging stack to judge whether its attenuation is sufficient.

Check lens compatibility and supporting parts

Start with the required clear aperture, mounting thread, available clearance, and permitted filter location. A front-mounted filter must pass the full imaging ray bundle without introducing unacceptable vignetting. Wide-angle arrangements deserve particular attention because peripheral rays reach the filter at larger angles.

The lens accessories category and accessories finder provide a starting point for mounting components and inspection targets. The supplied catalog information does not establish a neutral density filter specification, so confirm density, transmission curves, and energy limits before choosing an attenuation component.

For the imaging lens itself, the LS-FFL-0567 is a 16 mm, 1.1", C-mount lens with an F2.8-22 aperture range. This is a lens example, not a neutral density filter recommendation. Its listed mount does not establish the front filter thread or compatibility with a particular filter holder.

Machine vision lenses16 mm, 1.1", 20 MP, C-mount machine vision lens, F2.8-22, <0.3% distortion (LS-FFL-0567)LS-FFL-0567
Type
Machine vision fixed
Sensor format
1.1"
Mount
C-mount
Resolution
16-25 MP
$679.00View partBuild a system with it

Compare sensor coverage and focal length using the machine vision lenses category or lens finder. Keep your application working distance separate from the product's published specifications.

A repeatable target helps reveal whether adding the filter changes focus, contrast, or usable image area. The LS-LXR-0029 is a 76 x 76 mm dot-grid calibration target with a 0.5 mm dot diameter. Its dot diameter is not a statement of grid spacing, and the target is not a calibrated transmission reference.

Lens accessoriesCalibration boards and depth-of-field rulers, dot diameter 0.5 mm, dot grid, 76 x 76 mm (LS-LXR-0029)LS-LXR-0029
Type
Calibration targets
$189.00View partBuild a system with it

Check calibration-target coverage margins when selecting a target for the complete field. Use suitable reference features to compare image quality before and after installing the filter.

Verify the installation before accepting it

Use this checklist with automatic controls disabled and production settings recorded:

  • Confirm the installed total optical density and its applicable wavelength range.
  • Measure dark-corrected signal on the brightest required inspection features.
  • Check clipping across relevant channels, part variation, and source operating states.
  • Compare center and corner brightness for new vignetting or shading.
  • Check focus and feature contrast at the permitted near and far part positions.
  • Inspect for ghost images, flare, and changes in reflection contrast.
  • Repeat measurements after the source and optical arrangement reach normal operating conditions.
  • Confirm documented incident-energy suitability independently of image quality.
  • Save the aperture, exposure, gain, filter identification, and acceptance images with the inspection setup.

Recalculate attenuation if the source, wavelength, exposure timing, or aperture changes. If only one localized reflection causes saturation, changing illumination geometry may preserve more useful signal than darkening the entire image.

For the next step, use the lens configuration workflow to establish the imaging geometry, or request application support with your measured signal ratio, required wavelengths, mounting constraints, and incident-energy conditions.

Questions

What does optical density mean on a neutral density filter?

Optical density is the negative base-ten logarithm of fractional transmission. OD 1 transmits 10% of incident light, while OD 2 transmits 1%. It describes attenuation within the specified wavelength conditions; it does not establish thermal capacity, eye protection, or compatibility with a particular lens.

How do you convert optical density into stops?

Divide optical density by approximately 0.301 to obtain stops. For example, OD 0.90 removes approximately three stops, corresponding to about one-eighth transmission. Check the labeling convention because a stated attenuation factor is not the same number as optical density.

Can a saturated image tell me which filter density to order?

Not directly. A clipped pixel does not reveal the amount of excess illumination. Obtain an unclipped reference using suitable exposure settings or a filter with verified transmission, then compare dark-corrected signals. Keep gain, aperture, source conditions, and processing fixed during the comparison.

Can I stack neutral density filters to reach the required attenuation?

Stacking multiplies transmissions and adds optical densities at each wavelength. However, additional surfaces can introduce reflections, vignetting, and transmission changes. Verify the complete stack mechanically, optically, and thermally rather than relying only on the arithmetic, particularly with intense or polarized sources.

Does a dark camera image prove the filter provides adequate protection?

No. Image brightness alone cannot establish safe operating conditions. A filter can attenuate the camera's useful wavelengths while transmitting other radiation or absorbing excessive energy. Confirm documented incident-energy limits and use separately specified safeguarding and personnel protection appropriate to the source.