2.3.1. Localizing and segmenting pigs image by ellipse fitting
To localize pigs within the pen, an ellipse fitting algorithm using
Generalised Hough Transform as introduced by Davies (1989) was
adapted. In the next step, the corpus image was separated from the
head by using the same ellipse fitting algorithm.