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
9c5e66b4
"docs/git@developer.sourcefind.cn:OpenDAS/nerfacc.git" did not exist on "1d38afa11cb521304ed88e7eda8da61dc65fb851"
Commit
9c5e66b4
authored
May 12, 2012
by
Davis King
Browse files
Optimized this code a little.
parent
1570899c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dlib/graph_cuts/min_cut.h
dlib/graph_cuts/min_cut.h
+3
-3
No files found.
dlib/graph_cuts/min_cut.h
View file @
9c5e66b4
...
@@ -240,8 +240,8 @@ namespace dlib
...
@@ -240,8 +240,8 @@ namespace dlib
while
(
orphans
.
size
()
>
0
)
while
(
orphans
.
size
()
>
0
)
{
{
const
unsigned
long
p
=
orphans
.
front
();
const
unsigned
long
p
=
orphans
.
back
();
orphans
.
pop_
front
();
orphans
.
pop_
back
();
const
unsigned
char
label_p
=
g
.
get_label
(
p
);
const
unsigned
char
label_p
=
g
.
get_label
(
p
);
...
@@ -560,7 +560,7 @@ namespace dlib
...
@@ -560,7 +560,7 @@ namespace dlib
mutable
std
::
vector
<
unsigned
long
>
parent
;
mutable
std
::
vector
<
unsigned
long
>
parent
;
mutable
std
::
deque
<
unsigned
long
>
active
;
mutable
std
::
deque
<
unsigned
long
>
active
;
mutable
std
::
deque
<
unsigned
long
>
orphans
;
mutable
std
::
vector
<
unsigned
long
>
orphans
;
};
};
// ----------------------------------------------------------------------------------------
// ----------------------------------------------------------------------------------------
...
...
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