Commit 60ddaa56 authored by Andrey Pavlenko's avatar Andrey Pavlenko

fixin a bug in conversion Mat -> List<List<E>>

parent 4b5d04f4
...@@ -493,8 +493,8 @@ public class Converters { ...@@ -493,8 +493,8 @@ public class Converters {
List<Mat> mats = new ArrayList<Mat>(m.rows()); List<Mat> mats = new ArrayList<Mat>(m.rows());
Mat_to_vector_Mat(m, mats); Mat_to_vector_Mat(m, mats);
List<Point> pt = new ArrayList<Point>();
for (Mat mi : mats) { for (Mat mi : mats) {
List<Point> pt = new ArrayList<Point>();
Mat_to_vector_Point2f(mi, pt); Mat_to_vector_Point2f(mi, pt);
pts.add(pt); pts.add(pt);
} }
...@@ -523,8 +523,8 @@ public class Converters { ...@@ -523,8 +523,8 @@ public class Converters {
List<Mat> mats = new ArrayList<Mat>(m.rows()); List<Mat> mats = new ArrayList<Mat>(m.rows());
Mat_to_vector_Mat(m, mats); Mat_to_vector_Mat(m, mats);
List<KeyPoint> lkp = new ArrayList<KeyPoint>();
for (Mat mi : mats) { for (Mat mi : mats) {
List<KeyPoint> lkp = new ArrayList<KeyPoint>();
Mat_to_vector_KeyPoint(mi, lkp); Mat_to_vector_KeyPoint(mi, lkp);
kps.add(lkp); kps.add(lkp);
} }
...@@ -606,8 +606,8 @@ public class Converters { ...@@ -606,8 +606,8 @@ public class Converters {
List<Mat> mats = new ArrayList<Mat>(m.rows()); List<Mat> mats = new ArrayList<Mat>(m.rows());
Mat_to_vector_Mat(m, mats); Mat_to_vector_Mat(m, mats);
List<DMatch> ldm = new ArrayList<DMatch>();
for (Mat mi : mats) { for (Mat mi : mats) {
List<DMatch> ldm = new ArrayList<DMatch>();
Mat_to_vector_DMatch(mi, ldm); Mat_to_vector_DMatch(mi, ldm);
lldm.add(ldm); lldm.add(ldm);
} }
...@@ -636,8 +636,8 @@ public class Converters { ...@@ -636,8 +636,8 @@ public class Converters {
List<Mat> mats = new ArrayList<Mat>(m.rows()); List<Mat> mats = new ArrayList<Mat>(m.rows());
Mat_to_vector_Mat(m, mats); Mat_to_vector_Mat(m, mats);
List<Byte> lb = new ArrayList<Byte>();
for (Mat mi : mats) { for (Mat mi : mats) {
List<Byte> lb = new ArrayList<Byte>();
Mat_to_vector_char(mi, lb); Mat_to_vector_char(mi, lb);
llb.add(lb); llb.add(lb);
} }
......
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