Segmentation is based on porosity map. The 0, 1, 2, 3 and 9 represent macropore, microporous region 1 (high porosity), microporous region 2 (middle porosity), microporous region 3 (low porosity) and solid grain respectively.