I have a 3d array
float*** gradientStrengths = new float**[cells_in_y_dir];
After filling it up, how do I pass it to an opencv mat ?
Mat = gradientStrengths;
1 | initial version |
I have a 3d array
float*** gradientStrengths = new float**[cells_in_y_dir];
After filling it up, how do I pass it to an opencv mat ?
Mat = gradientStrengths;
2 | No.2 Revision |
I have a 3d array
float*** gradientStrengths = new float**[cells_in_y_dir];
After filling it up, how do I pass it to an opencv mat ?
Mat cv::Mat gradientStrengths_mat = gradientStrengths;
Also, how do I extract the 3rd dimension ? there is gradientStrengths_mat.row(0) or col(0) but no depth(0) ?