int cv::connectedComponents(InputArray _I, OutputArray _L, int connectivity, int ltype){
const cv::Mat I = _I.getMat();
- _L.create(I.size(), CV_MAT_DEPTH(ltype));
+ _L.create(I.size(), ltype);
cv::Mat L = _L.getMat();
connectedcomponents::NoOp sop;
if(ltype == CV_16U){
OutputArray centroids, int connectivity, int ltype)
{
const cv::Mat I = _I.getMat();
- _L.create(I.size(), CV_MAT_DEPTH(ltype));
+ _L.create(I.size(), ltype);
cv::Mat L = _L.getMat();
connectedcomponents::CCStatsOp sop(statsv, centroids);
if(ltype == CV_16U){