Matlab codes for coregistration between image plane and DMD, SLM plane.
Matlab codes for making SLM optical segmentation pattern from user-selected ROIs.
This module is designed for unmixing images detected by DeMOSAIC (Diffractive Multisite Optical Segmentation Assisted Image Compression). It accomplishes the following tasks:
- Splits the image of the detection channel.
- Unmixes the signal with its complementary channel.
- Re-stitches the image to form the final output.
<Example with colored, 128x128 image>
python unmixing.py --src_path C:/.../raw_image.tiff --ratio_path C:/.../ratio.csv --dark_path(optional) C:/.../dark.tiff
--new_name newfilename.tiff --tune(optional)
The Python code was tested on Windows 10 using Anaconda3. The required libraries and packages are listed in requirements.txt.
We provide Jupyter Notebooks for additional analyses after unmixing. These include
- DFF_and_Detrend.ipynb extraction of DF/F0, detrending
- STA.ipynb and spike-triggered averaging (STA)