Пример #1
0
 public Mat imcrop(Mat src, Rect rect)
 {
     cv2_native_api.core_Mat_new7(src, rect, out var handle);
     return(new Mat(handle));
 }
Пример #2
0
 public Mat pyrUp(Mat img,
                  (int, int) dstSize,
Пример #3
0
 public bool imwrite(string filename, Mat img, params int[] @params)
 {
     cv2_native_api.imgcodecs_imwrite(filename, img, @params, @params.Length, out var output);
     return(output != 0);
 }
Пример #4
0
 public double contourArea(Mat img,
                           bool oriented = false)
 {
     cv2_native_api.imgproc_contourArea_InputArray(img.InputArray, oriented ? 1 : 0, out var output);
     return(output);
 }