Shape matching with belief propagation: Using dynamic quantization to accomodate occlusion and clutter