Sep 12, 2024
Read Image and Define Pixel Size
cv2, numpy, scipy, skimage, matplotlibcv2.imread in grayscale.Clean Up the Image (if needed)
cv2.threshold.Erosion and Dilation
cv2.erodecv2.dilateLabel the Grains
ndimage.label to assign labels to identified grains, based on connectivity.Measure the Properties of Each Grain
measure.regionprops to extract properties:
Output Results to CSV File