Mat gaborMat = new Mat(3, 3, CvType.CV_8UC1); float k[3][3] = { 1.0, -2.0, 1.0, 4.0, -2.0, -1.0, 4.0, -2.0, 2.0 } Hi! I am a fresh man here. Could I ask how I can initialize Mat with k[][]?
1 | initial version |
Mat gaborMat = new Mat(3, 3, CvType.CV_8UC1); float k[3][3] = { 1.0, -2.0, 1.0, 4.0, -2.0, -1.0, 4.0, -2.0, 2.0 } Hi! I am a fresh man here. Could I ask how I can initialize Mat with k[][]?