Ask Your Question
0

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

asked 2016-02-11 11:42:08 -0600

chr0x gravatar image

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?

edit retag flag offensive close merge delete

Comments

1

You should add the link or the title of the paper.

Eduardo gravatar imageEduardo ( 2016-02-11 15:16:20 -0600 )edit

If you want an intensity normalisation, why not just use the equalizeHist() function which is the most commonly used intensity equalization algorithm inside OpenCV.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-02-12 04:58:02 -0600 )edit

@chr0x Hi, I need exactly the same thing, Have you managed to find anything ?

Mejdi Dallel gravatar imageMejdi Dallel ( 2017-07-04 11:59:51 -0600 )edit
1

@Mejdi Dallel DO NOT POST ANSWERS, if you have a question. thank you.

berak gravatar imageberak ( 2017-07-04 12:10:50 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-02-11 15:43:23 -0600

Tetragramm gravatar image

The Gaussian Weighted Average would, I believe, be the same as a Gaussian Blur, so that's a standard function.

To get the standard deviation of a 7x7 window, you can use this method: http://matlabtricks.com/post-20/calcu...

Where you replace the conv( ones)) with cv::blur.

Hope that helps.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-02-11 11:42:08 -0600

Seen: 1,225 times

Last updated: Feb 11 '16