Commit dc0245af authored by Davis King's avatar Davis King

Changed graph construction for chinese_whispers() so that each face is always

included in the edge graph.  If it isn't then the output labels from
chinese_whispers would be missing faces in this degenerate case.
parent 347257cb
...@@ -142,7 +142,7 @@ int main(int argc, char** argv) try ...@@ -142,7 +142,7 @@ int main(int argc, char** argv) try
std::vector<sample_pair> edges; std::vector<sample_pair> edges;
for (size_t i = 0; i < face_descriptors.size(); ++i) for (size_t i = 0; i < face_descriptors.size(); ++i)
{ {
for (size_t j = i+1; j < face_descriptors.size(); ++j) for (size_t j = i; j < face_descriptors.size(); ++j)
{ {
// Faces are connected in the graph if they are close enough. Here we check if // Faces are connected in the graph if they are close enough. Here we check if
// the distance between two face descriptors is less than 0.6, which is the // the distance between two face descriptors is less than 0.6, which is the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment