Binaryzation-based EBSD image processing and grain boundary extraction method
Through the binary-based EBSD image processing and grain boundary extraction method, the problems of high requirements for the sample preparation process of metal materials and incomplete grain boundary breakpoint processing in the prior art are solved, and the computational efficiency of crystal plastic finite element simulation is improved and quality, achieving more realistic and reliable model building.
Patent Information
- Application Number
- CN202411573213.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2044-11-06
AI Technical Summary
The existing crystal plastic finite element modeling method based on EBSD data has high requirements for the sample preparation process of metal material polishing and processing, and cannot effectively deal with breakpoints at grain boundary discontinuities, resulting in low computational efficiency and quality of crystal plastic finite element simulation. .
Using binarization-based EBSD image processing and grain boundary extraction methods, the initial grain image is acquired, data analysis and processing is performed, small angle grain boundary is eliminated, and grain boundary breakpoints are patched through cellular automata to finally create a complete Grain boundary and grain region unit collection to construct a crystal finite element model.
The calculation efficiency and quality of crystal plastic finite element simulation are improved, the authenticity and reliability of the model are enhanced, and the requirements for the sample preparation process of metal material polishing treatment are reduced.
Smart Images

Figure CN119416581A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of finite element numerical simulation, and in particular to an EBSD image processing and grain boundary extraction method based on binarization. Background Art
[0002] With the rapid development of computational geometry and computer graphics technology, as well as the in-depth study of the relationship between plastic deformation and grain evolution of metal materials at the mesoscopic scale at home and abroad, relevant scholars have proposed several types of modeling methods that include grain boundary structures inside polycrystals. Currently, the most widely used methods include the Voronoi diagram method and the Monte Carlo method. The Voronoi diagram divides the space into different regions around several seeds by distance. This distance-based division method makes the Voronoi diagram very effective in expressing spatial proximity. The Voronoi diagram has good flexibility and scalability in meshing and can be used to generate various types of mesh structures. This makes the Voronoi method widely used in crystal finite element modeling at home and abroad.
[0003] However, the crystal finite element model established by this method is quite different from the real grain structure. It depends on the seed layout and cannot reflect the complex convex and concave contours of the real grains, resulting in low reliability of numerical simulation prediction. As a result, when the crystal finite element model constructed by the Voronoi diagram method is used for elastic-plastic mechanical simulation, the stress-strain results of the real grain structure of the metal material after plastic deformation cannot be obtained, resulting in a large systematic deviation between the simulation results and the experimental data, which has great limitations in verifying the authenticity and accuracy of the mathematical model of crystal plastic evolution. Therefore, it is particularly necessary to develop a new method for constructing a crystal plastic finite element model to improve the accuracy of the numerical calculation results of crystal plastic deformation at the mesoscopic scale.
[0004] To solve this problem, some scholars invented the patent of "A method and application of crystal plasticity finite element modeling based on EBSD data". They used the Channel5 platform to analyze EBSD images and process EBSD data in MTEX, exported grain boundary contour data, and imported it into Abaqus to establish a geometric model. The crystal model established by this method contains the real grain size, morphology and grain orientation of the material, which improves the accuracy of crystal plasticity finite element simulation; but there are also some disadvantages in this method: First, the image taken by EBSD is directly used for modeling, which puts high requirements on the polishing and sample preparation process of metal materials; there is no corresponding treatment plan for the inevitable scratches in the sample preparation process and the pores caused by the defects of the material itself during the slicing corrosion process; this extremely high requirement for the surface quality of the sample limits the physical size of the model area. If the modeling surface range is expanded, the above defects will inevitably appear on the sample surface; second, the small-angle grain boundaries inside the grains in the EBSD images and the breakpoints at the discontinuous grain boundaries due to poor shooting resolution are not processed, which makes it difficult for the calculation efficiency and quality of the subsequent crystal plasticity finite element simulation. Summary of the invention
[0005] The embodiment of the present invention provides an EBSD image processing and grain boundary extraction method based on binarization, so as to at least solve the technical problems that the crystal plasticity finite element modeling method based on EBSD data in the prior art has very high requirements on the polishing and sample preparation process of metal materials, and does not process the breakpoints at the discontinuities of grain boundaries, resulting in low calculation efficiency and quality of crystal plasticity finite element simulation.
[0006] According to one aspect of an embodiment of the present invention, a method for EBSD image processing and grain boundary extraction based on binarization is provided. The method may include: obtaining a target file, performing data analysis on the initial grain image in the target file through target software, and obtaining the grain size, morphology structure and grain orientation of the initial grain image, wherein the initial grain image is an image taken by EBSD; processing the initial grain image to obtain a target grain image, and defining the crystal orientation angle difference between two adjacent grain regions in the target grain image as a grain orientation difference; if the grain orientation difference is less than a preset degree, defining the grain boundary between two adjacent grain regions in the target grain image as a small-angle grain boundary, and traversing the target grain image to remove the small-angle grain boundary; when there is a breakpoint in the grain boundary between two adjacent grain regions in the target grain image, A cellular automaton repairs the breakpoints of the grain boundaries of two adjacent grain regions in the target grain image to obtain a complete target grain image; the row and column numbers of each pixel of each grain boundary and each grain region of the complete target grain image are obtained, a grain boundary unit set is created based on the row and column numbers of each pixel of each grain boundary of the complete target grain image, and a unit set of each grain region is created based on the row and column numbers of each pixel in each grain region of the complete target grain image; the information of each grain boundary unit set and each grain region unit set is written into the unit set keyword corresponding to the target model file to obtain each target grain boundary unit set, each target grain region unit set and a crystal finite element model corresponding to the target model file.
[0007] Optionally, the process of processing the initial grain image to obtain the target grain image is: removing noise points and filling pores and scratches on the initial grain image and then performing binarization processing to obtain the target grain image.
[0008] Optionally, defining the difference in crystal orientation angles between two adjacent grain regions in the target grain image as a grain orientation difference includes: subtracting the crystal orientation angles of two adjacent grain regions in the target grain image to obtain the grain orientation difference.
[0009] Optionally, the process of repairing the breakpoints of the grain boundary between two adjacent grain regions in the target grain image by cellular automaton to obtain a complete target grain image is: repairing the grain boundary breakpoints between two adjacent grain regions in the target grain image by grain boundary cells and cells within the grain region to obtain a complete target grain image, wherein, during the repair process, at least 5 of the 8 cell states adjacent to the grain boundary cell are cells within the grain region, 1 represents the grain boundary cell, and 0 represents the cell within the grain region.
[0010] Optionally, after obtaining each target grain boundary unit set, each target grain area unit set and the crystal finite element model corresponding to the target model file, the method also includes: exporting the simulation results of the macro-basic cutting simulation of the target material, extracting the displacement data of the grid nodes of the simulation results, filling the displacement data with spline interpolation, so that the number of displacement data after interpolation and filling corresponds to the number of grid nodes at the boundary of the crystal finite element model; adding the result after spline interpolation and filling of the displacement data to the boundary condition keyword corresponding to the target model file, and obtaining the crystal finite element model after adding the boundary conditions.
[0011] Beneficial effects of the present invention: The present invention proposes an EBSD image processing and grain boundary extraction method based on binarization, wherein a corresponding Nset set is created with the node numbers contained in each grain region, and the node numbers belonging to the same grain are written into the Nset set using MATLAB, each Nset set represents the creation of a grid model of a grain, and different Nset sets are created cyclically until the construction of all grain grid models is completed; the finite element simulation calculation of the crystal structure can solve the problem that the plastic deformation of the material microstructure is difficult to monitor through the existing measuring equipment, and the crystal plastic deformation and microstructure evolution process can be predicted more accurately, but the difference between the crystal finite element model and the actual grain structure size and morphology affects the accuracy of the finite element numerical calculation results. In view of the limitations of the existing crystal finite element modeling, the present invention uses EBSD data to establish a finite element model based on the real polycrystalline structure at the mesoscopic scale of the metal material, and the model contains the actual grain size, morphology structure and orientation information, which can improve the authenticity and reliability of the crystal plastic finite element simulation calculation. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings: Figure 1 is a flow chart of a method for EBSD image processing and grain boundary extraction based on binarization according to an embodiment of the present invention; Figure 2 is a schematic diagram of a crystal finite element model building process according to an embodiment of the present invention; Figure 3 Schematic diagram of assigning boundary conditions to a finite element model according to an embodiment of the present invention. DETAILED DESCRIPTION
[0013] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only embodiments of a part of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0014] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0015] Example 1 According to an embodiment of the present invention, a method for EBSD image processing and grain boundary extraction based on binarization is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system containing at least one set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.
[0016] Figure 1 is a flow chart of a method for EBSD image processing and grain boundary extraction based on binarization according to an embodiment of the present invention. Figure 1 As shown, the method may include the following steps: Step S101, obtaining a target file, and performing data analysis on an initial grain image in the target file through target software to obtain grain size, morphology structure and grain orientation of the initial grain image, wherein the initial grain image is an image taken by EBSD.
[0017] In the technical solution provided in the above step S101 of the present invention, the target file is a .ctf file, which is a file containing an initial grain image, and the initial crystal image is a grain metallographic diagram. The target software is AZtecCrystal, and the grain metallographic diagram in the .ctf file is processed by the AZtecCrystal software to obtain the grain size, morphology structure and grain orientation of the initial grain image. Figure 2is a schematic diagram of a crystal finite element model building process according to an embodiment of the present invention, Figure 2 (a) is a crystal metallographic image taken by Electron Backscattered Diffraction (EBSD).
[0018] Step S102 , processing the initial grain image to obtain a target grain image, and defining the difference in crystal orientation angles between two adjacent grain regions in the target grain image as a grain orientation difference.
[0019] In the technical solution provided in the above step S102 of the present invention, the grain metallographic image is processed to obtain a target grain image, and the difference in crystal orientation angles between two adjacent grain regions in the target grain image is defined as the grain orientation difference.
[0020] Step S103 , if the grain orientation difference is less than a preset degree, the grain boundary between two adjacent grain regions in the target grain image is defined as a low-angle grain boundary, and the target grain image is traversed to remove the low-angle grain boundary.
[0021] In the technical solution provided in the above step S103 of the present invention, when the grain orientation difference is less than a preset degree, the preset degree is 10°, the grain boundary between two adjacent grain regions in the target grain image is defined as a small-angle grain boundary, the target grain image is traversed, and all small-angle grain boundaries in the grain image are eliminated.
[0022] Step S104 , when there is a breakpoint in the grain boundary between two adjacent grain regions in the target grain image, the breakpoint in the grain boundary between the two adjacent grain regions in the target grain image is repaired by a cellular automaton to obtain a complete target grain image.
[0023] In the technical solution provided in the above step S104 of the present invention, if there is a breakpoint at the grain boundary between two adjacent grain regions in the target grain image, the breakpoint at the grain boundary between the two adjacent grain regions in the target grain image is repaired by a cellular automaton to obtain a complete target grain image.
[0024] Step S105, obtaining the row and column numbers of each pixel of each grain boundary and each grain region of the complete target grain image, creating a grain boundary unit set based on the row and column numbers of each pixel of each grain boundary of the complete target grain image, and creating a unit set of each grain region based on the row and column numbers of each pixel in each grain region of the complete target grain image.
[0025] In the technical solution provided in the above step S105 of the present invention, the row and column numbers of each pixel of each grain boundary and each grain region of the complete target grain image are obtained, and the row and column numbers are the positions of each pixel of each grain boundary in the complete target grain image. Each pixel can be a small square, and the coordinate information of the four vertices of the small square is arranged in a certain order to obtain a grain boundary unit set, and the row and column numbers are the positions of each pixel in each grain region in the complete target grain image. Each pixel can be a small square, and the coordinate information of the four vertices of the small square is arranged in a certain order to obtain a unit set of each grain region. For example, a grain boundary has 1 pixel point, and 1 pixel point has 4 nodes. The 4 nodes are written in a certain form, for example: *NODE 1,0,0,0 2,0,a,0 3,a,0,0 4,a,a,0 Among them, 1, 2, 3, and 4 represent 4 nodes, (0, 0) represents the coordinates of the first node, (0, a) represents the coordinates of the second node, (a, 0) represents the coordinates of the third node, and (a, a) represents the coordinates of the fourth node. When the node has only x and y coordinates, the last column is 0. When there is a z coordinate, the last column is the z coordinate. Rewrite the *NODE form into the *ELEMENT form: *ELEMENT 1,2,3,4 Therefore, a grain boundary has a node set of 1 pixel: *NSET 1,2,3,4 The grain boundary element set is: *ELESET (unit number 1), (unit number 2) .....(unit number n) Among them, one unit is one pixel point; and so on, the grain boundary unit set and the unit set of each grain region are obtained.
[0026] Step S106, writing the information of each grain boundary unit set and each grain region unit set into the unit set keyword corresponding to the target model file, and obtaining each target grain boundary unit set, each target grain region unit set and crystal finite element model corresponding to the target model file.
[0027] In the technical solution provided in the above step S106 of the present invention, the information of each grain boundary unit set and each grain region unit set is written into the Nset keyword corresponding to the inp model file, and each target grain boundary unit set, each target grain region unit set and the crystal finite element model corresponding to the target model file are obtained. Figure 2 (c) is the crystal finite element model.
[0028] The above method of this embodiment is further introduced below.
[0029] As an optional embodiment, step S102, the process of processing the initial grain image to obtain the target grain image is: removing noise points and filling pores and scratches on the initial grain image and then performing binarization processing to obtain the target grain image.
[0030] In this embodiment, the initial grain image is subjected to binarization processing after noise removal and pore scratch filling in MATLAB to obtain the target grain image. Figure 2 (b) is the target grain image.
[0031] As an optional implementation manner, step S102, defining the difference in crystal orientation angles between two adjacent grain regions in the target grain image as a grain orientation difference, includes: subtracting the crystal orientation angles of two adjacent grain regions in the target grain image to obtain the grain orientation difference.
[0032] As an optional implementation method, step S104, the process of repairing the breakpoints of the grain boundary between two adjacent grain regions in the target grain image by cellular automaton to obtain a complete target grain image is: repairing the grain boundary breakpoints between two adjacent grain regions in the target grain image by grain boundary cells and cells in the grain region to obtain a complete target grain image, wherein, during the repair process, at least 5 of the 8 cell states adjacent to the grain boundary cell are cells in the grain region, 1 represents the grain boundary cell, and 0 represents the cell in the grain region.
[0033] As an optional implementation method, step S106, after obtaining each target grain boundary unit set, each target grain area unit set and the crystal finite element model corresponding to the target model file, the method also includes: exporting the simulation results of the macro-basic cutting simulation of the target material, extracting the displacement data of the grid nodes of the simulation results, filling the displacement data with spline interpolation, so that the number of displacement data after interpolation and filling corresponds to the number of grid nodes at the boundary of the crystal finite element model; adding the result after spline interpolation and filling of the displacement data to the boundary condition keyword corresponding to the target model file, and obtaining the crystal finite element model after adding the boundary conditions.
[0034] In this embodiment, Figure 3 is a schematic diagram of assigning boundary conditions to a finite element model according to an embodiment of the present invention, Figure 3 The orange-yellow box in the middle is spline interpolation filling, so that the number of displacement data after interpolation filling corresponds to the number of mesh nodes at the boundary of the crystal finite element model. The result after spline interpolation filling of the displacement data is added to the Boundary keyword of the .inp model to complete the boundary conditions of the Abaqus finite element model and obtain the crystal finite element model after adding the boundary conditions.
[0035] In an embodiment of the present invention, a target file is obtained, and data analysis is performed on an initial grain image in the target file through a target software to obtain the grain size, morphology structure and grain orientation of the initial grain image, wherein the initial grain image is an image taken by EBSD; the initial grain image is processed to obtain a target grain image, and the difference in crystal orientation angles between two adjacent grain regions in the target grain image is defined as a grain orientation difference; if the grain orientation difference is less than a preset degree, the grain boundary between two adjacent grain regions in the target grain image is defined as a small-angle grain boundary, and the target grain image is traversed to remove the small-angle grain boundary; when a breakpoint exists in the grain boundary between two adjacent grain regions in the target grain image, the breakpoint of the grain boundary between two adjacent grain regions in the target grain image is repaired by a cellular automaton to obtain a complete target grain image; the row and column numbers of each grain boundary and each pixel of each grain region of the complete target grain image are obtained, and based on the complete target grain image A grain boundary unit set is created based on the row and column numbers of each pixel of each grain boundary, and a unit set of each grain area is created based on the row and column numbers of each pixel in each grain area of the complete target grain image; the information of each grain boundary unit set and each grain area unit set is written into the unit set keyword corresponding to the target model file, and each target grain boundary unit set, each target grain area unit set and crystal finite element model corresponding to the target model file are obtained, which solves the technical problem that the crystal plasticity finite element modeling method based on EBSD data in the prior art has very high requirements on the polishing and sampling process of metal materials and does not process the breakpoints at the discontinuity of grain boundaries, resulting in low computational efficiency and quality of crystal plasticity finite element simulation, and achieves the technical effect of reducing the requirements of the crystal plasticity finite element modeling method based on EBSD data on the polishing and sampling process of metal materials, processing the breakpoints at the discontinuity of grain boundaries, and improving the computational efficiency and quality of crystal plasticity finite element simulation.
[0036] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0037] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0038] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0039] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0040] In addition, each functional unit in each embodiment of the present invention may be integrated into a first processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0041] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for EBSD image processing and grain boundary extraction based on binarization, characterized in that: include: Obtaining a target file, and performing data analysis on an initial grain image in the target file through target software to obtain grain size, morphology structure, and grain orientation of the initial grain image, wherein the initial grain image is an image taken through EBSD; The initial grain image is processed to obtain a target grain image, and the difference in crystal orientation angles between two adjacent grain regions in the target grain image is defined as a grain orientation difference; If the grain orientation difference is less than a preset degree, the grain boundary between two adjacent grain regions in the target grain image is defined as a small-angle grain boundary, and the target grain image is traversed to remove the small-angle grain boundary; When there is a breakpoint in the grain boundary between two adjacent grain regions in the target grain image, the breakpoint in the grain boundary between the two adjacent grain regions in the target grain image is repaired by a cellular automaton to obtain a complete target grain image; Acquire the row and column numbers of each pixel of each grain boundary and each grain region of the complete target grain image, create a grain boundary unit set based on the row and column numbers of each pixel of each grain boundary of the complete target grain image, and create a unit set of each grain region based on the row and column numbers of each pixel in each grain region of the complete target grain image; The information of each grain boundary unit set and each grain region unit set is written into the unit set keyword corresponding to the target model file, and each target grain boundary unit set, each target grain region unit set and crystal finite element model corresponding to the target model file are obtained.
2. The method according to claim 1, characterized in that The process of processing the initial grain image to obtain the target grain image is as follows: The initial grain image is subjected to binarization processing after noise removal and pore scratch filling to obtain the target grain image.
3. The method according to claim 1, characterized in that The crystal orientation angle difference between two adjacent grain regions in the target grain image is defined as the grain orientation difference, including: The crystal orientation angles of two adjacent grain regions in the target grain image are subtracted to obtain the grain orientation difference.
4. The method according to claim 1, characterized in that: The process of repairing the breakpoints of the grain boundary between two adjacent grain regions in the target grain image by cellular automation to obtain a complete target grain image is as follows: The grain boundary breakpoints between two adjacent grain regions in the target grain image are repaired by using grain boundary cells and cells in the grain region to obtain a complete target grain image, wherein during the repair process, at least 5 of the 8 cell states adjacent to the grain boundary cell are cells in the grain region, 1 represents the grain boundary cell, and 0 represents the cell in the grain region.
5. The method according to claim 1, characterized in that After obtaining each target grain boundary unit set, each target grain region unit set and the crystal finite element model corresponding to the target model file, the method further includes: Export the simulation results of the macro-basic cutting simulation of the target material, extract the displacement data of the mesh nodes of the simulation results, and fill the displacement data with spline interpolation, so that the number of displacement data after interpolation and filling corresponds to the number of mesh nodes at the boundary of the crystal finite element model; The result after the spline interpolation filling of the displacement data is added to the boundary condition keyword corresponding to the target model file to obtain the crystal finite element model after the boundary condition is added.
6. A computer system, characterized in that include: One or more processors, and a computer-readable storage medium for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method of claim 1.
7. A computer-readable storage medium, characterized in that Computer executable instructions are stored, and when the instructions are executed, they are used to implement the method of claim 1.
8. A computer program product, characterized in that The invention comprises computer executable instructions, which are used to implement the method of claim 1 when being executed.
Citation Information
Patent Citations
Numerical analysis method for rail rolling contact fatigue cracks in ABAQUS
CN110926942A
Parallel progressive-based method for constructing disturbance random pore model in polycrystal
CN115081188A
Method for measuring defect density of metal material
CN115563436A
Method for establishing continuous dynamic recrystallization model coupling macro-micro finite element model, crystal plasticity and cellular automaton
CN118248258A
Analyzing system of material characteristics of polycrystalline solid, analyzing method of material characteristics of polycrystalline solid, analyzing program of material characteristics of polycrystalline solid and recording medium
JP2009264750A