Restoration of confocal images for quantitative image analysis