Illumination invariant image

后端 未结 2 1524
花落未央
花落未央 2021-02-14 05:47

I try to create an illumination invariant image with openCV like in this paper here: http://www.cvc.uab.es/adas/publications/alvarez_2008.pdf

Has someone an idea how one

2条回答
  •  温柔的废话
    2021-02-14 06:19

    As far as I can understand the two papers, they are proceeding from a false premise and arriving at an interesting method for getting 1D illumination invariant information from 2D (such as uv from Luv, HS from HSV, etc) color space.

    They say illumination invariant, but they show a method of obtaining Color Temperature invariant information from log ratio of color pairs, say {log(R/G),log(B/G)}. You can imagine the setup, with a lamp on a dimmer, and they plot the color ratios: dim the lights, yes, the illumination changes, but so does the color temperature T.

    Not to mention that light is not all blackbody color temperature Lambertian. How in the world can this method work? But their results look good.

    So, on to the interesting method: Maximum Entropy
    As in answer above, project the (log of) uv space onto a vector at angle theta. What should theta be? Search theta to maximize entropy of the result. That is, to get the sharpest peaks in the 1D result. Sort of like an auto-focus.

    To answer your question though, use calcHist in opencv. After computing the log, of course.

提交回复
热议问题