threshold static method

Future threshold({
  1. CVPathFrom pathFrom = CVPathFrom.ASSETS,
  2. required String pathString,
  3. required double thresholdValue,
  4. required double maxThresholdValue,
  5. required int thresholdType,
})

distanceTransform function of Module: Miscellaneous Image Transformations

Implementation

static Future<dynamic> threshold({
  CVPathFrom pathFrom = CVPathFrom.ASSETS,
  required String pathString,
  required double thresholdValue,
  required double maxThresholdValue,
  required int thresholdType,
}) async {
  /// Variable to store operation result
  final dynamic result = await ThresholdFactory.threshold(
    pathFrom: pathFrom,
    pathString: pathString,
    thresholdValue: thresholdValue,
    maxThresholdValue: maxThresholdValue,
    thresholdType: thresholdType,
  );

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