copyMakeBorder function
Mat
copyMakeBorder(
- 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
Mat copyMakeBorder(
InputArray src,
int top,
int bottom,
int left,
int right,
int borderType, {
OutputArray? dst,
Scalar? value,
}) {
dst ??= Mat.empty();
value ??= Scalar();
cvRun(
() => cffi.Mat_CopyMakeBorder(
src.ref,
dst!.ref,
top,
bottom,
left,
right,
borderType,
value!.ref,
),
);
return dst;
}