From e1b60aa4e326b900b63596c19c50ad97a8de98eb Mon Sep 17 00:00:00 2001 From: Jason Newton Date: Sun, 16 Dec 2012 22:44:36 -0800 Subject: [PATCH] drop usage of macros... the type is already there! --- modules/imgproc/src/connectedcomponents.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/imgproc/src/connectedcomponents.cpp b/modules/imgproc/src/connectedcomponents.cpp index c07249b..6965586 100644 --- a/modules/imgproc/src/connectedcomponents.cpp +++ b/modules/imgproc/src/connectedcomponents.cpp @@ -380,7 +380,7 @@ int connectedComponents_sub1(const cv::Mat &I, cv::Mat &L, int connectivity, Sta 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){ @@ -397,7 +397,7 @@ int cv::connectedComponentsWithStats(InputArray _I, OutputArray _L, OutputArray 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){ -- 2.7.4