Automatic pore typing classification from 2D images