porespy
                                
                                 porespy copied to clipboard
                                
                                    porespy copied to clipboard
                            
                            
                            
                        Pass distance transform as argument into `_estimate_overlap`
The distance transform is useful in network extraction algs and therefore often needs to be computed anyway. Why not pass dt into _estimate_overlap instead of calculating it twice? I propose having argument dt and if not None then the overlap is calculated using the distance transform.
See the code I am referring to here