addWeightedAsync function
Future<Mat>
addWeightedAsync(
- InputArray src1,
- double alpha,
- InputArray src2,
- double beta,
- double gamma, {
- OutputArray? dst,
- int dtype = -1,
AddWeighted calculates the weighted sum of two arrays.
For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#gafafb2513349db3bcff51f54ee5592a19
Implementation
Future<Mat> addWeightedAsync(
InputArray src1,
double alpha,
InputArray src2,
double beta,
double gamma, {
OutputArray? dst,
int dtype = -1,
}) async {
dst ??= Mat.empty();
return cvRunAsync0(
(callback) => ccore.cv_addWeighted(src1.ref, alpha, src2.ref, beta, gamma, dst!.ref, dtype, callback),
(c) {
return c.complete(dst);
},
);
}