ImageProcess.fromConfig constructor
ImageProcess.fromConfig(
- ImageProcessConfig config, {
- 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());
}