Search in sources :

Example 31 with Mat

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

the class EM method getCovs.

// 
// C++:  void getCovs(vector_Mat& covs)
// 
// javadoc: EM::getCovs(covs)
public void getCovs(List<Mat> covs) {
    Mat covs_mat = new Mat();
    getCovs_0(nativeObj, covs_mat.nativeObj);
    Converters.Mat_to_vector_Mat(covs_mat, covs);
    covs_mat.release();
    return;
}
Also used : Mat(org.opencv.core.Mat)

Example 32 with Mat

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

the class CascadeClassifier method detectMultiScale2.

// 
// C++:  void detectMultiScale(Mat image, vector_Rect& objects, vector_int& numDetections, double scaleFactor = 1.1, int minNeighbors = 3, int flags = 0, Size minSize = Size(), Size maxSize = Size())
// 
// javadoc: CascadeClassifier::detectMultiScale(image, objects, numDetections, scaleFactor, minNeighbors, flags, minSize, maxSize)
public void detectMultiScale2(Mat image, MatOfRect objects, MatOfInt numDetections, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize) {
    Mat objects_mat = objects;
    Mat numDetections_mat = numDetections;
    detectMultiScale2_0(nativeObj, image.nativeObj, objects_mat.nativeObj, numDetections_mat.nativeObj, scaleFactor, minNeighbors, flags, minSize.width, minSize.height, maxSize.width, maxSize.height);
    return;
}
Also used : Mat(org.opencv.core.Mat)

Example 33 with Mat

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

the class HOGDescriptor method detect.

// javadoc: HOGDescriptor::detect(img, foundLocations, weights)
public void detect(Mat img, MatOfPoint foundLocations, MatOfDouble weights) {
    Mat foundLocations_mat = foundLocations;
    Mat weights_mat = weights;
    detect_1(nativeObj, img.nativeObj, foundLocations_mat.nativeObj, weights_mat.nativeObj);
    return;
}
Also used : Mat(org.opencv.core.Mat)

Example 34 with Mat

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

the class HOGDescriptor method compute.

// javadoc: HOGDescriptor::compute(img, descriptors)
public void compute(Mat img, MatOfFloat descriptors) {
    Mat descriptors_mat = descriptors;
    compute_1(nativeObj, img.nativeObj, descriptors_mat.nativeObj);
    return;
}
Also used : Mat(org.opencv.core.Mat)

Example 35 with Mat

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

the class HOGDescriptor method detectMultiScale.

// javadoc: HOGDescriptor::detectMultiScale(img, foundLocations, foundWeights)
public void detectMultiScale(Mat img, MatOfRect foundLocations, MatOfDouble foundWeights) {
    Mat foundLocations_mat = foundLocations;
    Mat foundWeights_mat = foundWeights;
    detectMultiScale_1(nativeObj, img.nativeObj, foundLocations_mat.nativeObj, foundWeights_mat.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