CLAHE.create constructor

CLAHE.create([
  1. double clipLimit = 40,
  2. (int, int) tileGridSize = (8, 8)
])

NewCLAHE returns a new CLAHE algorithm

For further details, please see: https:///docs.opencv.org/master/d6/db6/classcv_1_1CLAHE.html

Implementation

factory CLAHE.create([double clipLimit = 40, (int width, int height) tileGridSize = (8, 8)]) {
  final p = calloc<cvg.CLAHE>();
  final size = calloc<cvg.Size>()
    ..ref.width = tileGridSize.$1
    ..ref.height = tileGridSize.$2;
  cffi.CLAHE_CreateWithParams(clipLimit, size.ref, p);
  calloc.free(size);
  return CLAHE._(p);
}