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<cphoto.MergeMertens>();
  cvRun(
    () => cphoto.MergeMertens_CreateWithParams(
      contrastWeight,
      saturationWeight,
      exposureWeight,
      p,
    ),
  );
  return MergeMertens._(p);
}