mirror of https://github.com/CGAL/cgal
removed unused variables
This commit is contained in:
parent
be9ac95828
commit
1db6c553fa
|
|
@ -711,9 +711,6 @@ double alpha_expansion_graphcut (const InputGraph& input_graph,
|
|||
|
||||
Alpha_expansion graph;
|
||||
|
||||
// TODO: check this hardcoded parameter
|
||||
const double tolerance = 1e-10;
|
||||
|
||||
double min_cut = (std::numeric_limits<double>::max)();
|
||||
|
||||
#ifdef CGAL_SEGMENTATION_BENCH_GRAPHCUT
|
||||
|
|
@ -724,8 +721,6 @@ double alpha_expansion_graphcut (const InputGraph& input_graph,
|
|||
std::vector<Vertex_descriptor> inserted_vertices;
|
||||
inserted_vertices.resize(num_vertices(input_graph));
|
||||
|
||||
std::size_t number_of_labels = get(vertex_label_cost_map, *(vertices(input_graph).first)).size();
|
||||
|
||||
graph.clear_graph();
|
||||
|
||||
#ifdef CGAL_SEGMENTATION_BENCH_GRAPHCUT
|
||||
|
|
@ -765,8 +760,6 @@ double alpha_expansion_graphcut (const InputGraph& input_graph,
|
|||
Vertex_descriptor v1 = inserted_vertices[idx1],
|
||||
v2 = inserted_vertices[idx2];
|
||||
|
||||
std::size_t label_1 = get(vertex_label_map, vd1);
|
||||
std::size_t label_2 = get(vertex_label_map, vd2);
|
||||
graph.add_edge(v1, v2, weight, weight);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue