Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
c68a8fc7
Commit
c68a8fc7
authored
May 19, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Plain Diff
merged
parents
caf8437c
2e2b3176
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
find_max_factor_graph_potts.h
dlib/graph_cuts/find_max_factor_graph_potts.h
+2
-0
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
}
}
#endif
COMPILE_TIME_ASSERT
(
is_signed_type
<
typename
potts_model
::
value_type
>::
value
);
min_cut
mc
;
dlib
::
impl
::
potts_flow_graph
<
potts_model
>
pfg
(
prob
);
mc
(
pfg
,
prob
.
number_of_nodes
(),
prob
.
number_of_nodes
()
+
1
);
...
...
@@ -615,6 +616,7 @@ namespace dlib
// 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_signed_type
<
edge_type
>::
value
);
#ifdef ENABLE_ASSERTS
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
orphans
.
clear
();
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
::
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