MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / refineSkeletonJoints

Method refineSkeletonJoints

detection/src/skeleton_detection.cpp:193–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193void
194SkeletonDetection::refineSkeletonJoints(const
195 Eigen::Matrix4d& registration_matrix)
196{
197 for(auto it = detection_msg_.joints.begin(),
198 end = detection_msg_.joints.end(); it != end; ++it)
199 {
200 Eigen::Vector4d refined = registration_matrix
201 * Eigen::Vector4d(it->x, it->y, it->z, 1.0);
202 it->x = refined(0); it->y = refined(1); it->z = refined(2);
203 }
204}
205
206std::ostream&
207operator<<(std::ostream& ss, const SkeletonDetection& s)

Callers 1

detection_cbFunction · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected