Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

what is normalize in opencv

I'm trying to understand what is normalize do. I have 2 images:

Image 1 :

image description

Image 2 :

image description

and then i try to divide it with

divide(image1, image2, div);

and i try to print it (10x10) :

image description

all value will become 1 or 0. and when show it, it will be like this :

image description

but when i normalize it :

normalize(div, nom, 0, 255, NORM_MINMAX, CV_8U);

it wil show like this :

image description

when i try print all the pixel value, the value is only 85, but in image there is white dot area.

can someone please explain to me what happen ?

Thank you.