applyCustomColorMapAsync function
ApplyCustomColorMap applies a custom defined colormap on a given image.
For further details, please see: https:///docs.opencv.org/master/d3/d50/group__imgproc__colormap.html#gacb22288ddccc55f9bd9e6d492b409cae
Implementation
Future<Mat> applyCustomColorMapAsync(InputArray src, InputArray userColor, {OutputArray? dst}) async {
dst ??= Mat.empty();
return cvRunAsync0(
(callback) => cimgproc.cv_applyColorMap_1(src.ref, dst!.ref, userColor.ref, callback),
(c) {
return c.complete(dst);
},
);
}