Measuring the blood cells by means of an image segmentation