Attention! This forum will be made read-only by Dec-20. Please migrate to Most of existing active users should've received invitation by e-mail.
Ask Your Question

3x3 color matching matrix

asked 2014-10-28 10:09:26 -0500

Ropeburn gravatar image

I am trying to color calibrate a couple of webcameras to a macbeth chart. I have a list of 24 colors from each camera and the macbeth color values. How does one go about finding the solution for the 3x3 color matching matrix (one for each camera) that can be applied to correct the camera colors to match the macbeth. The application of the matrix is casual, how does one determine/solve/create it. Thomas.

edit retag flag offensive close merge delete


I have the same problem and looking for help too

Mark Herman gravatar imageMark Herman ( 2018-03-04 08:42:56 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-03-15 14:09:34 -0500

Mark Herman gravatar image


you can use first_order_colour_fit(m_1, m_2 , rcond=1)

Colour Fitting

Performs a first order colour fit from given :math:`m_1` colour array to
:math:`m_2` colour array. The resulting colour fitting matrix is computed
using multiple linear regression.

The purpose of that object is for example the matching of two
*ColorChecker* colour rendition charts together

m_1 : array_like, (3, n)
    Test array :math:`m_1` to fit onto array :math:`m_2`.
m_2 : array_like, (3, n)
    Reference array the array :math:`m_1` will be colour fitted against.

Simply: Creating and clculating CCM - Color Correction Matrix
edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2014-10-28 10:09:26 -0500

Seen: 1,203 times

Last updated: Mar 15 '18