Lines Matching refs:CM
24 """Compute the ColorMatrix (CM) and ForwardMatrix (FM).
34 for the specified illuminant should be. These CM and FM values should be
46 CM: The 3x3 ColorMatrix for the specified illuminant, as a numpy array
105 # CM = inv(H * W * S * G * CC)
107 CM = numpy.linalg.inv(
113 CM = CM / max(numpy.dot(CM, (0.9642957, 1.0, 0.8251046)))
115 return CM, FM
117 def compute_asn(illuminant, cal, CM):
133 CM: The computed 3x3 ColorMatrix for the illuminant, as a numpy array.
159 # ASN = CC * CM * XYZCAL
160 ASN = numpy.dot(numpy.dot(CC, CM), XYZCAL)