threshold static method
Future
threshold({
- CVPathFrom pathFrom = CVPathFrom.ASSETS,
- required String pathString,
- required double thresholdValue,
- required double maxThresholdValue,
- 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;
}