Pore/cavity/skeletal classification and separation