Automatic Detection of Cast Billet Dendrite Based on Improved Hough Transform
Abstract
:1. Introduction
- (1)
- The production of microscopic images requires complex processes such as sampling, polishing, and etching and is, therefore, costly to produce, with the expectation that a small amount of data will be studied to extract dendritic features and reduce costs;
- (2)
- Microscopic image quality is susceptible to sample making techniques and equipment, image contrast is often low, and dendrite image quality needs to be solved;
- (3)
- Ordinary threshold segmentation binarization methods tend to ignore image details, leading to the phenomenon of under-segmentation and the need to address the segmentation of dendritic details.
- (1)
- A local adaptive contrast enhancement method based on genetic algorithm is proposed to retain more details of dendrites. Compared with the traditional local adaptive contrast enhancement method, it provides more details via the optimized gain coefficient.
- (2)
- The binarization method based on a Hessian matrix is proposed to segment the dendritic region. We establish the surface model based on a Hessian matrix through the dendrite grayscale features and set the discriminative conditions according to the solidification principle to achieve the binarization effect.
- (3)
- Due to the interference of secondary dendrites and noise, there are many wrong lines in the results of straight line detection with the traditional Hough transform method. The proposed method uses the spatial relationship between consecutive and parallel primary dendrites to efficiently eliminate the detection errors.
2. Materials and Methods
2.1. Image Enhancement Algorithms
2.1.1. Local Adaptive Contrast Enhancement Algorithm
2.1.2. Image Enhancement Based on Genetic Algorithm
- Genetic Algorithm
- (a)
- Initialize the population size;
- (b)
- Select excellent individuals and eliminate poor individuals based on the fitness size of individuals in the population;
- (c)
- Recombine part of the structure of two parent individuals to generate new individuals;
- (d)
- Genetic mutation operation;
- (e)
- Terminate the algorithm when the fitness function of chromosomes meets the condition or when the algorithm reaches a preset number of iterations.
- 2.
- Fitness Function
- 3.
- Local Contrast Enhancement Algorithm Based on Genetic Algorithm
- (a)
- Input the original dendrite image;
- (b)
- Convert the original image from a three-channel color image to HSV (Hue, Saturation, Value) space, split the image into color information and luminance information, and prevent the color information of the image from being changed when enhancing the brightness of the image;
- (c)
- Initialize the genetic algorithm parameters, including the population size, number of iterations, crossover probability, and variation probability;
- (d)
- Evaluating the gain coefficients by calculating the image information entropy and the grayscale standard variance to obtain the optimal gain coefficients;
- (e)
- Use the optimal gain coefficients to enhance the dendrite image via the ACE algorithm and obtain the enhanced image.
2.2. Image Binarization Method Based on Hessian Matrix
2.3. Extraction of Primary Dendrite by Hough Transform
2.3.1. Principle of the Hough Transform
2.3.2. Primary Dendrite Detection Based on Hough Transform
2.3.3. Optimization of Primary Dendrite Extraction Results
3. Results
3.1. Comparison of Different Dendrite Detection Methods
3.2. Comparison of Dendrite Detection Results from Different Dendrite Images
3.3. Analysis of Primary Dendrite Spacing Measurements
4. Conclusions
- (1)
- A local contrast enhancement algorithm based on genetic algorithm was proposed, which searched for the optimal gain coefficients by genetic algorithm and established an evaluation function based on the local grayscale, which ensured the improvement of image contrast while retaining more dendrite information.
- (2)
- We proposed an image binarization method based on a Hessian matrix. By considering a dendrite as a three-dimensional surface and setting the criterion to binarize the image, more detailed features of the dendrite can be retained, which provided more comprehensive dendrite information for dendrite detection.
- (3)
- To improve the traditional Hough transform method and use the improved method to perform dendrite detection, the voting mechanism was modified to ensure the continuity of the dendrites, and according to the principle that the dendrites are parallel to each other, the voting were are optimized to reduce the computational effort. Compared to the manual detection results, the error was four pixels, which could provide information for the subsequent calculation of dendrite inclination angle and primary dendrite spacing parameters to measure the quality of casting billet.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Wang, W.; Liang, C.E.; Zeng, J. Mechanism of Tempered Sorbite Formation and Related Enhanced Mechanical Properties for a Typical High Carbon Steel Billet Under Strong Cooling Intensity. Metall. Mater. Trans. B 2021, 52, 4061–4069. [Google Scholar] [CrossRef]
- Yang, J.; Chen, D.; Long, M.; Duan, H. Transient flow and mold flux behavior during ultra-high speed continuous casting of billet. J. Mater. Res. Technol. 2020, 9, 3984–3993. [Google Scholar] [CrossRef]
- Zhao, X.; Liu, L.; Zhang, W.; Yu, Z.; Fu, H. Microstructure and orientation variation during cell/dendrite transition in directional solidification of a single crystal nickel-base superalloy. Mater. Chem. Phys. 2011, 125, 55–58. [Google Scholar] [CrossRef]
- Yuan, L.; Lee, P.D. Dendritic solidification under natural and forced convection in binary alloys: 2d versus 3d simulation. Model. Simul. Mater. Sci. Eng. 2010, 18, 055008. [Google Scholar] [CrossRef]
- Lee, J.; Ohno, M.; Shibuta, Y.; Takaki, T. Uniquely selected primary dendrite arm spacing during competitive growth of columnar grains in Al–Cu alloy. J. Cryst. Growth. 2021, 18, 055008. [Google Scholar] [CrossRef]
- Strickland, J.; Nenchev, B.; Dong, H. On directional dendritic growth and primary spacing—A review. Crystals 2020, 10, 627. [Google Scholar] [CrossRef]
- Zhao, X.; Lin, L.; Yu, Z.; Zhang, W.; Fu, H. Microstructure development of different orientated nickel-base single crystal superalloy in directional solidification. Mater. Charact. 2010, 61, 7–12. [Google Scholar] [CrossRef]
- Krawczyk, J.; Paszkowski, R.; Bogdanowicz, W.; Hanc-Kuczkowska, A.; Sieniawski, J.; Terlecki, B. Defect Creation in the Root of Single-Crystalline Turbine Blades Made of Ni-Based Superalloy. Materials 2019, 12, 870. [Google Scholar] [CrossRef]
- Roskosz, S.; Adamiec, J. Methodology of quantitative evaluation of porosity, dendrite arm spacing and grain size in directionally solidified blades made of CMSX-6 nickel alloy. Mater. Charact. 2009, 60, 1120–1126. [Google Scholar] [CrossRef]
- Hu, W.; Li, S.M.; Chen, W.J.; Gao, S.F.; Liu, L.; Fu, H.Z. Primary dendrite arm spacing during unidirectional solidification of Pb–Bi peritectic alloys. J. Alloys Compd. 2009, 484, 631–636. [Google Scholar] [CrossRef]
- Somboonsuk, K.; Trivedi, R. Dynamical studies of dendritic growth. Acta Metall. 1985, 33, 1051–1060. [Google Scholar] [CrossRef]
- Matache, G.; Stefanescu, D.; Puscasu, C.; Alexandrescu, E. Dendritic segregation and arm spacing in directionally solidified CMSX-4 superalloy. Int. J. Cast Met. Res. 2016, 29, 303–316. [Google Scholar] [CrossRef]
- Wu, H.J.; Ning, W.; Bao, Y.P.; Wang, G.X.; Xiao, C.P.; Liu, J.J. Effect of M-EMS on the solidification structure of a steel billet. Int. J. Miner. Metall. Mater. 2011, 18, 159–164. [Google Scholar] [CrossRef]
- Brundidge, C.L.; Miller, J.D.; Pollock, T.M. Development of Dendritic Structure in the Liquid-Metal-Cooled, Directional-Solidification Process. Metall. Mater. Trans. A 2011, 42, 2723–2732. [Google Scholar] [CrossRef]
- Brundidge, C.L.; Vandrasek, D.; Wang, B.; Pollock, T.M. Structure Refinement by a Liquid Metal Cooling Solidification Process for Single-Crystal Nickel-Base Superalloys. Metall. Mater. Trans. A 2011, 43, 965–976. [Google Scholar] [CrossRef]
- Osório, W.R.; AFreire, C.M.; Garcia, A. Dendritic solidification microstructure affecting mechanical and corrosion properties of a Zn4Al alloy. J. Mater. Sci. 2005, 40, 4493–4499. [Google Scholar] [CrossRef]
- Takaki, T.; Ohno, M.; Shimokawabe, T.; Aoki, T. Two-dimensional phase-field simulations of dendrite competitive growth during the directional solidification of a binary alloy bicrystal. Acta Mater. 2014, 81, 272–283. [Google Scholar] [CrossRef]
- GB/T 14999.7-2010; Test Methods for Grain Sizes, Primary Dendrite Spacing and Microshrinkage of Superalloy Castings. China National Standardization Administration: Beijing, China, 2010.
- Nenchev, B.; Strickland, J.; Tassenberg, K.; Perry, S.; Gill, S.; Dong, H. Automatic Recognition of Dendritic Solidification Structures: DenMap. J. Imaging 2020, 6, 19. [Google Scholar] [CrossRef]
- Wang, J.J.; Meng, H.J.; Yang, J.; Xie, Z. A fast method based on GPU for solidification structure simulation of continuous casting billets. J. Comput. Sci. 2021, 48, 101265. [Google Scholar] [CrossRef]
- Ci, S.; Liang, J.; Li, J.; Wang, H.; Zhou, Y.; Sun, X.; Zhang, H.; Ding, Y.; Zhou, X. Prediction of Primary Dendrite Arm Spacing in Pulsed Laser Surface Melted Single Crystal Superalloy. Acta Metall. Sin. 2020, 34, 483–494. [Google Scholar] [CrossRef]
- Lee, W.; Jeong, Y.; Lee, J.W.; Lee, H.; Kang, S.H.; Kim, Y.M.; Yoon, J. Numerical simulation for dendrite growth in directional solidification using LBM-CA (cellular automata) coupled method. J. Mater. Sci. Technol. 2020, 14, 15–24. [Google Scholar] [CrossRef]
- Yan, X.W.; Guo, X.; Liu, Y.L.; Gong, X.F.; Xu, Q.Y.; Liu, B.C. Numerical simulation of dendrite growth in Ni-based superalloy casting during directional solidification process. Trans. Nonferrous Met. Soc. China 2019, 29, 338–348. [Google Scholar] [CrossRef]
- Xiao, W.; Li, S.; Wang, C.; Shi, Y.; Mazumder, J.; Xing, H.; Song, L. Multi-scale simulation of dendrite growth for direct energy deposition of nickel-based superalloys. Mater. Des. 2019, 164, 107553. [Google Scholar] [CrossRef]
- Xiao, G.; Zhu, B.; Zhang, Y.; Zhang, Y.; Gao, H. FCSNet: A quantitative explanation method for surface scratch defects during belt grinding based on deep learning. Comput. Ind. 2023, 144, 103793. [Google Scholar] [CrossRef]
- Wang, N.; Tang, Y.; Wu, Y.; Zhang, Y.; Dai, Y.; Zhang, J.; Zhang, R.; Xu, Y.; Sun, B. Dynamic evolution of microstructure morphology in thin-sample solidification: Deep learning assisted synchrotron X-ray radiography. Mater. Charact. 2021, 181, 111451. [Google Scholar] [CrossRef]
- Shashank, K.C.; Yang, X.; Vincent, D.A.; Francesco, D.C.; William, S.; Doga, G.; Nikhilesh, C. Automated correlative segmentation of large Transmission X-ray Microscopy (TXM) tomograms using deep learning. Mater. Charact. 2018, 142, 203–210. [Google Scholar] [CrossRef]
- Wan, W.H.; Li, D.L.; Wang, H.Z.; Xiao, C.B. Automatic Identification and Quantitative Characterization of Primary Dendrite Mi- crostructure Based on Machine Learning. Crystals 2021, 11, 1060. [Google Scholar] [CrossRef]
- Ghorai, S.; Mukherjee, A.; Gangadaran, M.; Dutta, P.K. Automatic defect detection on hot-rolled flat steel products. IEEE Trans. Instrum. Meas. 2013, 62, 612–621. [Google Scholar] [CrossRef]
- Liu, K.; Wang, H.; Chen, H.; Qu, E.; Tian, Y.; Sun, H. Steel Surface Defect Detection Using a New Haar-Weibull-Variance Model in Unsupervised Manner. IEEE Trans. Instrum. Meas. 2017, 66, 2585–2596. [Google Scholar] [CrossRef]
- Ye, H.; Zhang, Z.; Dan, Y.; Gan, P.; Deng, J.; Pan, Z. Novel Method for Measurement of Rebar State of Cement Tower. IEEE Trans. Instrum. Meas. 2021, 70. [Google Scholar] [CrossRef]
- Tschopp, M.A.; Miller, J.D.; Oppedal, A.L.; Solanki, K.N. Characterizing the local primary dendrite arm spacing in directionally solidified dendritic microstructures. Metall. Mater. Trans. A 2014, 45, 426–437. [Google Scholar] [CrossRef]
- Tschopp, M.A.; Miller, J.D.; Oppedal, A.L.; Solanki, K.N. Evaluating local primary dendrite arm spacing characterization techniques using synthetic directionally solidified dendritic microstructures. Metall. Mater. Trans. A 2015, 46, 4610–4628. [Google Scholar] [CrossRef]
- Li, Z.Y.; Wang, J.S.; Xing, H.; Jin, K.; Huang, H.B. Determining dendrite arm spacing in directional solidification using a fast Fourier transform method. Comp. Mater. Sci. 2020, 173, 109463. [Google Scholar] [CrossRef]
- Monroe, W.S.; Monroe, C.; Foley, R. The spacing transform: Application and validation. Mater. Charact. 2017, 127, 88–94. [Google Scholar] [CrossRef]
- Gawert, C. Automatic Determination of Secondary Dendrite Arm Spacing in AlSi-Cast Microstructures. Materials 2021, 14, 2827. [Google Scholar] [CrossRef]
- Illingworth, J.; Kittler, J. The Adaptive Hough Transform. IEEE Trans. Pattern Anal. 1987, 9, 690–698. [Google Scholar] [CrossRef] [PubMed]
- Dijk, J. Local adaptive contrast enhancement for color images. Vis. Inf. Process. 2007. [Google Scholar] [CrossRef]
- Byrd, R.H.; Chin, G.M.; Neveitt, W.; Nocedal, J. On the Use of Stochastic Hessian Information in Optimization Methods for Machine Learning. SIAM. J Optim. 2011, 21, 977–995. [Google Scholar] [CrossRef]
- Narendra, P.M.; Fitch, R.C. Real-time adaptive contrast enhancement. IEEE Trans. Pattern Anal. 1981, 3, 655–661. [Google Scholar] [CrossRef]
- Holland, J.H. Genetic algorithms and the optimal allocation of trials. SIAM J. Comput. 1973, 2, 88–105. [Google Scholar] [CrossRef]
- Chentoufi, A.; Fatmi, A.E.; Bekri, A.; Benhlima, S.; Sabbane, M. Genetic algorithms and dynamic weighted sum method for RNA alignment. In Proceedings of the 2017 Intelligent Systems and Computer Vision (ISCV), Fez, Morocco, 17–19 April 2017. [Google Scholar] [CrossRef]
- Liang, X.; Liu, L.; Luo, M.; Yan, Z.; Xin, Y. Robust Infrared Small Target Detection Using Hough Line Suppression and Rank-Hierarchy in Complex Backgrounds. Infrared Phys. Technol. 2022, 120, 103893. [Google Scholar] [CrossRef]
- Warnken, N.; Reed, R.C. On the Characterization of Directionally Solidified Dendritic Microstructures. Metall. Mater. Trans. A 2011, 42, 1675–1683. [Google Scholar] [CrossRef]
Method | Evaluation Function Values |
---|---|
Histogram equalization | 0.74 |
Laplace enhancement | 0.48 |
Proposed method | 0.79 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Wang, Y.; He, Q.; Xie, Z. Automatic Detection of Cast Billet Dendrite Based on Improved Hough Transform. Crystals 2024, 14, 265. https://doi.org/10.3390/cryst14030265
Wang Y, He Q, Xie Z. Automatic Detection of Cast Billet Dendrite Based on Improved Hough Transform. Crystals. 2024; 14(3):265. https://doi.org/10.3390/cryst14030265
Chicago/Turabian StyleWang, Yuhan, Qing He, and Zhi Xie. 2024. "Automatic Detection of Cast Billet Dendrite Based on Improved Hough Transform" Crystals 14, no. 3: 265. https://doi.org/10.3390/cryst14030265
APA StyleWang, Y., He, Q., & Xie, Z. (2024). Automatic Detection of Cast Billet Dendrite Based on Improved Hough Transform. Crystals, 14(3), 265. https://doi.org/10.3390/cryst14030265