Commit 3119af1c authored by Andrey Pavlenko's avatar Andrey Pavlenko

Java API: fixed bug in converter vector<Mat> <-> Mat

parent 60d59aa9
......@@ -170,7 +170,7 @@ void vector_Mat_to_Mat(std::vector<cv::Mat>& v_mat, cv::Mat& mat)
mat.create(1, count, CV_32SC2);
for(int i=0; i<count; i++)
{
long long addr = (long long) &v_mat[i];
long long addr = (long long) new Mat(v_mat[i]);
mat.at< Vec<int, 2> >(0, i) = Vec<int, 2>(addr>>32, addr&0xffffffff);
}
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment