This file includes image processing tasks required to generate grain analysis summary and to capture it in a csv file
This code performs grain size distribution analysis and dumps results into a csv file.
- Read image and define pixel size (if needed to convert results into microns, not pixels)
- Denoising, if required and threshold image to separate grains from boundaries. 2
- Clean up image, if needed (erode, etc.) and create a mask for grains
- Label grains in the masked image
- Measure the properties of each grain (object)
- Output results into a csv file