checkVector method

int checkVector(
  1. int elemChannels, {
  2. int depth = -1,
  3. bool requireContinuous = true,
})

returns N if the matrix is 1-channel (N x ptdim) or ptdim-channel (1 x N) or (N x 1); negative number otherwise

Implementation

int checkVector(int elemChannels, {int depth = -1, bool requireContinuous = true}) =>
    ccore.cv_UMat_checkVector(ref, elemChannels, depth, requireContinuous);