Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Normalize hist with Norm_L1 doens't work ?

I am using the normalize function with this params:

normalize(hist, hist, 255, NORM_L1);

This should mean that the sum of every values inside the mat should equal to = 255
But later if i sum all values i get another value

sum(hist) != 255

To fix this error I need to call the normalize function like this:

normalize(hist, hist, 255, 0, NORM_L1);

Now I get:

sum(hist) == 255

Is this an intended behavior ?