Functions for getting image data for texture classification I