Search in sources :

Example 86 with Mat

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;
}
Also used : Mat(org.opencv.core.Mat)

Example 87 with Mat

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;
}
Also used : Mat(org.opencv.core.Mat)

Example 88 with Mat

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;
}
Also used : Mat(org.opencv.core.Mat)

Example 89 with Mat

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;
}
Also used : Mat(org.opencv.core.Mat) ArrayList(java.util.ArrayList)

Example 90 with Mat

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;
}
Also used : Mat(org.opencv.core.Mat)

Aggregations

Mat (org.opencv.core.Mat)239 ArrayList (java.util.ArrayList)34 Point (org.opencv.core.Point)33 MatOfPoint (org.opencv.core.MatOfPoint)27 MatOfKeyPoint (org.opencv.core.MatOfKeyPoint)19 KeyPoint (org.opencv.core.KeyPoint)18 Size (org.opencv.core.Size)17 Rect (org.opencv.core.Rect)15 Scalar (org.opencv.core.Scalar)9 File (java.io.File)7 BufferedImage (java.awt.image.BufferedImage)5 FilterContext (de.serviceflow.frankenstein.plugin.api.FilterContext)4 SegmentVideoFilter (de.serviceflow.frankenstein.plugin.api.SegmentVideoFilter)4 DefaultFilterContext (de.serviceflow.frankenstein.vf.DefaultFilterContext)4 VideoFilter (de.serviceflow.frankenstein.vf.VideoFilter)4 DataBufferByte (java.awt.image.DataBufferByte)4 FilterElement (de.serviceflow.frankenstein.vf.FilterElement)3 IOException (java.io.IOException)3 InvocationTargetException (java.lang.reflect.InvocationTargetException)3 ImageNotFoundException (org.getopentest.exceptions.ImageNotFoundException)3