Maximum likelihood approach to image texture and acoustic signal classification