diff --git a/dlib/graph_cuts/find_max_factor_graph_potts.h b/dlib/graph_cuts/find_max_factor_graph_potts.h index 08e7c20a2..9a8df08a9 100644 --- a/dlib/graph_cuts/find_max_factor_graph_potts.h +++ b/dlib/graph_cuts/find_max_factor_graph_potts.h @@ -151,9 +151,6 @@ namespace dlib else sink_flows(i,1) = temp; - source_flows(i,1) = 0; - sink_flows(i,0) = 0; - for (unsigned long j = 0; j < g.number_of_neighbors(i); ++j) { flows(i,j) = g.factor_value_disagreement(i, g.get_neighbor(i,j));