| 121 | } |
| 122 | |
| 123 | PointViewPtr 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 | |
| 150 | namespace |
| 151 | { |
no test coverage detected