Segmentation of casting defect regions for the extraction of microstructural properties. (October 2019)