Development of an leaf tracking algorithm on corn plants