use of org.opencv.core.Mat in project Relic_Main by TeamOverdrive.
the class DescriptorMatcher method match.
// javadoc: DescriptorMatcher::match(queryDescriptors, matches)
public void match(Mat queryDescriptors, MatOfDMatch matches) {
Mat matches_mat = matches;
match_3(nativeObj, queryDescriptors.nativeObj, matches_mat.nativeObj);
return;
}
use of org.opencv.core.Mat in project Relic_Main by TeamOverdrive.
the class DescriptorMatcher method knnMatch.
//
// C++: void knnMatch(Mat queryDescriptors, vector_vector_DMatch& matches, int k, vector_Mat masks = vector_Mat(), bool compactResult = false)
//
// javadoc: DescriptorMatcher::knnMatch(queryDescriptors, matches, k, masks, compactResult)
public void knnMatch(Mat queryDescriptors, List<MatOfDMatch> matches, int k, List<Mat> masks, boolean compactResult) {
Mat matches_mat = new Mat();
Mat masks_mat = Converters.vector_Mat_to_Mat(masks);
knnMatch_2(nativeObj, queryDescriptors.nativeObj, matches_mat.nativeObj, k, masks_mat.nativeObj, compactResult);
Converters.Mat_to_vector_vector_DMatch(matches_mat, matches);
matches_mat.release();
return;
}
use of org.opencv.core.Mat in project Relic_Main by TeamOverdrive.
the class Feature2D method compute.
//
// C++: void compute(Mat image, vector_KeyPoint& keypoints, Mat& descriptors)
//
// javadoc: Feature2D::compute(image, keypoints, descriptors)
public void compute(Mat image, MatOfKeyPoint keypoints, Mat descriptors) {
Mat keypoints_mat = keypoints;
compute_0(nativeObj, image.nativeObj, keypoints_mat.nativeObj, descriptors.nativeObj);
return;
}
use of org.opencv.core.Mat in project Relic_Main by TeamOverdrive.
the class Feature2D method compute.
//
// C++: void compute(vector_Mat images, vector_vector_KeyPoint& keypoints, vector_Mat& descriptors)
//
// javadoc: Feature2D::compute(images, keypoints, descriptors)
public void compute(List<Mat> images, List<MatOfKeyPoint> keypoints, List<Mat> descriptors) {
Mat images_mat = Converters.vector_Mat_to_Mat(images);
List<Mat> keypoints_tmplm = new ArrayList<Mat>((keypoints != null) ? keypoints.size() : 0);
Mat keypoints_mat = Converters.vector_vector_KeyPoint_to_Mat(keypoints, keypoints_tmplm);
Mat descriptors_mat = new Mat();
compute_1(nativeObj, images_mat.nativeObj, keypoints_mat.nativeObj, descriptors_mat.nativeObj);
Converters.Mat_to_vector_vector_KeyPoint(keypoints_mat, keypoints);
keypoints_mat.release();
Converters.Mat_to_vector_Mat(descriptors_mat, descriptors);
descriptors_mat.release();
return;
}
use of org.opencv.core.Mat in project Relic_Main by TeamOverdrive.
the class Photo method denoise_TVL1.
//
// C++: void denoise_TVL1(vector_Mat observations, Mat result, double lambda = 1.0, int niters = 30)
//
// javadoc: denoise_TVL1(observations, result, lambda, niters)
public static void denoise_TVL1(List<Mat> observations, Mat result, double lambda, int niters) {
Mat observations_mat = Converters.vector_Mat_to_Mat(observations);
denoise_TVL1_0(observations_mat.nativeObj, result.nativeObj, lambda, niters);
return;
}
Aggregations