adaptiveThreshold static method

Future adaptiveThreshold({
  1. CVPathFrom pathFrom = CVPathFrom.ASSETS,
  2. required String pathString,
  3. required double maxValue,
  4. required int adaptiveMethod,
  5. required int thresholdType,
  6. required int blockSize,
  7. required double constantValue,
})

adaptiveThreshold function of Module: Miscellaneous Image Transformations

Implementation

static Future<dynamic> adaptiveThreshold({
  CVPathFrom pathFrom = CVPathFrom.ASSETS,
  required String pathString,
  required double maxValue,
  required int adaptiveMethod,
  required int thresholdType,
  required int blockSize,
  required double constantValue,
}) async {
  /// Variable to store operation result
  final dynamic result = await AdaptiveThresholdFactory.adaptiveThreshold(
    pathFrom: pathFrom,
    pathString: pathString,
    maxValue: maxValue,
    adaptiveMethod: adaptiveMethod,
    thresholdType: thresholdType,
    blockSize: blockSize,
    constantValue: constantValue,
  );

  /// Function returns the response from method channel
  return result;
}