MatType.makeType constructor

const MatType.makeType(
  1. int depth,
  2. int channels
)

Implementation

const MatType.makeType(int depth, int channels)
    : value = (depth & (CV_DEPTH_MAX - 1)) | ((channels - 1) << CV_CN_SHIFT);