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

Function cameraSourceToMatrix

src/detect_grasps_python.cpp:77–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77Eigen::MatrixXi cameraSourceToMatrix(int *array, int rows, int cols) {
78 Eigen::MatrixXi mat(rows, cols);
79
80 for (int i = 0; i < cols; i++) {
81 for (int j = 0; j < rows; j++) {
82 mat(j, i) = array[i * rows + j];
83 }
84 }
85
86 return mat;
87}
88
89int *cvMatToArray(const cv::Mat &image) {
90 printf("HELLO\n");

Callers 3

augmentedCloudToCloudFunction · 0.85
createCloudFunction · 0.85
createCloudNormalsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected