Closed xmq731 closed 9 years ago
There's no rotation matrix available for the nonrigid transformation; compare the transformed points to their original location to get the displacement information. By default, the command-line executable provides these deltas in the fourth through sixth columns.
For the rigid transformation, we can provide a 4x4 transformation matrix, though right now it is not available to either the API or the command-line output. I'll add that ability to fix that part of this issue.
@xmq731 the transformation matrix found by the rigid registration is now available as the .transformation
member variable of the Result object: https://github.com/gadomski/cpd/blob/master/include/cpd/registration.hpp#L41.
Note that this is only available for rigid registrations — no transformation is available for nonrigid registration at this time, since I'm not sure that transformation matrix is all that useful. If it would be useful I could expose it.
This also doesn't spit out the transformation matrix to standard output when running CPD from the command line. Were use you using the API or the command-line invocation?
Closing as fixed-part-of-it.
so far, Rigrid model was sloved,UnRigrid model was hard to knuw,that all.Thanks