MCPcopy Create free account
hub / github.com/atenpas/gpd / copyImageMatrix

Function copyImageMatrix

src/detect_grasps_python.cpp:331–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331void copyImageMatrix(const cv::Mat &src, cv::Mat &dst, int idx_in) {
332 for (int j = 0; j < 60; j++) {
333 for (int k = 0; k < 60; k++) {
334 for (int l = 0; l < 15; l++) {
335 int idx_src[3] = {j, k, l};
336 int idx_dst[4] = {idx_in, j, k, l};
337 dst.at<uchar>(idx_dst) = src.at<uchar>(idx_src);
338 }
339 }
340 }
341}
342
343void handToTransform4x4(const Hand &hand, cv::Mat &tf, int idx_in) {
344 const Eigen::Matrix3d orient = hand.getFrame();

Callers 1

calcDescriptorsHelperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected