Commit 4fdb329f authored by Davis King's avatar Davis King

Changed the SINK_CUT and FREE_NODE constants so that when we use graph

cuts on an image the result is a displayable binary image rather than
an image which is super dark and hard to view.
parent 3fa4c69e
...@@ -24,8 +24,8 @@ namespace dlib ...@@ -24,8 +24,8 @@ namespace dlib
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
const node_label SOURCE_CUT = 0; const node_label SOURCE_CUT = 0;
const node_label SINK_CUT = 1; const node_label SINK_CUT = 254;
const node_label FREE_NODE = 2; const node_label FREE_NODE = 255;
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
......
...@@ -17,8 +17,8 @@ namespace dlib ...@@ -17,8 +17,8 @@ namespace dlib
typedef unsigned char node_label; typedef unsigned char node_label;
const node_label SOURCE_CUT = 0; const node_label SOURCE_CUT = 0;
const node_label SINK_CUT = 1; const node_label SINK_CUT = 254;
const node_label FREE_NODE = 2; const node_label FREE_NODE = 255;
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
......
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