copyMakeBorderAsync function
Future<Mat>
copyMakeBorderAsync(
- InputArray src,
- int top,
- int bottom,
- int left,
- int right,
- int borderType, {
- OutputArray? dst,
- 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, {
OutputArray? dst,
Scalar? value,
}) async {
dst ??= Mat.empty();
value ??= Scalar();
return cvRunAsync0(
(callback) => ccore.cv_copyMakeBorder(
src.ref,
dst!.ref,
top,
bottom,
left,
right,
borderType,
value!.ref,
callback,
),
(c) {
return c.complete(dst);
},
);
}