Fast algorithms for estimating local image properties