From 33665c78489c0b28bac7fc7ebda7ef38d771e7ed Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 28 Apr 2012 16:53:14 -0400 Subject: [PATCH] Improved spec organization a little. --- dlib/graph_cuts/min_cut_abstract.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/dlib/graph_cuts/min_cut_abstract.h b/dlib/graph_cuts/min_cut_abstract.h index 3b7869f1d..a38eb1548 100644 --- a/dlib/graph_cuts/min_cut_abstract.h +++ b/dlib/graph_cuts/min_cut_abstract.h @@ -9,8 +9,16 @@ namespace dlib { + /*!A node_label + The node_label type is the type used to label which part of a graph cut + a node is on. It is used by all the graph cut tools. The three possible + values of a node label are SOURCE_CUT, SINK_CUT, or FREE_NODE. + !*/ typedef unsigned char node_label; + const node_label SOURCE_CUT = 0; + const node_label SINK_CUT = 1; + const node_label FREE_NODE = 2; // ---------------------------------------------------------------------------------------- @@ -328,12 +336,6 @@ namespace dlib }; -// ---------------------------------------------------------------------------------------- - - const node_label SOURCE_CUT = 0; - const node_label SINK_CUT = 1; - const node_label FREE_NODE = 2; - // ---------------------------------------------------------------------------------------- template <