A sampling algorithm for occlusion robust multi target detection