pkeilbach / pylsci

Python Package for Laser Speckle Contrast Imaging
MIT License
17 stars 7 forks source link

Check if array iteration can be optimized #1

Open pkeilbach opened 3 years ago

pkeilbach commented 3 years ago

https://realpython.com/numpy-array-programming/#image-feature-extraction https://www.pyimagesearch.com/2017/08/28/fast-optimized-for-pixel-loops-with-opencv-and-python/ https://medium.com/analytics-vidhya/implementing-convolution-without-for-loops-in-numpy-ce111322a7cd https://medium.com/analytics-vidhya/2d-convolution-using-python-numpy-43442ff5f381

pkeilbach commented 3 years ago

seems like matlab can do it... maybe there is a python equivalent for imfilter, fspecial..

https://mail.python.org/pipermail/scipy-user/2013-May/034559.html

https://pillow.readthedocs.io/en/stable/reference/ImageFilter.html

https://docs.scipy.org/doc/scipy-0.18.1/reference/ndimage.html

frameMean=imfilter(single(frame),fspecial('average',[7 7])); frameSTD=stdfilt(single(frame),ones(7)); sLSCI=frameSTD./frameMean;

pkeilbach commented 2 years ago

https://stackoverflow.com/questions/22142369/the-equivalent-function-of-matlab-imfilter-in-python

https://scipy-user.scipy.narkive.com/lRWfIMFn/matlab-imfilter-fspecial-equivalent