Petrographical thin section Holistically-Nested Edge Detection algorithm (HED) for grain detection and counting (WORK IN PROGRESS)
A simple program to use the HED Algorithm in a thin section with an aditional canny filter applied.
Example with olivine thin section XPL
Example with sandstone thin section XPL
References
https://github.com/opencv/opencv/blob/master/samples/dnn/edge_detection.py