A Matlab toolbox to analyze grain boundary inclination from SEM images ======================================================================== .. include:: includes.rst .. include:: source_code.rst 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 ? -------------------------- 1) Run the function `A_gui_gbinc.m. `_ 2) Select your first image before serial polishing. 3) Do the calibration to get the factor scale. 4) Do the edge detection. 5) Repeat the same operation for the second image obtained after serial polishing. 6) Do the overlay : - If control points don't exist (it's the case for the 1st time), a window appears and it is possible to define control points. - Define 3 control points per images. - 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 .mat file (in the same folder than the 1st picture loaded). 7) 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. 8) Save the overlay in the same folder than the 1st picture loaded (as a screenshot.png) (optional). 9) Do the measurement of the distance between edges (Vickers faces) or ridges of a unique Vickers indent (see :numref:`vickers_indent`). 10) Do the measurement of the distance between edges of a unique grain boundary. 11) The value of the grain boundary inclination is finally given in degrees. * Calculation of the thickness of removed material after polishing .. math:: h = \frac{d}{\tan(90 - \alpha)} :label: h_polished With :math:`d` the distance between edges (Vickers faces) or ridges of a unique Vickers indent (obtained before and after polishing), and :math:`\alpha` the angle between the Vickers indent and the surface of the sample (see :numref:`vickers_indent`). * Calculation of grain boundary inclination .. math:: GB_{inc} = \tan \left(\frac{d_{GB}}{h}\right) :label: gb_inclination With :math:`d_{GB}` the distance between grain boundary traces (obtained before and after polishing), and :math:`h` the thickness of removed material after polishing calculated .. only:: html .. figure:: ./_pictures/gui/gui_gb_inc.png.gif :scale: 100 % :align: center *Screenshots of the Matlab GUI used to calculate grain boundary inclination.* .. only:: latex .. figure:: ./_pictures/gui/gui_gb_inc.png :scale: 100 % :align: center *Screenshot of the Matlab GUI used to calculate grain boundary inclination.* .. figure:: ./_pictures/schemes_slip_transmission/Vickers_indent.png :name: vickers_indent :scale: 40 % :align: center *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 --------- `V. Randle and Dingley D., "Measurement of boundary plane inclination in a scanning electron microscope.", Scripta Metall., 1989, 23, pp. 1565–1569. `_ `V. Randle, "A methodology for grain boundary plane assessment by single-section trace analysis.", Scripta Mater., 2001, 44, pp. 2789-2794. `_ Links ------ - `Matlab - Interactive Exploration with the Image Viewer App `_ - `Matlab - Distance tool `_ - `Matlab - Image conversions `_ - `Matlab - Image filtering `_ - `Matlab - Control Point Selection Tool `_ - `Matlab - Spatial transformation from control point pairs `_ - `Matlab - Edge detection `_ Authors -------- Written by D. Mercier [1] and C. Zambaldi [1]. [1] Max-Planck-Institut für Eisenforschung, 40237 Düsseldorf, Germany 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).