Describe the feature and motivation It would be great to expose the following macros to the Python binding: #define CV_MAKETYPE(depth, cn) (CV_MAT_DEPTH(depth) + (((cn)-1) << CV_CN_SHIFT)) #define CV_8UC(n) CV_MAKETYPE(CV_8U,(n)) #define...
byte_depth ==1)returnmat;// Otherwise, reinterpret the data as bytes and switch the channels accordinglymat = cv::Mat(source.height, source.width,CV_MAKETYPE(CV_8U, num_channels*byte_depth),const_cast<uchar*>(&source.data[0]), source.step); cv::Matmat_swap(source.height, source.width...