org.opencv.core.MatOfInt Java Examples

The following examples show how to use org.opencv.core.MatOfInt. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BRISK.java    From OpenCvFaceDetect with Apache License 2.0 5 votes vote down vote up
public static BRISK create(int thresh, int octaves, MatOfFloat radiusList, MatOfInt numberList, float dMax)
{
    Mat radiusList_mat = radiusList;
    Mat numberList_mat = numberList;
    BRISK retVal = BRISK.__fromPtr__(create_2(thresh, octaves, radiusList_mat.nativeObj, numberList_mat.nativeObj, dMax));
    
    return retVal;
}
 
Example #2
Source File: BRISK.java    From LicensePlateDiscern with MIT License 5 votes vote down vote up
public static BRISK create(int thresh, int octaves, MatOfFloat radiusList, MatOfInt numberList, float dMax, float dMin, MatOfInt indexChange)
{
    Mat radiusList_mat = radiusList;
    Mat numberList_mat = numberList;
    Mat indexChange_mat = indexChange;
    BRISK retVal = BRISK.__fromPtr__(create_0(thresh, octaves, radiusList_mat.nativeObj, numberList_mat.nativeObj, dMax, dMin, indexChange_mat.nativeObj));
    
    return retVal;
}
 
Example #3
Source File: Dnn.java    From LicensePlateDiscern with MIT License 5 votes vote down vote up
public static void NMSBoxesRotated(MatOfRotatedRect bboxes, MatOfFloat scores, float score_threshold, float nms_threshold, MatOfInt indices, float eta, int top_k)
{
    Mat bboxes_mat = bboxes;
    Mat scores_mat = scores;
    Mat indices_mat = indices;
    NMSBoxesRotated_0(bboxes_mat.nativeObj, scores_mat.nativeObj, score_threshold, nms_threshold, indices_mat.nativeObj, eta, top_k);
    
    return;
}
 
Example #4
Source File: Imgproc.java    From ml-authentication with Apache License 2.0 5 votes vote down vote up
public static void convexHull(MatOfPoint points, MatOfInt hull, boolean clockwise)
{
    Mat points_mat = points;
    Mat hull_mat = hull;
    convexHull_0(points_mat.nativeObj, hull_mat.nativeObj, clockwise);
    
    return;
}
 
Example #5
Source File: Imgproc.java    From MOAAP with MIT License 5 votes vote down vote up
public static void convexHull(MatOfPoint points, MatOfInt hull)
{
    Mat points_mat = points;
    Mat hull_mat = hull;
    convexHull_1(points_mat.nativeObj, hull_mat.nativeObj);
    
    return;
}
 
Example #6
Source File: Imgcodecs.java    From MOAAP with MIT License 5 votes vote down vote up
public static boolean imwrite(String filename, Mat img, MatOfInt params)
{
    Mat params_mat = params;
    boolean retVal = imwrite_0(filename, img.nativeObj, params_mat.nativeObj);
    
    return retVal;
}
 
Example #7
Source File: Imgproc.java    From react-native-documentscanner-android with MIT License 5 votes vote down vote up
public static void calcHist(List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges, boolean accumulate)
{
    Mat images_mat = Converters.vector_Mat_to_Mat(images);
    Mat channels_mat = channels;
    Mat histSize_mat = histSize;
    Mat ranges_mat = ranges;
    calcHist_0(images_mat.nativeObj, channels_mat.nativeObj, mask.nativeObj, hist.nativeObj, histSize_mat.nativeObj, ranges_mat.nativeObj, accumulate);
    
    return;
}
 
Example #8
Source File: CascadeClassifier.java    From OpenCV-android with Apache License 2.0 5 votes vote down vote up
public  void detectMultiScale3(Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize, boolean outputRejectLevels)
{
    Mat objects_mat = objects;
    Mat rejectLevels_mat = rejectLevels;
    Mat levelWeights_mat = levelWeights;
    detectMultiScale3_0(nativeObj, image.nativeObj, objects_mat.nativeObj, rejectLevels_mat.nativeObj, levelWeights_mat.nativeObj, scaleFactor, minNeighbors, flags, minSize.width, minSize.height, maxSize.width, maxSize.height, outputRejectLevels);
    
    return;
}
 
Example #9
Source File: BRISK.java    From LPR with Apache License 2.0 5 votes vote down vote up
public static BRISK create(int thresh, int octaves, MatOfFloat radiusList, MatOfInt numberList, float dMax)
{
    Mat radiusList_mat = radiusList;
    Mat numberList_mat = numberList;
    BRISK retVal = BRISK.__fromPtr__(create_2(thresh, octaves, radiusList_mat.nativeObj, numberList_mat.nativeObj, dMax));
    
    return retVal;
}
 
Example #10
Source File: Subdiv2D.java    From MOAAP with MIT License 5 votes vote down vote up
public  void getVoronoiFacetList(MatOfInt idx, List<MatOfPoint2f> facetList, MatOfPoint2f facetCenters)
{
    Mat idx_mat = idx;
    Mat facetList_mat = new Mat();
    Mat facetCenters_mat = facetCenters;
    getVoronoiFacetList_0(nativeObj, idx_mat.nativeObj, facetList_mat.nativeObj, facetCenters_mat.nativeObj);
    Converters.Mat_to_vector_vector_Point2f(facetList_mat, facetList);
    facetList_mat.release();
    return;
}
 
Example #11
Source File: BRISK.java    From MOAAP with MIT License 5 votes vote down vote up
public static BRISK create(MatOfFloat radiusList, MatOfInt numberList, float dMax, float dMin, MatOfInt indexChange)
{
    Mat radiusList_mat = radiusList;
    Mat numberList_mat = numberList;
    Mat indexChange_mat = indexChange;
    BRISK retVal = new BRISK(create_2(radiusList_mat.nativeObj, numberList_mat.nativeObj, dMax, dMin, indexChange_mat.nativeObj));
    
    return retVal;
}
 
Example #12
Source File: Dnn.java    From LPR with Apache License 2.0 5 votes vote down vote up
public static void NMSBoxesRotated(MatOfRotatedRect bboxes, MatOfFloat scores, float score_threshold, float nms_threshold, MatOfInt indices, float eta)
{
    Mat bboxes_mat = bboxes;
    Mat scores_mat = scores;
    Mat indices_mat = indices;
    NMSBoxesRotated_1(bboxes_mat.nativeObj, scores_mat.nativeObj, score_threshold, nms_threshold, indices_mat.nativeObj, eta);
    
    return;
}
 
Example #13
Source File: Imgcodecs.java    From pasm-yolov3-Android with GNU General Public License v3.0 5 votes vote down vote up
public static boolean imencode(String ext, Mat img, MatOfByte buf, MatOfInt params)
{
    Mat buf_mat = buf;
    Mat params_mat = params;
    boolean retVal = imencode_0(ext, img.nativeObj, buf_mat.nativeObj, params_mat.nativeObj);
    
    return retVal;
}
 
Example #14
Source File: BRISK.java    From MOAAP with MIT License 5 votes vote down vote up
public static BRISK create(MatOfFloat radiusList, MatOfInt numberList)
{
    Mat radiusList_mat = radiusList;
    Mat numberList_mat = numberList;
    BRISK retVal = new BRISK(create_3(radiusList_mat.nativeObj, numberList_mat.nativeObj));
    
    return retVal;
}
 
Example #15
Source File: CascadeClassifier.java    From LPR with Apache License 2.0 5 votes vote down vote up
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;
}
 
Example #16
Source File: Objdetect.java    From FaceT with Mozilla Public License 2.0 5 votes vote down vote up
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;
}
 
Example #17
Source File: Imgproc.java    From FTCVision with MIT License 5 votes vote down vote up
public static void convexHull(MatOfPoint points, MatOfInt hull, boolean clockwise)
{
    Mat points_mat = points;
    Mat hull_mat = hull;
    convexHull_0(points_mat.nativeObj, hull_mat.nativeObj, clockwise);
    
    return;
}
 
Example #18
Source File: BRISK.java    From LPR with Apache License 2.0 5 votes vote down vote up
public static BRISK create(MatOfFloat radiusList, MatOfInt numberList, float dMax, float dMin, MatOfInt indexChange)
{
    Mat radiusList_mat = radiusList;
    Mat numberList_mat = numberList;
    Mat indexChange_mat = indexChange;
    BRISK retVal = BRISK.__fromPtr__(create_8(radiusList_mat.nativeObj, numberList_mat.nativeObj, dMax, dMin, indexChange_mat.nativeObj));
    
    return retVal;
}
 
Example #19
Source File: Subdiv2D.java    From MOAAP with MIT License 5 votes vote down vote up
public  void getLeadingEdgeList(MatOfInt leadingEdgeList)
{
    Mat leadingEdgeList_mat = leadingEdgeList;
    getLeadingEdgeList_0(nativeObj, leadingEdgeList_mat.nativeObj);
    
    return;
}
 
Example #20
Source File: Imgproc.java    From Document-Scanner with GNU General Public License v3.0 5 votes vote down vote up
public static void calcHist(List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges, boolean accumulate)
{
    Mat images_mat = Converters.vector_Mat_to_Mat(images);
    Mat channels_mat = channels;
    Mat histSize_mat = histSize;
    Mat ranges_mat = ranges;
    calcHist_0(images_mat.nativeObj, channels_mat.nativeObj, mask.nativeObj, hist.nativeObj, histSize_mat.nativeObj, ranges_mat.nativeObj, accumulate);
    
    return;
}
 
Example #21
Source File: Core.java    From VIA-AI with MIT License 5 votes vote down vote up
public static void mixChannels(List<Mat> src, List<Mat> dst, MatOfInt fromTo)
{
    Mat src_mat = Converters.vector_Mat_to_Mat(src);
    Mat dst_mat = Converters.vector_Mat_to_Mat(dst);
    Mat fromTo_mat = fromTo;
    mixChannels_0(src_mat.nativeObj, dst_mat.nativeObj, fromTo_mat.nativeObj);
    
    return;
}
 
Example #22
Source File: CascadeClassifier.java    From MOAAP with MIT License 5 votes vote down vote up
public  void detectMultiScale2(Mat image, MatOfRect objects, MatOfInt numDetections)
{
    Mat objects_mat = objects;
    Mat numDetections_mat = numDetections;
    detectMultiScale2_1(nativeObj, image.nativeObj, objects_mat.nativeObj, numDetections_mat.nativeObj);
    
    return;
}
 
Example #23
Source File: Imgproc.java    From MOAAP with MIT License 5 votes vote down vote up
public static void convexHull(MatOfPoint points, MatOfInt hull)
{
    Mat points_mat = points;
    Mat hull_mat = hull;
    convexHull_1(points_mat.nativeObj, hull_mat.nativeObj);
    
    return;
}
 
Example #24
Source File: CascadeClassifier.java    From VIA-AI with MIT License 5 votes vote down vote up
public  void detectMultiScale3(Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors)
{
    Mat objects_mat = objects;
    Mat rejectLevels_mat = rejectLevels;
    Mat levelWeights_mat = levelWeights;
    detectMultiScale3_4(nativeObj, image.nativeObj, objects_mat.nativeObj, rejectLevels_mat.nativeObj, levelWeights_mat.nativeObj, scaleFactor, minNeighbors);
    
    return;
}
 
Example #25
Source File: CascadeClassifier.java    From Chinese-number-gestures-recognition with BSD 2-Clause "Simplified" License 5 votes vote down vote up
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;
}
 
Example #26
Source File: CascadeClassifier.java    From Chinese-number-gestures-recognition with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public  void detectMultiScale3(Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize, boolean outputRejectLevels)
{
    Mat objects_mat = objects;
    Mat rejectLevels_mat = rejectLevels;
    Mat levelWeights_mat = levelWeights;
    detectMultiScale3_0(nativeObj, image.nativeObj, objects_mat.nativeObj, rejectLevels_mat.nativeObj, levelWeights_mat.nativeObj, scaleFactor, minNeighbors, flags, minSize.width, minSize.height, maxSize.width, maxSize.height, outputRejectLevels);
    
    return;
}
 
Example #27
Source File: Imgcodecs.java    From MOAAP with MIT License 5 votes vote down vote up
public static boolean imencode(String ext, Mat img, MatOfByte buf, MatOfInt params)
{
    Mat buf_mat = buf;
    Mat params_mat = params;
    boolean retVal = imencode_0(ext, img.nativeObj, buf_mat.nativeObj, params_mat.nativeObj);
    
    return retVal;
}
 
Example #28
Source File: Imgproc.java    From Chinese-number-gestures-recognition with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public static void calcHist(List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges, boolean accumulate)
{
    Mat images_mat = Converters.vector_Mat_to_Mat(images);
    Mat channels_mat = channels;
    Mat histSize_mat = histSize;
    Mat ranges_mat = ranges;
    calcHist_0(images_mat.nativeObj, channels_mat.nativeObj, mask.nativeObj, hist.nativeObj, histSize_mat.nativeObj, ranges_mat.nativeObj, accumulate);
    
    return;
}
 
Example #29
Source File: Objdetect.java    From PixaToon with GNU General Public License v3.0 5 votes vote down vote up
public static void groupRectangles(MatOfRect rectList, MatOfInt weights, int groupThreshold, double eps)
{
    Mat rectList_mat = rectList;
    Mat weights_mat = weights;
    groupRectangles_0(rectList_mat.nativeObj, weights_mat.nativeObj, groupThreshold, eps);
    
    return;
}
 
Example #30
Source File: CascadeClassifier.java    From VIA-AI with MIT License 5 votes vote down vote up
public  void detectMultiScale2(Mat image, MatOfRect objects, MatOfInt numDetections, double scaleFactor)
{
    Mat objects_mat = objects;
    Mat numDetections_mat = numDetections;
    detectMultiScale2_4(nativeObj, image.nativeObj, objects_mat.nativeObj, numDetections_mat.nativeObj, scaleFactor);
    
    return;
}