forward method

Mat forward({
  1. String outputName = "",
})

Forward runs forward pass to compute output of layer with name outputName.

For further details, please see: https://docs.opencv.org/4.x/db/d30/classcv_1_1dnn_1_1Net.html#a98ed94cb6ef7063d3697259566da310b

Implementation

Mat forward({String outputName = ""}) {
  final m = Mat.empty();
  final cOutName = outputName.toNativeUtf8().cast<ffi.Char>();
  cvRun(() => cdnn.cv_dnn_Net_forward(ref, cOutName, m.ptr, ffi.nullptr));
  calloc.free(cOutName);
  return m;
}