Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to to find the Gaussian Weighted-Average and Std Deviation of a structural element

Hello everyone.

I'm trying to implement an Intensity Normalization algorithm that is described by this formula:

x' = (x - gaussian_weighted_average) / std_deviation

The paper I'm following describes that I have to find the gaussian weighted average and the standard deviation corresponding to each pixel "x" neighbors using a 7x7 kernel.

PS: x' is the new pixel value.

So, my question is: how can I compute a gaussian weighted average and the standard deviation for each pixel in image using a 7x7 kernel? OpenCV provides any method to solve this?