A robust measure for visual correspondence