File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -11,24 +11,26 @@ namespace ximgproc
11
11
12
12
struct IntensityComp
13
13
{
14
- IntensityComp (const cv::Mat_<cv::Vec3b> &image ) : image(image )
15
- {
14
+ IntensityComp (const cv::Mat_<cv::Vec3b> &img_temp ) : img(img_temp )
15
+ {
16
16
17
- }
17
+ }
18
18
19
- bool operator ()(const cv::Point &p0, const cv::Point &p1) const
20
- {
21
- const cv::Vec3b &c0 = image (p0.y , p0.x );
22
- const cv::Vec3b &c1 = image (p1.y , p1.x );
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
23
24
- return ((int )c0[0 ] + (int )c0[1 ] + (int )c0[2 ]) < ((int )c1[0 ] + (int )c1[1 ] + (int )c1[2 ]);
25
- }
24
+ return ((int )c0[0 ] + (int )c0[1 ] + (int )c0[2 ]) < ((int )c1[0 ] + (int )c1[1 ] + (int )c1[2 ]);
25
+ }
26
26
27
- const cv::Mat_<cv::Vec3b> &image ;
27
+ const cv::Mat_<cv::Vec3b> &img ;
28
28
};
29
29
30
30
31
31
32
+
33
+
32
34
std::vector<cv::Point> GlobalMatting::findBoundaryPixels (const cv::Mat_<uchar> &trimap, int a, int b)
33
35
{
34
36
std::vector<cv::Point> result;
You can’t perform that action at this time.
0 commit comments