MCPcopy Create free account
hub / github.com/PDAL/PDAL / cpd_rigid

Method cpd_rigid

plugins/cpd/filters/CpdFilter.cpp:167–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165} // unnamed namespace
166
167void 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
178void CpdFilter::cpd_affine(PointViewPtr fixed, PointViewPtr moving)
179{

Callers 1

changeMethod · 0.95

Calls 5

movePointsFunction · 0.85
addMetadataFunction · 0.85
pointViewToEigenFunction · 0.70
getMetadataFunction · 0.50
addMethod · 0.45

Tested by

no test coverage detected