ImageProcess.fromConfig constructor

ImageProcess.fromConfig(
  1. ImageProcessConfig config, {
  2. Tensor? dstTendor,
})

Implementation

factory ImageProcess.fromConfig(ImageProcessConfig config, {Tensor? dstTendor}) {
  final dstPtr = dstTendor == null ? ffi.nullptr : dstTendor.ptr;
  final ptr = c.mnn_cv_image_process_create_with_config(config.ref, dstPtr);
  return ImageProcess.fromPointer(ptr.cast());
}