Search in sources :

Example 36 with Mat

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

the class HOGDescriptor method detect.

// 
// C++:  void detect(Mat img, vector_Point& foundLocations, vector_double& weights, double hitThreshold = 0, Size winStride = Size(), Size padding = Size(), vector_Point searchLocations = std::vector<Point>())
// 
// javadoc: HOGDescriptor::detect(img, foundLocations, weights, hitThreshold, winStride, padding, searchLocations)
public void detect(Mat img, MatOfPoint foundLocations, MatOfDouble weights, double hitThreshold, Size winStride, Size padding, MatOfPoint searchLocations) {
    Mat foundLocations_mat = foundLocations;
    Mat weights_mat = weights;
    Mat searchLocations_mat = searchLocations;
    detect_0(nativeObj, img.nativeObj, foundLocations_mat.nativeObj, weights_mat.nativeObj, hitThreshold, winStride.width, winStride.height, padding.width, padding.height, searchLocations_mat.nativeObj);
    return;
}
Also used : Mat(org.opencv.core.Mat)

Example 37 with Mat

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

the class Objdetect method groupRectangles.

// javadoc: groupRectangles(rectList, weights, groupThreshold)
public static void groupRectangles(MatOfRect rectList, MatOfInt weights, int groupThreshold) {
    Mat rectList_mat = rectList;
    Mat weights_mat = weights;
    groupRectangles_1(rectList_mat.nativeObj, weights_mat.nativeObj, groupThreshold);
    return;
}
Also used : Mat(org.opencv.core.Mat)

Example 38 with Mat

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

the class AlignMTB method process.

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

Example 39 with Mat

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

the class AlignMTB method process.

// 
// C++:  void process(vector_Mat src, vector_Mat dst, Mat times, Mat response)
// 
// javadoc: AlignMTB::process(src, dst, times, response)
public void process(List<Mat> src, List<Mat> dst, Mat times, Mat response) {
    Mat src_mat = Converters.vector_Mat_to_Mat(src);
    Mat dst_mat = Converters.vector_Mat_to_Mat(dst);
    process_0(nativeObj, src_mat.nativeObj, dst_mat.nativeObj, times.nativeObj, response.nativeObj);
    return;
}
Also used : Mat(org.opencv.core.Mat)

Example 40 with Mat

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

the class MergeExposures method process.

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

Aggregations

Mat (org.opencv.core.Mat)285 Point (org.opencv.core.Point)50 ArrayList (java.util.ArrayList)45 MatOfPoint (org.opencv.core.MatOfPoint)43 MatOfKeyPoint (org.opencv.core.MatOfKeyPoint)20 Size (org.opencv.core.Size)20 KeyPoint (org.opencv.core.KeyPoint)18 Scalar (org.opencv.core.Scalar)17 Rect (org.opencv.core.Rect)16 File (java.io.File)8 RotatedRect (org.opencv.core.RotatedRect)6 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 IOException (java.io.IOException)4 FilterElement (de.serviceflow.frankenstein.vf.FilterElement)3 InvocationTargetException (java.lang.reflect.InvocationTargetException)3