Text this: Segmentation and grain size of ceramics