(cross-posting here from Mathematics.Exchange in hopes of getting some help)
Color Correction Matrix (a.k.a. CCM or CMX) is applied to raw