Skip to content

Commit 405aa9b

Browse files
authored
Removing global structure from header file
1 parent 2850fe6 commit 405aa9b

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

modules/ximgproc/include/opencv2/ximgproc/globalmatting.hpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,6 @@
88
#include <string>
99
#include <cstdlib>
1010

11-
// for sorting the boundary pixels according to intensity
12-
struct IntensityComp
13-
{
14-
IntensityComp(const cv::Mat_<cv::Vec3b> &img_temp) : img(img_temp)
15-
{
16-
17-
}
18-
19-
bool operator()(const cv::Point &p0, const cv::Point &p1) const
20-
{
21-
const cv::Vec3b &c0 = img(p0.y, p0.x);
22-
const cv::Vec3b &c1 = img(p1.y, p1.x);
23-
24-
return ((int)c0[0] + (int)c0[1] + (int)c0[2]) < ((int)c1[0] + (int)c1[1] + (int)c1[2]);
25-
}
26-
27-
const cv::Mat_<cv::Vec3b> &img;
28-
};
2911

3012

3113

0 commit comments

Comments
 (0)