copyMakeBorderAsync function

Future<Mat> copyMakeBorderAsync(
  1. InputArray src,
  2. int top,
  3. int bottom,
  4. int left,
  5. int right,
  6. int borderType, {
  7. Scalar? value,
})

CopyMakeBorder forms a border around an image (applies padding).

For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#ga2ac1049c2c3dd25c2b41bffe17658a36

Implementation

Future<Mat> copyMakeBorderAsync(
  InputArray src,
  int top,
  int bottom,
  int left,
  int right,
  int borderType, {
  Scalar? value,
}) async =>
    cvRunAsync(
      (callback) => cffi.core_CopyMakeBorder_Async(
        src.ref,
        top,
        bottom,
        left,
        right,
        borderType,
        value?.ref ?? Scalar().ref,
        callback,
      ),
      matCompleter,
    );