insertChannel function

Mat insertChannel(
  1. InputArray src,
  2. InputOutputArray dst,
  3. int coi
)

InsertChannel inserts a single channel to dst (coi is 0-based index) (it replaces channel i with another in dst).

For further details, please see: https://docs.opencv.org/master/d2/de8/group__core__array.html#ga1d4bd886d35b00ec0b764cb4ce6eb515

Implementation

Mat insertChannel(InputArray src, InputOutputArray dst, int coi) {
  cvRun(() => ccore.cv_insertChannel(src.ref, dst.ref, coi, ffi.nullptr));
  return dst;
}