getBlobChannel function

Mat getBlobChannel(
  1. Mat blob,
  2. int imgidx,
  3. int chnidx
)

GetBlobChannel extracts a single (2d)channel from a 4 dimensional blob structure (this might e.g. contain the results of a SSD or YOLO detection,

a bones structure from pose detection, or a color plane from Colorization)

Implementation

Mat getBlobChannel(Mat blob, int imgidx, int chnidx) {
  final m = Mat.empty();
  cvRun(() => cdnn.cv_dnn_getBlobChannel(blob.ref, imgidx, chnidx, m.ptr, ffi.nullptr));
  return m;
}