PDollar algorithm Unity friendly