MCPcopy Create free account
hub / github.com/davisking/dlib / factor_value_disagreement

Method factor_value_disagreement

dlib/test/graph_cuts.cpp:105–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 }
104
105 value_type factor_value_disagreement (unsigned long idx1, unsigned long idx2) const
106 {
107 DLIB_TEST(idx1 != idx2);
108 DLIB_TEST(idx1 < number_of_nodes());
109 DLIB_TEST(idx2 < number_of_nodes());
110 DLIB_TEST(get_neighbor_idx(idx1,idx2) < number_of_neighbors(idx1));
111 DLIB_TEST(get_neighbor_idx(idx2,idx1) < number_of_neighbors(idx2));
112
113 return factors2(idx1, idx2);
114 }
115
116 };
117

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected