Efficient Belief propagation for Early Vision