Method Article

Focus Stacking Protocol for High-Resolution Insect Photography

DOI:

10.3791/70583

June 2nd, 2026

In This Article

Summary

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The objective is to offer an accessible, standardized focus stacking method for insect photography, using affordable equipment to create sharp, high-resolution images for taxonomy, biodiversity research, ecological studies and public outreach.

Abstract

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Here, we present a protocol to acquire high resolution, extended depth of field images of insect specimens by photographic focus stacking using a modular digital imaging system. The method provides a standardized workflow linking equipment assembly, calibration, image acquisition, and post processing. Using a full frame mirrorless camera (61 MP) coupled to microscope objectives and synchronized strobe illumination, the protocol achieves pixel scales from 0.76 m–0.19 m and produces artifact free composites through sub-micron focus increments (0.2 m). The procedure can capture and process approximately 20 final images per week under routine laboratory conditions. Compared with existing stacking solutions, this low-cost hybrid setup (< 30% of the cost of commercial systems) maximizes accessibility while maintaining diffraction limited image quality. Representative applications include the production of color calibrated identification plates for taxonomy, biodiversity digitization, and outreach. The protocol’s standardized structure facilitates reproducibility across laboratories and field stations, supporting large scale insect imaging campaigns in both resource limited and institutional environments.

Introduction

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Insects represent the most diverse group of organisms on Earth and play critical roles in ecosystem functioning1. Yet, global assessments indicate alarming declines in their abundance and diversity worldwide2,3. Accurate imaging of insect morphology is essential to taxonomy, ecological monitoring, and conservation, particularly in biodiversity-rich tropical regions where many taxa remain undescribed4. However, conventional macrophotography remains constrained by limited depth of field, which prevents a single image from encompassing fully sharp three‑dimensional structures such as antennae or wings5.

Efforts to photograph insects for scientific purposes date back more than a century, with early methodological descriptions emphasizing the inherent difficulties of capturing fine morphological details6. Conventional macrophotography, although widely used, remains constrained by the shallow depth of field achievable at high magnification7,8. This limitation makes it difficult to document three-dimensional structures such as antennae, legs, or wings, resulting in images that lack the resolution required for accurate identification or morphological analysis.

Advances in digital photography and image processing have enabled significant progress. Focus stacking, where multiple images taken at different focal planes are merged to produce a fully sharp composite, has emerged as a particularly effective approach9. Its value for entomology by comparing commercial set-ups with low-cost semi-automatic solutions, highlights its potential for large-scale digitization of type specimen approach9. Subsequent work has explored the use of compact, affordable cameras equipped with focus stacking functions, showing that the approach can be extended beyond well-funded institutions to support wider digitization projects10.

Focus stacking—combining sequential images taken at different focal planes to produce one extended focus composite—has become a practical solution6. Early comparative studies7showed that even low-cost semi-automatic systems can approach the performance of commercial microscopes, but a standardized, reproducible protocol suitable for resource limited laboratories is still lacking. Alternative 3 D imaging methods such as DISC3D8 provide precise models but require specialized hardware and complex reconstruction software, limiting their accessibility.

Here, we present a protocol optimized for insect specimens that balances image quality, cost, and portability. The system integrates widely available optical and mechanical components with rigorous color calibration and post processing steps. Its suitability extends from museum digitization to semi-permanent field stations, enabling researchers to produce reproducible images without reliance on proprietary equipment or high-cost automated microscopes. This
study fills a methodological gap by offering a validated, open workflow
aligned with emphasis on transparency and reproducibility.

Access restricted. Please log in or start a trial to view this content.

Protocol

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

1. Equipment set up

  1. Design a modular imaging system that integrates high-end optical components with affordable and widely available equipment (Supplementary File 1)
  2. Combine precision mechanics, controlled illumination, and advanced optics to achieve high-resolution focus stacking while maintaining flexibility for different insect sizes and morphologies.
  3. Use the following core components.
    1. Camera
      1. Use a high-resolution full-frame digital camera with strong dynamic range to capture fine morphological structures in detail.
      2. Mount the camera on a highly specialized focusing rail (Supplementary File 1)
    2. Optics
      1. Use infinity-corrected microscope objectives with magnifications such as 5X, 7.5X, 10X, and 20X (Supplementary File 1), mounted on a tube system.
      2. Complement the objective setup with an ultra-macro lens for larger specimens.
      3. Include lens tubes of different magnification levels as needed (Supplementary File 1)
    3. Illumination
      1. Install two studio flash units in the rear upright position to provide consistent and powerful lighting.
      2. Position two high-speed flash units in the front at an angle to enable short flash duration and fast recycling time.
      3. Mount the lights on adjustable stands to achieve uniform, shadow-free illumination (Supplementary File 1).
      4. Place a diffuser in front of the lens to soften the light and reduce harsh shadows (Supplementary File 1).
    4. Support system
      1. Set up an antivibration table to minimize vibration during image capture.
      2. Use a tripod support and a black nonreflective background to reduce vibrations and reflections.
      3. Add a specialized macro rail to stabilize the camera in the stacking system (Supplementary File 1).
      4. Use a three-axis rotary positioning (Supplementary File 1) device to align and position the subject precisely.
      5. Use a precision micrometric adjustment stage to make fine mm-scale macro adjustments.
    5. Focusing system
      1. Operate a stepping motor-controlled focusing rack through a dedicated control unit and network cable.
      2. Adjust movement increments as finely as 0.2 µm to ensure precise depth sampling for focus stacking.
      3. Use a cylindrical black tunnel to control light direction and reduce reflections when imaging very small subjects (Supplementary File 1).
      4. Use a trigger to synchronize flash firing precisely with the camera shutter (Supplementary File 1).
    6. Computing and accessories
      1. Use a high-performance laptop with at least 128 GB RAM for image processing.
      2. Use a fast memory card reader, a graphics tablet, and a high-precision mouse to accelerate post-processing.
      3. Carry two high-capacity memory cards to ensure sufficient storage for field operations.
  4. Assemble the system from components sourced from multiple manufacturers to create a custom hybrid setup optimized for insect imaging.

2. Color calibration

  1. Reduce stray light and color inaccuracies by surrounding the camera setup with black-painted walls.
  2. Use a standardized daylight illuminant at 6500 K to mimic daylight and maintain consistent imaging conditions.
  3. Perform camera calibration.
    1. Calibrate the camera using a standardized color reference chart.
    2. Photograph the color reference chart under the same daylight-balanced lighting used for the insect specimens.
    3. Generate a custom color profile using color calibration software.
    4. Apply the custom color profile during post-processing to correct lens and lighting variations.
  4. Perform monitor calibration.
    1. Calibrate the monitor using a color management device.
    2. Calibrate the editing monitor with a colorimeter and profiling software.
    3. Set the monitor calibration to gamma 2.2 and white point D65 to match the imaging conditions.
  5. Maintain this dual calibration workflow to preserve color accuracy from capture to final output.

3.Stacking

  1. Mount each specimen on adjustable supports to ensure stable positioning.
  2. Acquire images using the motorized focusing rack.
  3. Adjust step sizes between 0.2 and 2 µm according to specimen size and required depth of field.
  4. Capture between 50 and 2,000 images across the focal range for each specimen.
  5. Synchronize illumination with camera exposure to minimize motion blur.
  6. Store raw image files on memory cards and transfer them to the processing computer immediately after acquisition.

4.Software

  1. Transfer the raw files to image management software for initial organization.
  2. Select all images and apply the camera-specific color profile to preserve color accuracy.
  3. Export the images as high-resolution TIFF files.
  4. Process the TIFF files in focus-stacking software.
  5. Test the available stacking methods according to specimen complexity.
    1. Use a contrast-based averaging method when working with simple, uniform subjects.
    2. Use a depth-map-based method when you need the best balance of sharpness and artifact reduction (Supplementary File 1).
    3. Use a pyramid-based method when you need to capture fine details and complex edges while monitoring for haloing artifacts.
  6. Apply the hybrid workflow.
    1. Process the original image stack first with the depth-map-based method to create an intermediate composite with strong overall sharpness and color fidelity.
    2. Save the first intermediate output.
    3. Reprocess the original stack with the pyramid-based method to create a second composite emphasizing edge detail.
    4. Save the second intermediate output.
    5. Load both intermediate outputs as a new stack in the focus-stacking software.
    6. Apply the depth-map-based method again to merge them into a final composite that combines the strengths of both methods while minimizing artifacts.
  7. Refine the stacked image in image editing software.
    1. Remove the background, correct artifacts, and verify color calibration.
    2. Make subtle contrast and brightness adjustments to improve morphological visibility.
    3. Log every post-processing step to ensure reproducibility.
    4. Use a graphics tablet to improve precision during advanced editing.
  8. Use the following tools during advanced editing.
    1. Use a freehand selection tool to select irregular areas for targeted edits.
    2. Use a darkening tool to reduce overexposed or uneven regions selectively.
    3. Use a navigation tool to move and reposition the image during detailed editing.
    4. Use a healing or correction brush to remove blemishes, dust marks, and minor imperfections.
  9. Produce a fully sharp, publication-quality image while maintaining efficiency in resource-limited settings.
    (Place Supplementary File 1 here)

5. Preparation and setup

  1. Assembling the imaging workstation
    1. Place a vibration-damping table on a stable surface.
    2. Position a camera mounting rail at the center of the table.
    3. Fix the digital camera body onto the rail using a rigid plate adapter.
    4. Attach the selected microscope objective (5×–20×) or macro lens via the appropriate tube adapter.
    5. Install two rear and two frontal light sources equipped with diffusers to create uniform illumination.
    6. Mount the subject support (XYZ stage or rotary holder) directly beneath the lens axis.
      ​NOTE: PAUSE POINT: The complete hardware arrangement can remain assembled indefinitely if it is covered to protect it from dust.
  2. Verifying system alignment
    1. Ensure that the optical axis is perpendicular to the specimen plane.
    2. Adjust the horizontal and vertical levels using the stage micrometers until reflections are symmetrical.
    3. Confirm that illumination is homogeneous across the field; realign diffusers as needed.

6. Color calibration

  1. Setting lighting and environment.
    1. Use diffused light at ~6500 K (daylight equivalent).
      1. Minimize ambient reflections by surrounding the setup with dark, matte surfaces.
    2. Calibration of color
      1. Photograph a 24-patch color reference chart under the imaging light.
      2. Generate a camera profile using the companion calibration software.
      3. Apply this profile to all subsequent raw images during conversion.
      4. Calibrate the display monitor to γ = 2.2 and white point D65 to ensure consistent color rendering through the workflow.

7. Specimen mounting and focusing

  1. Preparation of specimens.
    1. Fix dried or ethanol‑preserved insects on a soft mounting base such as modeling clay.
    2. Orient the specimen according to the desired view (dorsal, lateral, ventral, or frontal).
    3. Position the support centered under the optical axis.
  2. Adjustment of focus‑stack spacing
    1. Define the beginning and end of the focal range with the nearest and farthest sharp planes.
    2. Program incremental movement between 0.2 µm and 2 µm depending on magnification.
    3. Synchronize the capture trigger so that illumination fires simultaneously with each image exposure.
    4. Capture sequences of 50–2000 images according to specimen size and depth.
      NOTE: PAUSE POINT: Capture may be paused safely between sequences.

8. Image Processing

  1. Convert and organize raw images.
    1. Transfer files to a local computer immediately after acquisition.
    2. Group each stack into a unique folder using incremental numbering.
    3. Apply lens and color correction profiles, then export images as 16-bit TIFF files.
    4. Stacking of images
    5. Open the TIFF stack in focus stacking software.
    6. Choose a depth map algorithm (equivalent to “Method B”) for the first composite.
    7. Optionally re-stack using an edge enhancement algorithm (“Method C”) and merge both outputs to maximize sharpness while reducing halos.
    8. Save the final composite in a lossless format.
  2. Post-processing of images
    1. Open the composite in an image editing program.
    2. Remove background artifacts and dust using selection and healing tools.
    3. Adjust overall brightness and contrast to improve the visibility of morphological features.
    4. Document every adjustment to ensure traceability.
      Note: PAUSE POINT: The cleaning stage can be resumed later without data loss.

9. Quality assurance and storage

  1. Inspect the final image at 100% magnification to verify that no stacking misalignments or color shifts remain.
  2. Record all imaging parameters (magnification, step size, exposure, software versions) in the metadata sheet.
  3. Store raw, intermediate, and final files on redundant drives; maintain a digital logbook.

Access restricted. Please log in or start a trial to view this content.

Results

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Validation of Image Quality and Resolution

The focus stacking system produced fully sharp, high contrast composites across magnifications from 5×–20×. Calculated pixel scales ranged from 0.76 µm (5×)–0.19 µm (20×) in object space, confirming adequate sampling for sub-micron structural details of insect cuticle and appendages. Representative stacks of 800–2000 frames demonstrated consistent in-plane sharpness without halo artifacts. The protocol-maintained alignment precision w...

Access restricted. Please log in or start a trial to view this content.

Discussion

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Optimal performance of the focus‑stacking procedure depends on (i) complete isolation of the setup from vibration, (ii) precise focus‑rail calibration at sub‑micron increments, and (iii) consistent color calibration. Any deviation from these parameters significantly increases halo formation and color shifts9. The combination of mechanical stability and standardized illumination represents the single most critical determinant of image quality.

Troublesh...

Access restricted. Please log in or start a trial to view this content.

Disclosures

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The authors declare no conflicts of interest.

Acknowledgements

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

We thank the Medical and Veterinary Entomology Unit of the Institut Pasteur du Cambodge for field sampling and technical assistance, and the Cambodian Entomology Initiatives (Royal University of Phnom Penh) for access to reference collections. We also acknowledge Pierre‑Olivier Maquart and Flavien Cabon for taxonomic consultation, and Eric Deharo (IRD) for scientific support.

Access restricted. Please log in or start a trial to view this content.

Materials

List of materials used in this article
NameCompanyCatalog NumberComments
Support tablePreferentially 3 podsStable base for the entire set-up150
Antivibration tableCustomMinimizes vibrations during image capture3,200
Cylindrical black tunnelCustomControls light direction350
Reduces reflections for small subjects
Novoflex CASTEL-MICRO focusing rack (macro rail)Stepping motor–controlled, control unit, network cable, Euro AC adapterSub-micron precision focusing (0.2 µm steps);3,000
automates camera movement
XYZ rotaryAdjustable mountMeticulous subject alignment and positioning500
CameraSony Alpha 7R IV (61 MP full-frame)High-resolution image capture3,000
Illumination2× Godox SK300IIUniform, shadow-free lighting;400
Illumination2× Godox QT600IIhigh-speed with short flash duration1400
Flash stands3 adjustable standsFlexible positioning of lights100
Light modifierDiffuserSoftens light and reduces harsh shadows50
Background“Black hole” velvetEliminates reflections, provides uniform background200
Microscope objectivesMitutoyo Plan Apo Infinity Corrected: 5×High-quality magnification for microstructures1,000
Mitutoyo Plan Apo Infinity Corrected: 7.5×2,000
Mitutoyo Plan Apo Infinity Corrected: 10×1,400
Mitutoyo Plan Apo Infinity Corrected: 20×5,000
Lens tube systemDirect camera use of Mitutoyo M-Plan lenses (2x, 5x, 7.5x, 10x, 20x)Coupling microscope objectives to camera400
AdapterSony E-mount to NOVOFLEX universal bayonet AMechanical connection of camera and optical system300
Macro lensVenus Optics Laowa 100 mm f/2.8 2× Ultra Macro APO (Sony E-mount)Imaging larger specimens at high magnification550
TriggerFlash triggerSynchronizes flash with camera shutter50
ComputerASUS or Alienware laptop, ≥128 GB RAM, high-performance processorImage processing and storage3,000
Storage media2× SD 256 GB, fast SD card readerSecure high-volume image storage and transfer200
AccessoriesGaming mousePrecision during editing and navigation50
AccessoriesWacom One (graphic tablet)Fine control during image cleaning and editing500
Total cost26,800

Reprints and Permissions

Request permission to reuse the text or figures of this JoVE article

Request Permission

Tags

High Resolution ImagingExtended Depth FieldDigital Imaging SystemMicroscope ObjectivesStrobe IlluminationImage AcquisitionPost ProcessingBiodiversity Digitization
Video Coming Soon

Related Articles