Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
c68a8fc7
Commit
c68a8fc7
authored
May 19, 2012
by
Davis King
Browse files
merged
parents
caf8437c
2e2b3176
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
dlib/graph_cuts/find_max_factor_graph_potts.h
dlib/graph_cuts/find_max_factor_graph_potts.h
+2
-0
dlib/graph_cuts/min_cut.h
dlib/graph_cuts/min_cut.h
+2
-0
No files found.
dlib/graph_cuts/find_max_factor_graph_potts.h
View file @
c68a8fc7
...
@@ -591,6 +591,7 @@ namespace dlib
...
@@ -591,6 +591,7 @@ namespace dlib
}
}
}
}
#endif
#endif
COMPILE_TIME_ASSERT
(
is_signed_type
<
typename
potts_model
::
value_type
>::
value
);
min_cut
mc
;
min_cut
mc
;
dlib
::
impl
::
potts_flow_graph
<
potts_model
>
pfg
(
prob
);
dlib
::
impl
::
potts_flow_graph
<
potts_model
>
pfg
(
prob
);
mc
(
pfg
,
prob
.
number_of_nodes
(),
prob
.
number_of_nodes
()
+
1
);
mc
(
pfg
,
prob
.
number_of_nodes
(),
prob
.
number_of_nodes
()
+
1
);
...
@@ -615,6 +616,7 @@ namespace dlib
...
@@ -615,6 +616,7 @@ namespace dlib
// The edges and node's have to use the same type to represent factor weights!
// The edges and node's have to use the same type to represent factor weights!
COMPILE_TIME_ASSERT
((
is_same_type
<
edge_type
,
type
>::
value
==
true
));
COMPILE_TIME_ASSERT
((
is_same_type
<
edge_type
,
type
>::
value
==
true
));
COMPILE_TIME_ASSERT
(
is_signed_type
<
edge_type
>::
value
);
#ifdef ENABLE_ASSERTS
#ifdef ENABLE_ASSERTS
for
(
unsigned
long
i
=
0
;
i
<
g
.
number_of_nodes
();
++
i
)
for
(
unsigned
long
i
=
0
;
i
<
g
.
number_of_nodes
();
++
i
)
...
...
dlib/graph_cuts/min_cut.h
View file @
c68a8fc7
...
@@ -149,6 +149,8 @@ namespace dlib
...
@@ -149,6 +149,8 @@ namespace dlib
orphans
.
clear
();
orphans
.
clear
();
typedef
typename
flow_graph
::
edge_type
edge_type
;
typedef
typename
flow_graph
::
edge_type
edge_type
;
COMPILE_TIME_ASSERT
(
is_signed_type
<
edge_type
>::
value
);
typedef
typename
flow_graph
::
out_edge_iterator
out_edge_iterator
;
typedef
typename
flow_graph
::
out_edge_iterator
out_edge_iterator
;
typedef
typename
flow_graph
::
in_edge_iterator
in_edge_iterator
;
typedef
typename
flow_graph
::
in_edge_iterator
in_edge_iterator
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment