use of org.opencv.core.MatOfKeyPoint in project Relic_Main by TeamOverdrive.
the class Converters method Mat_to_vector_vector_KeyPoint.
public static void Mat_to_vector_vector_KeyPoint(Mat m, List<MatOfKeyPoint> kps) {
if (kps == null)
throw new java.lang.IllegalArgumentException("Output List can't be null");
if (m == null)
throw new java.lang.IllegalArgumentException("Input Mat can't be null");
List<Mat> mats = new ArrayList<Mat>(m.rows());
Mat_to_vector_Mat(m, mats);
for (Mat mi : mats) {
MatOfKeyPoint vkp = new MatOfKeyPoint(mi);
kps.add(vkp);
mi.release();
}
mats.clear();
}
use of org.opencv.core.MatOfKeyPoint in project Relic_Main by TeamOverdrive.
the class Converters method vector_vector_KeyPoint_to_Mat.
// vector_vector_KeyPoint
public static Mat vector_vector_KeyPoint_to_Mat(List<MatOfKeyPoint> kps, List<Mat> mats) {
Mat res;
int lCount = (kps != null) ? kps.size() : 0;
if (lCount > 0) {
for (MatOfKeyPoint vkp : kps) mats.add(vkp);
res = vector_Mat_to_Mat(mats);
} else {
res = new Mat();
}
return res;
}
Aggregations