mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
imgproc: accept CV_Bool masks in connected components
This commit is contained in:
@@ -5659,7 +5659,7 @@ namespace cv{
|
||||
const char *currentParallelFramework = cv::currentParallelFramework();
|
||||
const int nThreads = cv::getNumThreads();
|
||||
|
||||
CV_Assert(iDepth == CV_8U || iDepth == CV_8S);
|
||||
CV_Assert(iDepth == CV_8U || iDepth == CV_8S || iDepth == CV_Bool);
|
||||
|
||||
//Run parallel labeling only if the rows of the image are at least twice the number of available threads
|
||||
const bool is_parallel = currentParallelFramework != NULL && nThreads > 1 && L.rows / nThreads >= 2;
|
||||
|
||||
Reference in New Issue
Block a user