An automatic image analysis of coke texture