\end{dcases}
\end{align*}
+and similarly for $g$ and $b$.
+
Next, the colour transformation matrix is used to convert to XYZ:
\begin{align*}
\end{array}\right]
\end{align*}
+Note: some tools apply a white-point correction here, but DCP-o-matic currently does not do that.
+
Finally, the output gamma $\gamma_o$ is applied to give our final XYZ values $(x', y', z')$:
\begin{align*}