applyColorMap static method

Future<Uint8List?> applyColorMap({
  1. CVPathFrom pathFrom = CVPathFrom.ASSETS,
  2. required String pathString,
  3. required int colorMap,
})

applyColorMap function of Module: Color Maps

Implementation

static Future<Uint8List?> applyColorMap({
  CVPathFrom pathFrom = CVPathFrom.ASSETS,
  required String pathString,
  required int colorMap,
}) async {
  /// Variable to store operation result
  final Uint8List? result = await ApplyColorMapFactory.applyColorMap(
    pathFrom: pathFrom,
    pathString: pathString,
    colorMap: colorMap,
  );

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