View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
grain and particle analysis with line intersection method

5.0 | 3 ratings Rate this file 31 Downloads (last 30 days) File Size: 72.2 KB File ID: #35203 Version: 1.6
image thumbnail

grain and particle analysis with line intersection method



23 Feb 2012 (Updated )

This GUI allows you to analyze the size of grains in a micrograph with the 'line cut' method.

| Watch this File

File Information

This program allows you to analyze the size of grains in a micrograph with the intersection method arranged in a user-friendly GUI.
After loading the micrograph the program puts lines on the surface. Now you have to use the cursor to click on the intercept of the lines with the grain boundaries. Concluding you get an editable and savable histogram and a txt-file containing the length of the grains.
You can also analyze existing txt-files to get the histogram (including lognormal distribution fitting) or an empirical cumulative distribution function plot of different micrographs and you can compare them in one chart.
In addition you get a lot of features (e.g. rotate image) and fully control about many settings.

The GUI should be mostly self-explanatory, anyway I recommend this screencast, in which all features are explained.
Alternative on YouTube:
as playlist:
Part 1 (Image):

Part 2 (File):

Part 3 (CDF):

Part 4 (rotate image):

Part 5 (save settings):

If you have special questions please check the header of the .m file and email the responsible person:

This submission based on the idea and code of Matthias Funk from the Karlsruhe Institute of Technology (KIT), IAM-WBM, Nachwuchsgruppe für microreliability. This project was financed by DFG-SFB499N01.
The lognormal distribution fitting in histogram was created by Jochen Lohmiller based on:
C.E. Kril, R. Birringer, Esimating grain-size distributions in nanocrystalline materials from X-ray diffraction profile analysis, Phil. Mag. A, 77: 3, 621 — 640

Required Products MATLAB
MATLAB release MATLAB 7.13 (R2011b)
Other requirements Hints: GUI appearence is optimized for Windows 7 Aero Style! The style of GUI elements is not checked on other OS layouts! GUI was build on this MATLAB 7.13 but should run on earlier versions too.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
18 Nov 2016 Sebastian Medrano

31 Oct 2013 Aeriel

Aeriel (view profile)

When I use this code I get multiple openfig.m errors.

Comment only
13 Jul 2012 NZN NZN

Excellent program, but can I use this for analysing particles size which are aggregated particles, and some of them are separated from others (ther are some empty space or gap between them)?

Thank you in advance

18 Jun 2012 zhou jianshan

24 Feb 2012 1.2

- Uploaded alternative Screencast (due to traffic limitation on

26 Feb 2012 1.4

added all Screencasts to YouTube; small fix in CDF (to avoid errors at multiple file selection)

26 Feb 2012 1.5

changed title

02 Apr 2012 1.6

added contact data; 'Line Cut' = 'intersection method'

Contact us