We present this code based on existing functions present at PoreSpy.https://porespy.org/
The code segments the interconnected pores of a certain material into different units.
The function can be found in the file snow_poros.py
Installation of this code should follow these instructions
./configure --prefix= make make install
The actual code that performs the steps of the SNOWPOROS algorithm can be found in the file snow_poros.py
An real example that segments a binary image (image3_.tiff)is illustrated in the file example_using_snowporos.py.
This code is released under the MIT License, see more in license_terms.txt.