A framework for texture analysis based on spatial filtering