Multivariate mathematical morphology and Bayesian classifier application to colour and medical images