gadomski / cpd

C++ implementation of the Coherent Point Drift point set registration algorithm.
http://www.gadom.ski/cpd
GNU General Public License v2.0
385 stars 122 forks source link

Add the ability to use callbacks. #131

Closed sudomakeinstall closed 6 years ago

sudomakeinstall commented 6 years ago

This pull request allows the user to add callbacks, which are called on each iteration of the CPD algorithm. The callbacks are stored as a vector of std::function specializations, such that function pointers, pointers to methods, and lambda functions may all be passed as callbacks. A simple example is also added.

This PR is a first step in addressing this issue.

gadomski commented 6 years ago

Great stuff, thanks so much! I'm going to take a look at #130 when I get a chance, I'm a bit buried in conference prep ATM.

sudomakeinstall commented 6 years ago

No worries--thanks very much for merging! Best of luck with the conference.