MergeMertens.create constructor

MergeMertens.create({
  1. double contrastWeight = 1.0,
  2. double saturationWeight = 1.0,
  3. double exposureWeight = 0.0,
})

Implementation

factory MergeMertens.create({
  double contrastWeight = 1.0,
  double saturationWeight = 1.0,
  double exposureWeight = 0.0,
}) {
  final p = calloc<cvg.MergeMertens>();
  cvRun(() => cphoto.cv_createMergeMertens_1(contrastWeight, saturationWeight, exposureWeight, p));
  return MergeMertens._(p);
}