| 75 | } |
| 76 | |
| 77 | Eigen::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 | |
| 89 | int *cvMatToArray(const cv::Mat &image) { |
| 90 | printf("HELLO\n"); |
no outgoing calls
no test coverage detected