numpy - Python: standard deviation of gaussian weighted pixel region -


i calculate gaussian weighted standard deviation of 2d array python, know how this? apply 2d gaussian filter instead of returning convolution of each array element filter, return standard deviation of gaussian weighted values around array element.

cheers, tomas

there numpy function called std. example

    x = np.random.uniform(0,5,(20,20))     np.std(x) 

and return standard deviation of 20x20 array. if want specific portion of image can use array splicing accomplish this.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -