Add some alternative methods to calculate pore centroid and diameter