siavashk / pycpd

Pure Numpy Implementation of the Coherent Point Drift Algorithm
MIT License
510 stars 115 forks source link

Number of Iterations #45

Closed sandwich25 closed 4 years ago

sandwich25 commented 4 years ago

Hi, is there any way I can increase the number of iterations? I noticed for me, it always stop at 100 iterations.

gattia commented 4 years ago

Indeed. When you instantiate your registration you can pass the variable max_iterations.

E.g.,

reg = AffineRegistration(**{'X': X, 'Y': Y, 'max_iterations': 500})

If you don't specify, the max is 100. Looks like you are hitting that max.

sandwich25 commented 4 years ago

Thank you!