Commit e1b60aa4 authored by Jason Newton's avatar Jason Newton

drop usage of macros... the type is already there!

parent 5f86eb8d
...@@ -380,7 +380,7 @@ int connectedComponents_sub1(const cv::Mat &I, cv::Mat &L, int connectivity, Sta ...@@ -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){ int cv::connectedComponents(InputArray _I, OutputArray _L, int connectivity, int ltype){
const cv::Mat I = _I.getMat(); const cv::Mat I = _I.getMat();
_L.create(I.size(), CV_MAT_DEPTH(ltype)); _L.create(I.size(), ltype);
cv::Mat L = _L.getMat(); cv::Mat L = _L.getMat();
connectedcomponents::NoOp sop; connectedcomponents::NoOp sop;
if(ltype == CV_16U){ if(ltype == CV_16U){
...@@ -397,7 +397,7 @@ int cv::connectedComponentsWithStats(InputArray _I, OutputArray _L, OutputArray ...@@ -397,7 +397,7 @@ int cv::connectedComponentsWithStats(InputArray _I, OutputArray _L, OutputArray
OutputArray centroids, int connectivity, int ltype) OutputArray centroids, int connectivity, int ltype)
{ {
const cv::Mat I = _I.getMat(); const cv::Mat I = _I.getMat();
_L.create(I.size(), CV_MAT_DEPTH(ltype)); _L.create(I.size(), ltype);
cv::Mat L = _L.getMat(); cv::Mat L = _L.getMat();
connectedcomponents::CCStatsOp sop(statsv, centroids); connectedcomponents::CCStatsOp sop(statsv, centroids);
if(ltype == CV_16U){ if(ltype == CV_16U){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment