Ask Your Question

How to find a match between 2 shifted hue histograms?

asked 2012-09-03 13:02:09 -0600

501 Not Implemented gravatar image

updated 2012-09-03 13:03:12 -0600

Hi, i want to implement a feature, which estimate harmonic colors in a image. In the paper Color Harmonization is a visualisation of Harmonic Color templates on the hue wheel:image description

Each of these templates can be rotated up to 360 degree,too.

Now i search a method to find de best template for my image. Cohen-Or give us a formula,too: image description, where p is one pixel of the image X, H and S denote the hue and the saturation. He used the arc-lenght metric to callculate the distance between the image and the template /E_t_m(alpha).

I don't know how to find the alpha. (The shiftet template, so i have a good match with my image).

Maybe someone have an idea :)


edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2012-09-05 12:51:37 -0600

Adi gravatar image

In the paper they write:

"To calculate the best harmonic scheme of an image, we use Brent’s algorithm [Press et al. 1992] to optimize the orientation α (Eq. 2) for each template. H".

PRESS, W. H., TEUKOLSKY, S. A., VETTERLING, W. T., AND FLANNERY, B. P. 1992. Numerical Recipes in C: The Art of Scientific Computing. Cambridge University Press, New York, NY, USA.

My guess is that you can start by just trying angles in a course to fine scheme until convergence.

edit flag offensive delete link more

Question Tools


Asked: 2012-09-03 13:02:09 -0600

Seen: 862 times

Last updated: Sep 05 '12