Contour Integration in Artifical Neural Networks