Efficient Algorithms for Large-Scale Image Analysis