Skip to content
forked from shiruken/speckle

Calculate speckle contrast for laser speckle contrast imaging

License

Notifications You must be signed in to change notification settings

ni3dubey/speckle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DOI

Calculate Speckle Contrast

MATLAB functions for calculating spatial and temporal speckle contrast for performing laser speckle contrast imaging. Code developed for the Functional Optical Imaging Laboratory (FOIL) at the University of Texas at Austin.

Inputs

  • raw - Raw data in the form of an MxNxn matrix where MxN is the dimension of a single raw image and n is the number of raw images to be processed. Note: Processing large quantities of images may require splitting the data into batches to avoid memory issues.
  • w - Size of the sliding window (wxw) used during spatial speckle contrast calculation or the number of raw frames (w) used during temporal speckle contrast calcuation.

Optional Arguments (Name-Value Pairs)

  • (___,'mode','gpu') - Enable GPU processing on compatible hardware. Defaults to CPU processing ('cpu').
  • (___,'debug',true) - Enable verbose diagnostic information about the processing. Disabled by default (false).

Output

  • sc - Matrix containing the calculated speckle contrast.

Benchmarking

Tested performance on PC running Windows 10 with Intel i7-9700K CPU and NVIDIA GeForce RTX 2060 GPU with 1200x1000x1000 dataset.

w CPU GPU
spatial_speckle_contrast 7 39 fps 106 fps
temporal_speckle_contrast 49 8.6 fps 10 fps

Citation

Colin Sullender. Calculate Speckle Contrast. (2022) doi:10.5281/zenodo.6657812.

BibTeX
@software{sullender:10.5281/zenodo.6657812,
  author       = {Colin Sullender},
  title        = {Calculate Speckle Contrast},
  month        = jun,
  year         = 2022,
  publisher    = {Zenodo},
  version      = {v1},
  doi          = {10.5281/zenodo.6657812},
  url          = {https://doi.org/10.5281/zenodo.6657812}
}

Resources

About

Calculate speckle contrast for laser speckle contrast imaging

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MATLAB 100.0%