What is it about?
When scientists look at cells under a fluorescence microscope, they often see a "fog" or blurry background that hides the real structures they want to study. This happens because the microscope captures light not just from the focused layer, but also from above and below it. Traditionally, researchers had to buy expensive hardware upgrades (like confocal or light-sheet microscopes) or use complicated physical methods to remove this fog. Our team developed a new software method called Dark Sectioning that can automatically remove this blurry background from fluorescence microscope images. The idea came surprisingly from a technique used in outdoor photography to remove haze from landscape photos. We adapted this "dark channel prior" concept for microscopy by combining it with frequency-domain separation and knowledge about how microscopes focus light. Dark Sectioning works with almost any type of fluorescence microscope—including wide-field, confocal, two-photon, light-sheet, STED super-resolution, and structured illumination microscopy (SIM). It requires only a single image (no need for multiple exposures or special hardware) and can be applied as a post-processing step to existing data. In tests, it improved image clarity by nearly 10-fold and made it much easier for computers to automatically identify and count cells or organelles in thick tissue samples—such as neurons in mouse brain tissue, nuclei in prostate cancer sections, and mitochondria in living cells. We have made the software freely available as open-source code (Fiji plugin, MATLAB, and Windows executable) so that any researcher can use it without purchasing new equipment.
Featured Image
Photo by National Cancer Institute on Unsplash
Why is it important?
Removing out-of-focus background has been a persistent challenge in fluorescence microscopy for decades. Existing solutions force researchers into difficult trade-offs: expensive hardware upgrades, reduced imaging speed, photobleaching of delicate samples, or limited compatibility with specific microscope types. Dark Sectioning is unique because it is universal, hardware-free, and high-fidelity. Unlike denoising or deconvolution methods that address different problems, Dark Sectioning specifically targets and removes out-of-focus background while preserving weak in-focus signals. It outperforms commercial solutions (such as Leica's ICC algorithm) and open-source alternatives (Rolling Ball, Sliding Paraboloid, Sparse deconvolution) in both visual quality and quantitative metrics. The timeliness of this work is significant: as biological imaging moves toward high-content screening, whole-slide imaging, and AI-driven analysis, the quality of input images becomes critical. Dark Sectioning can immediately improve the accuracy of automated segmentation and analysis pipelines without requiring any hardware investment. It also enhances advanced techniques like SIM, SOFI, and deep-learning super-resolution by providing cleaner raw data for reconstruction. In practical terms, this means a researcher with a basic wide-field microscope can now achieve optical sectioning quality comparable to much more expensive confocal systems—simply by processing their images with our free software. This democratizes high-quality imaging and could accelerate discoveries in cell biology, pathology, and drug screening.
Perspectives
As someone who has spent years developing optical microscopy techniques, I find the journey of Dark Sectioning particularly rewarding. The initial inspiration came from a casual observation: a photograph of a yellow flower with blurry background leaves, processed with a dehazing algorithm. It struck me that the mathematical principle distinguishing in-focus from out-of-focus elements in that photo might apply to microscopy as well. What followed was a rigorous validation process to prove that this intuition was physically sound and biologically useful. What excites me most about this work is its accessibility. Many excellent imaging techniques remain confined to well-funded labs because they require specialized hardware or expertise. Dark Sectioning is fundamentally democratic—anyone with a computer and fluorescence microscope images can benefit. I am especially proud that our student Ruijie Cao led the algorithm development and made the software genuinely user-friendly, with versions for Fiji (widely used by biologists), MATLAB, and standalone Windows. The collaborative nature of this project also reflects how science should work. After posting an early version on bioRxiv, colleagues from around the world shared their experimental data to help us validate the method across diverse microscopy modalities. This community-driven validation strengthened the paper significantly and expanded our perspective on potential applications. Looking ahead, I believe Dark Sectioning will become a standard preprocessing step in fluorescence microscopy workflows, much like how flat-field correction or deconvolution are used today. The integration with deep learning is particularly promising—cleaner images from Dark Sectioning should enable more accurate training of AI models for automated diagnosis and drug discovery. We are also working on GPU-accelerated real-time versions that could enable live-cell imaging with instant background removal. I encourage researchers to try Dark Sectioning on their own data and share their experiences. The code and example datasets are available at GitHub: github.com/Cao-ruijie/Dark-sectioning and Figshare.
Dr Peng Xi
Peking University
Read the Original
This page is a summary of: Dark-based optical sectioning assists background removal in fluorescence microscopy, Nature Chemical Biology, May 2025, Springer Science + Business Media,
DOI: 10.1038/s41592-025-02667-6.
You can read the full text:
Resources
Contributors
The following have contributed to this page







