| 165 | } // unnamed namespace |
| 166 | |
| 167 | void CpdFilter::cpd_rigid(PointViewPtr fixed, PointViewPtr moving) |
| 168 | { |
| 169 | cpd::Matrix fixedMatrix = pointViewToEigen(fixed); |
| 170 | cpd::Matrix movingMatrix = pointViewToEigen(moving); |
| 171 | cpd::RigidResult result = cpd::rigid(fixedMatrix, movingMatrix); |
| 172 | movePoints(moving, result.points); |
| 173 | addMetadata(this, static_cast<cpd::Result>(result)); |
| 174 | MetadataNode root = getMetadata(); |
| 175 | root.add("transform", result.matrix()); |
| 176 | } |
| 177 | |
| 178 | void CpdFilter::cpd_affine(PointViewPtr fixed, PointViewPtr moving) |
| 179 | { |
no test coverage detected