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

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -