Image Segmentation Applied to the Study of Micrographs of Cellular Solids