OpenCV – Color correction matrix not preserving white i.e columns do not sum to 1

  c++, color-space, matlab, opencv

The OpenCV contrib has a mcc module that can generate color correction matrix.

By giving an image as an input to the module one can set parameters like error metric, gamma, color space weights etc to calculate a CCM .

Now here is the problem. The OpenCV generates a CCM that has no preservation of white. White is preserved only when the generated ccm has columns of its 3×3 or 3×4 matrix sum to 1.

Does anybody has any idea to how can we force opencv’s mcc module to generate CCMs that sum to 1?

Source: Windows Questions C++

LEAVE A COMMENT