Search in sources :

Example 81 with Mat

use of org.opencv.core.Mat in project Relic_Main by TeamOverdrive.

the class DescriptorMatcher method match.

// 
// C++:  void match(Mat queryDescriptors, vector_DMatch& matches, vector_Mat masks = vector_Mat())
// 
// javadoc: DescriptorMatcher::match(queryDescriptors, matches, masks)
public void match(Mat queryDescriptors, MatOfDMatch matches, List<Mat> masks) {
    Mat matches_mat = matches;
    Mat masks_mat = Converters.vector_Mat_to_Mat(masks);
    match_2(nativeObj, queryDescriptors.nativeObj, matches_mat.nativeObj, masks_mat.nativeObj);
    return;
}
Also used : Mat(org.opencv.core.Mat)

Example 82 with Mat

use of org.opencv.core.Mat in project Relic_Main by TeamOverdrive.

the class Core method meanStdDev.

// javadoc: meanStdDev(src, mean, stddev)
public static void meanStdDev(Mat src, MatOfDouble mean, MatOfDouble stddev) {
    Mat mean_mat = mean;
    Mat stddev_mat = stddev;
    meanStdDev_1(src.nativeObj, mean_mat.nativeObj, stddev_mat.nativeObj);
    return;
}
Also used : Mat(org.opencv.core.Mat)

Example 83 with Mat

use of org.opencv.core.Mat in project Relic_Main by TeamOverdrive.

the class Core method split.

// 
// C++:  void split(Mat m, vector_Mat& mv)
// 
// javadoc: split(m, mv)
public static void split(Mat m, List<Mat> mv) {
    Mat mv_mat = new Mat();
    split_0(m.nativeObj, mv_mat.nativeObj);
    Converters.Mat_to_vector_Mat(mv_mat, mv);
    mv_mat.release();
    return;
}
Also used : Mat(org.opencv.core.Mat)

Example 84 with Mat

use of org.opencv.core.Mat in project Relic_Main by TeamOverdrive.

the class Core method vconcat.

// 
// C++:  void vconcat(vector_Mat src, Mat& dst)
// 
// javadoc: vconcat(src, dst)
public static void vconcat(List<Mat> src, Mat dst) {
    Mat src_mat = Converters.vector_Mat_to_Mat(src);
    vconcat_0(src_mat.nativeObj, dst.nativeObj);
    return;
}
Also used : Mat(org.opencv.core.Mat)

Example 85 with Mat

use of org.opencv.core.Mat in project Relic_Main by TeamOverdrive.

the class DescriptorMatcher method knnMatch.

// javadoc: DescriptorMatcher::knnMatch(queryDescriptors, matches, k)
public void knnMatch(Mat queryDescriptors, List<MatOfDMatch> matches, int k) {
    Mat matches_mat = new Mat();
    knnMatch_3(nativeObj, queryDescriptors.nativeObj, matches_mat.nativeObj, k);
    Converters.Mat_to_vector_vector_DMatch(matches_mat, matches);
    matches_mat.release();
    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