Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
281 views
in Technique[技术] by (71.8m points)

opencv - Histogram Normalization

I am trying to apply histogram normalization to create a dense color histogram.

  1. Split the channels into R, G, B
  2. Normalize the individual histogram
  3. Merge

I think that this is the normal step perhaps if I am wrong please let me know. Now,

for a rainbow image as shown below I get enter image description here I get max of 255 for all 3 channel and 0 as min. Using the formula for

Pixel - Min / (Max - min) * 255

I will get the same image as the original one back. What is the critical step that I am missing. Please advise me.Thank you! REf: http://www.roborealm.com/help/Normalize.php.. I used this reference

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

White = (255,255,255). Black = (0,0,0). So your program finds the white background, and the black line in the bottom right.

Remove the white and change it to black. Then make your program ignore black.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...