Ask Your Question
1

What does normalize function do when used with "NORM_MINMAX" ?

asked 2015-04-03 08:33:11 -0500

bubble gravatar image

I referred the opnecv documentation here; but there is no description of of how exactly the image is normalized when used with this flag. I am trying to use this kind of scaling to make a laplace transformed image to look like the output of matlab.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-04-03 09:01:25 -0500

updated 2015-04-03 09:13:24 -0500

What do you mean? The docu says: "or so that min(dist) = alpha and max(dist) = beta when normType=NORM_MINMAX (for dense arrays only)"

As it only scales and shifts, the transformation should be (if a and b are you lower and upper bound in the input)

dst = (x-a)/(b-a)*(beta-alpha) + alpha

(but that should be easy to verify in the code)

// the code is here: https://github.com/Itseez/opencv/blob...

edit flag offensive delete link more

Comments

I see a completely plane gray image if try to normalize my image between 0 and 255.

bubble gravatar imagebubble ( 2015-04-03 09:41:26 -0500 )edit

And how does your image look like?

FooBar gravatar imageFooBar ( 2015-04-03 10:35:53 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-04-03 08:33:11 -0500

Seen: 4,889 times

Last updated: Apr 03 '15