filter2D static method

Future<Uint8List?> filter2D({
  1. CVPathFrom pathFrom = CVPathFrom.ASSETS,
  2. required String pathString,
  3. required int outputDepth,
  4. required List<int> kernelSize,
})

filter2D function of Module: Image Filtering

Implementation

static Future<Uint8List?> filter2D({
  CVPathFrom pathFrom = CVPathFrom.ASSETS,
  required String pathString,
  required int outputDepth,
  required List<int> kernelSize,
}) async {
  /// Variable to store operation result
  final Uint8List? result = await Filter2DFactory.filter2D(
      pathFrom: pathFrom,
      pathString: pathString,
      outputDepth: outputDepth,
      kernelSize: kernelSize);

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