 |
 |
 |
 |
 |
 |
 |
for
each pattern point p
|
|
|
for each scene point s
|
|
|
Determine translation so that p falls
on s;
|
|
count = 0;
|
|
|
for each translated pattern point q
|
|
|
Find the scene point r closest to q;
|
|
|
if (r is “close enough” to q)
count++;
|
|
|
Remember which p,s gives max count;
|
|