Image Normalization

asked 2015-05-21 08:32:32 -0500

Mimikian gravatar image

updated 2015-05-21 08:39:33 -0500

berak gravatar image

Hi everoyne,

I have an image and i would like to have it normalized so that it has a prespecified mean and variance. Does OpenCV has a predefined function for this work ?

image description

where μd and σ2 are the desired values for mean and variance.

Thanks!

edit retag flag offensive close merge delete

Comments

I am not sure but you might be able to use the code from this answer here. It seems also to match with the example in this link, though the latter is in the old C api.

theodore gravatar imagetheodore ( 2015-05-25 06:33:16 -0500 )edit

@berak this function will give him the mean and variance values of the image, but @Mimikian from what I understood he wants to create/normalize an image so that it would match to predefined mean and variance values.

theodore gravatar imagetheodore ( 2015-05-25 06:43:27 -0500 )edit