|
|
|
@ -519,8 +519,7 @@ public class Converters { |
|
|
|
|
Mat res; |
|
|
|
|
int lCount = (pts != null) ? pts.size() : 0; |
|
|
|
|
if (lCount > 0) { |
|
|
|
|
for (MatOfPoint vpt : pts) |
|
|
|
|
mats.add(vpt); |
|
|
|
|
mats.addAll(pts); |
|
|
|
|
res = vector_Mat_to_Mat(mats); |
|
|
|
|
} else { |
|
|
|
|
res = new Mat(); |
|
|
|
@ -568,8 +567,7 @@ public class Converters { |
|
|
|
|
Mat res; |
|
|
|
|
int lCount = (pts != null) ? pts.size() : 0; |
|
|
|
|
if (lCount > 0) { |
|
|
|
|
for (MatOfPoint2f vpt : pts) |
|
|
|
|
mats.add(vpt); |
|
|
|
|
mats.addAll(pts); |
|
|
|
|
res = vector_Mat_to_Mat(mats); |
|
|
|
|
} else { |
|
|
|
|
res = new Mat(); |
|
|
|
@ -600,8 +598,7 @@ public class Converters { |
|
|
|
|
Mat res; |
|
|
|
|
int lCount = (pts != null) ? pts.size() : 0; |
|
|
|
|
if (lCount > 0) { |
|
|
|
|
for (MatOfPoint3f vpt : pts) |
|
|
|
|
mats.add(vpt); |
|
|
|
|
mats.addAll(pts); |
|
|
|
|
res = vector_Mat_to_Mat(mats); |
|
|
|
|
} else { |
|
|
|
|
res = new Mat(); |
|
|
|
@ -614,8 +611,7 @@ public class Converters { |
|
|
|
|
Mat res; |
|
|
|
|
int lCount = (kps != null) ? kps.size() : 0; |
|
|
|
|
if (lCount > 0) { |
|
|
|
|
for (MatOfKeyPoint vkp : kps) |
|
|
|
|
mats.add(vkp); |
|
|
|
|
mats.addAll(kps); |
|
|
|
|
res = vector_Mat_to_Mat(mats); |
|
|
|
|
} else { |
|
|
|
|
res = new Mat(); |
|
|
|
@ -714,8 +710,7 @@ public class Converters { |
|
|
|
|
Mat res; |
|
|
|
|
int lCount = (lvdm != null) ? lvdm.size() : 0; |
|
|
|
|
if (lCount > 0) { |
|
|
|
|
for (MatOfDMatch vdm : lvdm) |
|
|
|
|
mats.add(vdm); |
|
|
|
|
mats.addAll(lvdm); |
|
|
|
|
res = vector_Mat_to_Mat(mats); |
|
|
|
|
} else { |
|
|
|
|
res = new Mat(); |
|
|
|
@ -746,8 +741,7 @@ public class Converters { |
|
|
|
|
Mat res; |
|
|
|
|
int lCount = (lvb != null) ? lvb.size() : 0; |
|
|
|
|
if (lCount > 0) { |
|
|
|
|
for (MatOfByte vb : lvb) |
|
|
|
|
mats.add(vb); |
|
|
|
|
mats.addAll(lvb); |
|
|
|
|
res = vector_Mat_to_Mat(mats); |
|
|
|
|
} else { |
|
|
|
|
res = new Mat(); |
|
|
|
|