distanceTransform static method

Future distanceTransform({
  1. CVPathFrom pathFrom = CVPathFrom.ASSETS,
  2. required String pathString,
  3. required int distanceType,
  4. 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;
}