openpDPC_condenser

Table of Contents

MM2_pDPC

Overview

Introduction

This is a plugin for μManager (MM) (version 2.0 or later) to perform image processing etc. for polarisation-resolved differential phase contrast (pDPC) microscopy. For details on the pDPC technique, see Ref. [1].

This plugin provides four main features:

The python code for the phase reconstruction process in this plugin is based on the DPC principle in Ref. [2-4] and adapted from Ref. [5-6].

Important notes

Installation

  1. Install μManager (version 2.0.0 or later) if not yet.
  2. Download MM2_pDPC.jar from this repo and place it in the mmplugins folder under the μManager installation root.

To check if the plugin is successfully installed, launch μManager and check if the plugin name, pDPC, appears in the Plugins menu as shown in the figure below.

Pre-requisite for python-based features

To use the python-based features of this plugin, one MUST make sure that there is at least one Anaconda environment with the required python packages installed.

  1. Install Anaconda if not yet.
  2. Record the path to Anaconda installation directory.

    This path will be used in the plugin to identify available environments and locate their corr. python executables.

  3. Setup an Anaconda environment with the required python packages if not yet.

    This plugin requires the following python packages:

    • opencv-python
    • numpy
    • tifffile
    • PyQt5
    • magicgui
    • scipy

    Below is an example of how to create a new Anaconda environment and install all required python packages.

     conda create -n pdpc-env python=3.10 
     conda activate pdpc-env 
     conda install -c conda-forge opencv numpy tifffile pyqt magicgui scipy 
    

User guide

Live

If video is not shown in browser, click here to download and view it.

Empirically, set binning to 2 is a good trade-off between speed and resolution for phase reconstruction on live.

Recon

If video is not shown in browser, click here to download and view it.

Cali

If video is not shown in browser, click here to download and view it.

LiveSplit

If video is not shown in browser, click here to download and view it.

Special notes

Launch/Stop python background process

Parameters & Presets

If video is not shown in browser, click here to download and view it.

preset name is the identifier used to update/add/remove preset.

If Use advanced pDPC params is not selected, only basic parameters in Current settings will be passed to python for phase reconstruction with default ideal values used for advanced parameters.

Physical meaning of pDPC parameters

References

[1] R. Kalita, W. Flanagan, J. Lightley, S. Kumar, Y. Alexandrov, E. Garcia, M. Hintze, M. Barkoulas, C. Dunsby, P.M.W. French, Single-shot phase contrast microscopy using polarisation-resolved differential phase contrast, J. Biophotonics (2021). https://doi.org/10.1002/jbio.202100144.
[2] L. Tian, L. Waller, Quantitative differential phase contrast imaging in an LED array microscope, Opt. Express 23 (2015). https://doi.org/10.1364/oe.23.011394.
[3] Z.F. Phillips, M. Chen, L. Waller, Single-shot quantitative phase microscopy with color-multiplexed differential phase contrast (cDPC), PLoS One 12 (2017). https://doi.org/10.1371/journal.pone.0171228.
[4] M. Chen, Z.F. Phillips, L. Waller, Quantitative differential phase contrast (DPC) microscopy with computational aberration correction, Opt. Express 26 (2018) 32888–32899. https://doi.org/10.1364/OE.26.032888.
[5] https://github.com/Waller-Lab/DPC
[6] https://github.com/Waller-Lab/DPC_withAberrationCorrection