Is there a simple way to convert a Java-Array like double[][] to CvMatin JavaCV?
I think in OpenCV you can say cv::Mat Table(8, 8, CV_32FC1, table);, where table is a 8×8 array. But in JavaCv it doesn’t work.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Okay, now I’ve found out, that JavaCv can put single Arrays to a matrix. So I can convert my 2d-Array to a 1d-Array and put this into the matrix with
Matrix.put(array).