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

Method change

plugins/cpd/filters/CpdFilter.cpp:123–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123PointViewPtr CpdFilter::change(PointViewPtr fixed, PointViewPtr moving)
124{
125 MetadataNode root = this->getMetadata();
126 root.add("method", this->m_method);
127 log()->get(LogLevel::Debug2)
128 << "filters.cpd running method:" << this->m_method << "\n";
129 if (this->m_method == "rigid")
130 {
131 this->cpd_rigid(fixed, moving);
132 }
133 else if (this->m_method == "affine")
134 {
135 this->cpd_affine(fixed, moving);
136 }
137 else if (this->m_method == "nonrigid")
138 {
139 this->cpd_nonrigid(fixed, moving);
140 }
141 else
142 {
143 std::stringstream ss;
144 ss << "Invalid cpd detection method: " << this->m_method;
145 throw pdal_error(ss.str());
146 }
147 return moving;
148}
149
150namespace
151{

Callers 1

runMethod · 0.95

Calls 8

cpd_rigidMethod · 0.95
cpd_affineMethod · 0.95
cpd_nonrigidMethod · 0.95
strMethod · 0.80
logFunction · 0.50
getMetadataMethod · 0.45
addMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected