The morphological closing is now defined as a dilation of the image with a specific structuring element, subsequently followed by an erosion with the same structuring element. A closing with a structuring element with a specific diameter leads to the filling of all (parts of) voids smaller than the size of the structuring element. By choosing a set of increasing circular structuring elements, a cumulative pore size distribution can be obtained.