From 390f91990521024daa040833c07b732751c38289 Mon Sep 17 00:00:00 2001 From: "Ryan A. Colyer" Date: Thu, 16 May 2019 22:30:15 -0400 Subject: [PATCH] Add license and readme --- LICENSE.txt | 24 ++++++++++++++++++++++++ README.md | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 LICENSE.txt create mode 100644 README.md diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..7925d62 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,24 @@ +Boost Software License - Version 1.0 - August 17th, 2003 + +Permission is hereby granted, free of charge, to any person or organization +obtaining a copy of the software and accompanying documentation covered by +this license (the "Software") to use, reproduce, display, distribute, +execute, and transmit the Software, and to prepare derivative works of the +Software, and to permit third-parties to whom the Software is furnished to +do so, all subject to the following: + +The copyright notices in the Software and this entire statement, including +the above license grant, this restriction and the following disclaimer, +must be included in all copies of the Software, in whole or in part, and +all derivative works of the Software, unless such copies or derivative +works are solely in the form of machine-executable object code generated by +a source language processor. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT +SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE +FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + diff --git a/README.md b/README.md new file mode 100644 index 0000000..8802410 --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# Compressed Phasors simulator + +This project demonstrates the Compresed Phasors method for combining Compressive Sensing with Fluorescence Lifetime Imaging Microscopy (FLIM). + +## Getting Started + +To use this simulation, you will need a working python3 installation with numpy, scikit-learn, and matplotlib. The bash script "run" will execute the program and store the output in date-stamped log files, or you can run the program directly in Python via the CompressiveSim.py file. + +## Modifications and Simulation Modalities + +Customizations to the simulation's system settings can be made by adjusting the variables at the top of CompressiveSim.py to adjust the frequency or the frame rate for updating the compressive sensing masks. Adjustment of acquisition settings varies by the simulation modality used. + +sim.SimAndOutput, demonstrated at the bottom of CompressiveSim.py, produces a set of plots comparing the input image with compressive sensing intensity, tau\_m lifetime images, tau\_p lifetime images, and the g and s phasor images. + +The function Make\_g\_array(sim) in CompressiveSim.py produces a two-dimensional array of g-images varying across the specified range of frame counts in the vertical xis, and across the specified range of whole-image counts per second in the horizontal axis. This can be used to examine the structural quality of the phasor data obtained under various conditions. + +The function Make\_g\_noise\_data(sim) in CompressiveSim.py produces comma-separated values showing the standard deviation of g-values for the given near-center pixel across the range of whole-image counts per second. + +## Components + +* library/CompressivePlots.py - Uses matplotlib to generate output plots. +* library/CompressiveSensing.py - Contains the compressive sensing routines which use Lasso from scikit-learn to extract the image data. +* library/ImageGen.py - Contains routines to produce a simulated stream of photons from a provided image structure. +* library/MakeImages.py - Has functions for generating demonstration image structures for simulation input. +* library/Phasor.py - Has classes for storing phasor and photon count data, and functions for performing phasor calculations. +* library/RunTime.py - Tracks simulation runtime. +* library/Simulator.py - Contains a compressed phasors simulator class for running a full image acquisition simulation under given conditions. + +## License + +This project is licensed under the Boost Software License, making it free for use and modification. See the [LICENSE.txt](LICENSE.txt) file for details. +