Lines Matching refs:wp
144 void updateTree( WParams& wp, CompHistory** _h0, CompHistory** _h1, bool final ) in updateTree()
148 int delta = wp.p.delta; in updateTree()
152 if( size >= wp.p.minArea ) in updateTree()
157 c->updateTree(wp, c == child_ ? &h0_ : 0, c == child_ ? &h1_ : 0, final); in updateTree()
193 c->checkAndCapture(wp); in updateTree()
195 checkAndCapture(wp); in updateTree()
198 void checkAndCapture( WParams& wp ) in checkAndCapture()
203 if( size < wp.p.minArea || size > wp.p.maxArea || var < 0.f || var > wp.p.maxVariation ) in checkAndCapture()
217 wp.msers->push_back(vector<Point>()); in checkAndCapture()
218 vector<Point>& region = wp.msers->back(); in checkAndCapture()
220 const Pixel* pix0 = wp.pix0; in checkAndCapture()
221 int step = wp.step; in checkAndCapture()
236 wp.bboxvec->push_back(Rect(xmin, ymin, xmax - xmin + 1, ymax - ymin + 1)); in checkAndCapture()
265 …void growHistory( CompHistory*& hptr, WParams& wp, int new_gray_level, bool final, bool force=fals… in growHistory()
286 if( h->size >= wp.p.minArea ) in growHistory()
295 history->updateTree(wp, 0, 0, final); in growHistory()
300 CompHistory*& hptr, WParams& wp ) in merge()
302 comp1->growHistory( hptr, wp, -1, false ); in merge()
303 comp2->growHistory( hptr, wp, -1, false ); in merge()
323 wp.pix0[comp1->tail].setNext(comp2->head); in merge()
328 bool keep_2nd = h2->size > wp.p.minArea; in merge()
329 growHistory( hptr, wp, -1, false, keep_2nd ); in merge()
412 WParams wp; in pass() local
413 wp.p = params; in pass()
414 wp.msers = &msers; in pass()
415 wp.bboxvec = &bboxvec; in pass()
416 wp.pix0 = ptr0; in pass()
417 wp.step = step; in pass()
498 comptr->growHistory(histptr, wp, curr_gray, false); in pass()
505 comptr->merge(comptr, comptr+1, histptr, wp); in pass()
510 comptr->growHistory(histptr, wp, curr_gray, false); in pass()
520 comptr->growHistory(histptr, wp, 256, true, true); in pass()