Lines Matching refs:comp2
299 void merge( ConnectedComp* comp1, ConnectedComp* comp2,
303 comp2->growHistory( hptr, wp, -1, false );
305 if( comp1->size < comp2->size )
306 std::swap(comp1, comp2);
308 if( comp2->size == 0 )
319 CompHistory* h2 = comp2->history;
321 gray_level = std::max(comp1->gray_level, comp2->gray_level);
323 wp.pix0[comp1->tail].setNext(comp2->head);
326 tail = comp2->tail;
327 size = comp1->size + comp2->size;