9bool mergeBoundingBoxes(
int & x1,
int & y1,
int & w1,
int & h1,
int x2,
int y2,
int w2,
int h2){
23 if ((x1_ > x2) && (y1_ > y2) && (x1 <= x2) && (y1 <= y2)){
28 else if ((x2_ > x1) && (y2_ > y1) && (x1 >= x2) && (y1 >= y2)){
31 else if ((x1_ > x2) && (y2_ > y1) && (x1 <= x2) && (y1 >= y2)){
34 else if ((x2_ > x1) && (y1_ > y2) && (x1 >= x2) && (y1 <= y2)){
41 w1 = max(x1_,x2_)-min(x1,x2);
42 h1 = max(y1_,y2_)-min(y1,y2);
bool mergeBoundingBoxes(int &x1, int &y1, int &w1, int &h1, int x2, int y2, int w2, int h2)