1. A system, comprising: a memory operable to store: first light intensity information for a first pixel of an image that includes a dairy livestock; and second light intensity information for a second pixel of the image, wherein the second pixel is adjacent to the first pixel; and a processor communicatively coupled to the memory and operable to: determine that a difference between the first light intensity information and the second light intensity information exceeds a threshold; discard one of the first pixel or the second pixel; and determine a location of a teat of the dairy livestock based on the image, excluding the discarded pixel.