Skip to content

Commit

Permalink
Add license and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rcolyer committed May 17, 2019
1 parent 28d9536 commit 390f919
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
24 changes: 24 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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.

32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 390f919

Please sign in to comment.