Figure 4: Illustration of the Eulercharacteristic. The Eulercharacteristic is defined as the total number of objects in the image minus the number of holes in those objects. Exemplarily, the Eulercharacteristic of the given binary image is equal to −2. 
