The chroma is calculated given the color space used in mat.

pth_max_chroma(mat)

Arguments

mat

double matrix with three columns, one row for each color.

Value

double maximum chroma, one value for each row in mat.