On the functional classification of chemical and biological systems by the acquisition and multivariate analysis of optical, spectroscopic and electronic images