Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

since opencv wants consecutive data, you can't use a double [][]

float k[9] = { 1.0, -2.0, 1.0, 4.0, -2.0, -1.0, 4.0, -2.0, 2.0 };
Mat gaborMat = new Mat(3, 3, CvType.CV_32FC1); // note , the flag has to match the actual type ..
gaborMat.put(0,0,k);