getBlobChannelAsync function

Future<Mat> getBlobChannelAsync(
  1. Mat blob,
  2. int imgidx,
  3. int chnidx
)

Implementation

Future<Mat> getBlobChannelAsync(Mat blob, int imgidx, int chnidx) async {
  final rval = cvRunAsync<Mat>(
    (callback) => cdnn.Net_GetBlobChannel_Async(blob.ref, imgidx, chnidx, callback),
    (c, result) => c.complete(Mat.fromPointer(result.cast<cdnn.Mat>())),
  );
  return rval;
}