copyMakeBorderAsync function
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,
);