Advanced computer vision algorithm for extraction of microstructural features from BSE images of powder metallurgical microstructures
Manual methods for measuring grain size are often time-consuming and labor-intensive, as grain size analysis is essential for understanding material properties. This research introduces an innovative method leveraging Python libraries such as OpenCV, SciPy, and NumPy to automate the segmentation and...
        Saved in:
      
    
          | Published in | International journal of advanced manufacturing technology Vol. 140; no. 7-8; pp. 3983 - 4001 | 
|---|---|
| Main Authors | , , , , | 
| Format | Journal Article | 
| Language | English | 
| Published | 
        London
          Springer London
    
        01.10.2025
     Springer Nature B.V  | 
| Subjects | |
| Online Access | Get full text | 
| ISSN | 0268-3768 1433-3015  | 
| DOI | 10.1007/s00170-025-16493-9 | 
Cover
| Summary: | Manual methods for measuring grain size are often time-consuming and labor-intensive, as grain size analysis is essential for understanding material properties. This research introduces an innovative method leveraging Python libraries such as OpenCV, SciPy, and NumPy to automate the segmentation and extract microstructural features such as grain, grain boundary, edge grains and pores in backscattered electron (BSE) images. The analysis of BSE images presents several challenges, including noise, inconsistent contrast, improper thresholding, merged grains, edge grain exclusion, and accurate grain boundary identification. To overcome these obstacles, advanced image processing strategies were employed. Gaussian filtering with mean of (9,9) and σ = 1 optimized to minimize noise, and Contrast Limited Adaptive Histogram Equalization (CLAHE) with a tile grid size of (8,8) and clip limit of
L
c
=
4.0 improved local contrast, enhancing the visibility of grain boundaries. Otsu's method for automated thresholding enabled effective differentiation between grains and their boundaries, while morphological techniques (erosion and dilation) with kernel size of 2 and two iterations further separated merged grains. Edge grains were removed using the cv2.floodFill() function, and the distance transform function precisely defined the grains and boundaries. Connected components analysis was applied to label distinct regions, helping determine the grain count. The proposed algorithm was evaluated on various BSE images to assess its robustness, with results compared against manual grain size measurements based on ASTM standards. Pearson correlation analysis confirmed that the error remained within acceptable limits, and the correlation coefficient of 0.98 highlighted the algorithm's high accuracy in predicting grain sizes with consistent precision. | 
|---|---|
| Bibliography: | ObjectType-Article-1 SourceType-Scholarly Journals-1 ObjectType-Feature-2 content type line 14  | 
| ISSN: | 0268-3768 1433-3015  | 
| DOI: | 10.1007/s00170-025-16493-9 |