We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 56f21c4 + 4e8c507 commit af2b770Copy full SHA for af2b770
modules/imgproc/src/connectedcomponents.cpp
@@ -4339,8 +4339,8 @@ namespace cv{
4339
// without going outside the image limits.
4340
#define condition_b c-1>=0 && r-2>=0 && img_row_prev_prev[c-1]>0
4341
#define condition_c r-2>=0 && img_row_prev_prev[c]>0
4342
- #define condition_d c+1<w&& r-2>=0 && img_row_prev_prev[c+1]>0
4343
- #define condition_e c+2<w && r-1>=0 && img_row_prev[c-1]>0
+ #define condition_d c+1<w && r-2>=0 && img_row_prev_prev[c+1]>0
+ #define condition_e c+2<w && r-2>=0 && img_row_prev_prev[c+2]>0
4344
4345
#define condition_g c-2>=0 && r-1>=0 && img_row_prev[c-2]>0
4346
#define condition_h c-1>=0 && r-1>=0 && img_row_prev[c-1]>0
0 commit comments