This is the repository for the open-source program described in
@article{Zhang2019,
author = {Zhang, Yide and Hato, Takashi and Dagher, Pierre C. and Nichols, Evan L. and Smith, Cody J. and Dunn, Kenneth W. and Howard, Scott S.},
doi = {10.1364/OL.44.003928},
journal = {Optics Letters},
month = {aug},
number = {16},
pages = {3928},
title = {{Automatic segmentation of intravital fluorescence microscopy images by K-means clustering of FLIM phasors}},
url = {https://www.osapublishing.org/abstract.cfm?URI=ol-44-16-3928},
volume = {44},
year = {2019}
}
- This option requires a Matlab license
- Install Matlab on your computer
- Clone this repository:
git clone https://github.com/yzhang34/Kmeans-FLIM-Phasors.git
- Run the file 'Kmeans_FLIM_Phasors.m' with Matlab
- This option does not require a Matlab license
- Execute "MyAppInstaller_web.exe" in the "installer" directory
- Follow the instructions to install the program
- Matlab running environment will be automatically downloaded and installed
- Once the installation is complete, the program can be started with the icon on your Desktop
-
Load the phasor (G, S) and intensity files into the program. Supported formats include TIFF and CSV files.
-
Specify the excitation modulation frequency (default=80 MHz) and calcuate fluorescence lifetimes. HSV mapping (with intensity image) can be selected to form a composite image. Lifetime ranges can be defined.
-
Apply filters to phasor images (G and S) only (unclick 'Intensity Filter?'). Adjust the intensity display range. Lifetime image can be recalculated to refect the intensity change.
-
Specify K-means clustering paramters: K, distance metric, and replicate times. Perform the clustering algorithm.
-
Obtain the segmentation result by calculating the overlapping pixels corresponding to the clustered phasors. The segmented images can be shown separately. All the images in the program, including the segmented images, can be exported.
-
As an example, the overlap image, as well as the separate segmented images, can be exported as TIFF files:
- Save the phasor and intensity images to TIFF or CSV files with your exisiting FLIM system.
- Import the data into the program following the instructions in the example above.
© 2019 Yide Zhang, University of Notre Dame
Licensed under the Apache License 2.0