The automated production of large-scale labeled datasets from concrete X-ray computed tomography (CT) images is a fundamental prerequisite for training and validating deep learning-based segmentation models. However, existing methods either require extensive manual annotation or rely on domain-specific deep learning models that themselves demand labeled data—a circular dependency. This paper presents a parameter-driven three-class segmentation framework that automatically classifies each pixel in a concrete CT slice into one of three material phases: void (air pores and cracks), coarse aggregate, and mortar matrix, generating annotation masks suitable for large-scale dataset production without manual labeling. The proposed method combines: (1) fixed-threshold void detection calibrated to concrete CT grayscale characteristics; (2) adaptive percentile-based initial segmentation responsive to image-specific statistics; (3) multi-criteria connected component scoring based on area, shape descriptors (circularity, solidity, compactness, extent, aspect ratio), intensity distribution, and boundary gradient; (4) material science-informed size constraints aligned with concrete phase volume fractions; and (5) a material continuity enforcement module that applies topological hole-filling and conditional convex-hull consolidation to eliminate internal contamination within accepted aggregate regions, reducing boundary roughness by 7.6% and recovering misclassified boundary pixels. All parameters are centralized in a configuration file, enabling reproducible batch processing of 224 × 224 pixel CT slices at 0.07–1.12 s per image. Evaluated on 1007 224 × 224 concrete CT patches cropped from 200 representative scan frames, the framework produces three-class segmentation masks with physically consistent void fractions (mean 3.2%), aggregate fractions (mean 32.4%), and mortar fractions (mean 64.4%), all within ranges reported in the concrete CT literature (used as a dataset-scale QC screen, not a validation metric). Primary outputs and the archived image–mask pairs for this work are provided as an 8-bit patch archive. For pixel-wise validation, we report IoU, Dice, and pixel accuracy on an independently labeled subset that can be unambiguously paired with the released predictions: averaged over 57 matched patches, mean pixel accuracy is 88.6%, macro-mean IoU is 74.7%, and macro-mean Dice is 84.9%. The framework provides a fully automated annotation pipeline for dataset production, eliminating manual labeling costs for concrete CT image collections. The generated datasets are suitable for training semantic segmentation networks such as U-Net and its variants.
Wang et al. (Mon,) studied this question.