Lines Matching refs:wedges
336 std::map<std::pair<int, int>, int> wedges; // weighted edges
342 wedges[std::make_pair(ci, cj)] = 0;
343 wedges[std::make_pair(cj, ci)] = 0;
357 wedges[std::make_pair(ci, labels_(y, x-1)-1)]++;
358 wedges[std::make_pair(labels_(y, x-1)-1, ci)]++;
363 wedges[std::make_pair(ci, labels_(y-1, x)-1)]++;
364 wedges[std::make_pair(labels_(y-1, x)-1, ci)]++;
369 wedges[std::make_pair(ci, labels_(y, x+1)-1)]++;
370 wedges[std::make_pair(labels_(y, x+1)-1, ci)]++;
375 wedges[std::make_pair(ci, labels_(y+1, x)-1)]++;
376 wedges[std::make_pair(labels_(y+1, x)-1, ci)]++;
387 std::map<std::pair<int, int>, int>::iterator itr = wedges.find(std::make_pair(ci, cj));
388 if (itr != wedges.end() && itr->second > 0)
391 itr = wedges.find(std::make_pair(cj, ci));
392 if (itr != wedges.end() && itr->second > 0)