A Matlab toolbox to analyze grain boundary inclination from SEM images¶
First of all, download the source code of the Matlab toolbox.
Source code is hosted at Github.
Download source code as a .zip file.
This toolbox helps to find the grain boundary inclination from two micrographs from serial polishing. At least three marks such as microindents are needed for registration of the images.
Examples of micrographs from serial polishing.
To get started with this toolbox, clone the repository, then run Matlab, and cd into the folder containing this README file. Then add the package path to the Matlab search path by typing “path_management”. Finally you can start the launcher by typing demo or A_gui_gbinc at the Matlab command prompt.
How to use the toolbox?¶
Run the function A_gui_gbinc.m.
Select your first image before serial polishing.
Do the calibration to get the factor scale.
Do the edge detection.
Repeat the same operation for the second image obtained after serial polishing.
Do the overlay :
If control points do not exist (as on the first run), a window appears so you can define them.
Define three control points per image.
Select a point on the figure on the left, then on the figure on the right, and repeat this operation 2 times.
Close the window for the selection of control points (Ctrl+W).
Control points are saved in a .mat file in the same folder as the first image loaded.
If the control points are not satisfying, delete them and redo the step 6 to set new control points and to get a new overlay.
Optionally, save the overlay as
screenshot.pngin the same folder as the first image loaded.Measure the distance between the edges (Vickers faces) or ridges of a single Vickers indent (see Figure 43).
Measure the distance between the grain-boundary edges.
The grain-boundary inclination is reported in degrees.
Calculation of the thickness of removed material after polishing
(29)¶\[h = \frac{d}{\tan(90 - \alpha)}\]
With \(d\) the distance between edges (Vickers faces) or ridges of a unique Vickers indent (obtained before and after polishing), and \(\alpha\) the angle between the Vickers indent and the surface of the sample (see Figure 43).
Calculation of grain boundary inclination
(30)¶\[GB_{inc} = \tan \left(\frac{d_{GB}}{h}\right)\]
With \(d_{GB}\) the distance between grain boundary traces (obtained before and after polishing), and \(h\) the thickness of removed material after polishing calculated
Figure 41 Screenshots of the Matlab GUI used to calculate grain boundary inclination.¶
Figure 43 Schemes of a) the top view of a Vickers indent (before and after polishing) and of b) the cross-section view.¶
Note
Images should have the same scale factor.
Note
Distances and grain boundary inclination values are obtained with the mean scale factor of the two images.
See also¶
Links¶
Acknowledgements¶
Parts of this work were supported under the NSF/DFG Materials World Network program (DFG ZA 523/3-1 and NSF-DMR-1108211).
Keywords¶
Matlab ; Graphical User Interface (GUI) ; Grain Boundaries ; Polycrystalline Metals ; Grain Boundary Inclination ; Serial Polishing ; Scanning Electron Microscope (SEM).