adaptiveThreshold static method
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;
}