We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2850fe6 commit 405aa9bCopy full SHA for 405aa9b
modules/ximgproc/include/opencv2/ximgproc/globalmatting.hpp
@@ -8,24 +8,6 @@
8
#include <string>
9
#include <cstdlib>
10
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
-};
29
30
31
0 commit comments