distanceTransform static method
Future
distanceTransform({
- CVPathFrom pathFrom = CVPathFrom.ASSETS,
- required String pathString,
- required int distanceType,
- required int maskSize,
distanceTransform function of Module: Miscellaneous Image Transformations
Implementation
static Future<dynamic> distanceTransform({
CVPathFrom pathFrom = CVPathFrom.ASSETS,
required String pathString,
required int distanceType,
required int maskSize,
}) async {
/// Variable to store operation result
final dynamic result = await DistanceTransformFactory.distanceTransform(
pathFrom: pathFrom,
pathString: pathString,
distanceType: distanceType,
maskSize: maskSize);
/// Function returns the response from method channel
return result;
}