Home | History | Annotate | Download | only in src

Lines Matching full:comps

316     DjSets comps(g.numv);
323 int c1 = comps.find(v);
324 int c2 = comps.find(g.edges[e_it].to);
326 comps.merge(c1, c2);
336 int c1 = comps.find(v);
339 int c2 = comps.find(g.edges[e_it].to);
351 int c1 = comps.find(edges[i].from);
352 int c2 = comps.find(edges[i].to);
353 if (c1 != c2 && (comps.size[c1] < minsize || comps.size[c2] < minsize))
354 comps.merge(c1, c2);
365 int parent = comps.find(pix(y, x, ncols));
383 int parent = comps.find(pix(y, x, ncols));
386 dstcol[0] = static_cast<uchar>(sumcol[0] / comps.size[parent]);
387 dstcol[1] = static_cast<uchar>(sumcol[1] / comps.size[parent]);
388 dstcol[2] = static_cast<uchar>(sumcol[2] / comps.size[parent]);