Laser speckle image analysis on Python

Post date: Dec 30, 2015 1:52:15 PM

Have implemented the fast method to perform laser speckle contrast analysis (LASCA) on Python + numpy + scipi

The code can be found in github: https://github.com/popunder/dLSI/tree/master/python

Essentially it uses uniform_filter function from scipy to perform filtering of the image. Below is the main lasca function:

def lasca(imarray, wsize = 10): immean = ndimage.uniform_filter(imarray, size=wsize) im2mean = ndimage.uniform_filter(np.square(imarray), size=wsize) imcontrast = np.sqrt(im2mean / np.square(immean) - 1) return imcontrast

Execution of lasca_example.py with the test dataset tiff (see here) should produce output as following: