Lines Matching refs:second
55 * From (first) the top left corner to (second) the bottom right.
59 * From (first) the top right to (second) the bottom left.
405 PixelGraph::iterator b = it->second.first;
406 PixelGraph::iterator c = it->second.second;
407 PixelGraph::iterator d = it->first.second;
446 PixelGraph::iterator b = edges[i].second.first;
447 PixelGraph::iterator c = edges[i].second.second;
448 PixelGraph::iterator d = edges[i].first.second;
453 weights[i].second += Heuristics::curves(graph, b, c)
458 weights[i].second += Heuristics::islands(b, c) * options.islandsWeight;
467 = edges[i].second;
472 += sparse_pixels.diagonals[SparsePixels::MAIN_DIAGONAL].second
474 weights[i].second
475 += sparse_pixels.diagonals[SparsePixels::SECONDARY_DIAGONAL].second
485 PixelGraph::iterator b = edges[i].second.first;
486 PixelGraph::iterator c = edges[i].second.second;
487 PixelGraph::iterator d = edges[i].first.second;
489 if ( weights[i].first > weights[i].second ) {
492 } else if ( weights[i].first < weights[i].second ) {
570 diagonals[i].second = 0;
616 diagonals[k].second
618 diagonals[k].first.second->rgba);
630 int minor = std::min(diagonals[0].second, diagonals[1].second);
632 diagonals[i].second -= minor;
633 std::swap(diagonals[0].second, diagonals[1].second);