gadomski/cpd

obtain the vector field using the nonrigid transformation

lujaindong opened this issue · 1 comments

Hi I am using the nonrigid transformation to align my own data sets. The code works fine but I can't find any output results about the registration. How can I get the vector field using this CPD? Any idea?

You can get the vector field by subtracting the pre-registration points from the post-registration points:

cpd::Matrix fixed = load_points_from_somewhere();
cpd::Matrix moving = load_points_from_somewhere();
cpd::NonrigidResult result = cpd::nonrigid(fixed, moving);
cpd::Matrix vector_field = result.points - moving;