createAsync static method

Future<MergeMertens> createAsync({
  1. double contrastWeight = 1.0,
  2. double saturationWeight = 1.0,
  3. double exposureWeight = 0.0,
})

Implementation

static Future<MergeMertens> createAsync({
  double contrastWeight = 1.0,
  double saturationWeight = 1.0,
  double exposureWeight = 0.0,
}) async {
  return cvRunAsync(
    (callback) => cffi.MergeMertens_CreateWithParams_Async(
      contrastWeight,
      saturationWeight,
      exposureWeight,
      callback,
    ),
    (c, p) => c.complete(MergeMertens.fromPointer(p.cast<cvg.MergeMertens>())),
  );
}