extractChannelAsync function
ExtractChannel extracts a single channel from src (coi is 0-based index).
For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#gacc6158574aa1f0281878c955bcf35642
Implementation
Future<Mat> extractChannelAsync(InputArray src, int coi, {OutputArray? dst}) async {
dst ??= Mat.empty();
return cvRunAsync0(
(callback) => ccore.cv_extractChannel(src.ref, dst!.ref, coi, callback),
(c) {
return c.complete(dst);
},
);
}