Maximum Likelihood / Bayesian (4) — full decision rule.
The pixel is assigned to the class for which D is the lowest:
\[D \;=\; \log_e(a_c) \;-\; \tfrac{1}{2}\log_e(|V_c|) \;-\; \tfrac{1}{2}(X - M_c)^{\!T}\,V_c^{-1}(X - M_c)\]| ** | V_c | ** — determinant of V_c. |
a_c — prior probability that class c occurs in the image (equal for all classes, or user-entered from a priori knowledge).