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
Post a Comment