Algorithms for computer vision