0

In my project Im using EMGU librery.

I need to determine the background color of the urban poster or broadsheet.

As I see the background color of the poster or broadsheet is the predominant color.

My question if Emgu has any function that returns(in certain existing models BGR,HSL...) predominant color or some usefull results about colors in the image, If not , any idea how can I achieve my goal in effective way?

Thank you in advance.

Michael
  • 13,950
  • 57
  • 145
  • 288

2 Answers2

3

Take a histogram of the image. The color that occurs the most will be the background color.

Community
  • 1
  • 1
mpenkov
  • 21,621
  • 10
  • 84
  • 126
2

I think you must first define what predominant color is.

Do you mean illumination color, average color, mode, or even median?

Latter three are easy to calculate but first one is not.

If you think background color is the color you want. You first need to find a way to isolate that background with some masking technique. And then you can calculate mean, mode, or median of pixels in that background for predominant color.

Tae-Sung Shin
  • 20,215
  • 33
  • 138
  • 240