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
0599dab3
"src/graph/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "66182b28ad425da3f038e5df1a0d25834571ab5f"
Commit
0599dab3
authored
Jul 26, 2012
by
Davis King
Browse files
A minor change to avoid a compiler error in clang.
parent
afb6f218
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dlib/image_transforms/spatial_filtering.h
dlib/image_transforms/spatial_filtering.h
+4
-4
No files found.
dlib/image_transforms/spatial_filtering.h
View file @
0599dab3
...
@@ -874,7 +874,7 @@ namespace dlib
...
@@ -874,7 +874,7 @@ namespace dlib
{
{
while
(
!
Q
.
empty
()
&&
img
[
r
][
c
]
>=
Q
.
back
().
second
)
while
(
!
Q
.
empty
()
&&
img
[
r
][
c
]
>=
Q
.
back
().
second
)
Q
.
pop_back
();
Q
.
pop_back
();
Q
.
push_back
(
make_pair
(
c
,
img
[
r
][
c
]));
Q
.
push_back
(
std
::
make_pair
(
c
,
img
[
r
][
c
]));
}
}
for
(
long
c
=
(
width
-
1
)
/
2
;
c
<
img
.
nc
();
++
c
)
for
(
long
c
=
(
width
-
1
)
/
2
;
c
<
img
.
nc
();
++
c
)
...
@@ -883,7 +883,7 @@ namespace dlib
...
@@ -883,7 +883,7 @@ namespace dlib
Q
.
pop_back
();
Q
.
pop_back
();
while
(
!
Q
.
empty
()
&&
Q
.
front
().
first
<=
c
-
width
)
while
(
!
Q
.
empty
()
&&
Q
.
front
().
first
<=
c
-
width
)
Q
.
pop_front
();
Q
.
pop_front
();
Q
.
push_back
(
make_pair
(
c
,
img
[
r
][
c
]));
Q
.
push_back
(
std
::
make_pair
(
c
,
img
[
r
][
c
]));
img
[
r
][
c
-
((
width
-
1
)
/
2
)]
=
Q
.
front
().
second
;
img
[
r
][
c
-
((
width
-
1
)
/
2
)]
=
Q
.
front
().
second
;
}
}
...
@@ -905,7 +905,7 @@ namespace dlib
...
@@ -905,7 +905,7 @@ namespace dlib
{
{
while
(
!
Q
.
empty
()
&&
img
[
rr
][
cc
]
>=
Q
.
back
().
second
)
while
(
!
Q
.
empty
()
&&
img
[
rr
][
cc
]
>=
Q
.
back
().
second
)
Q
.
pop_back
();
Q
.
pop_back
();
Q
.
push_back
(
make_pair
(
rr
,
img
[
rr
][
cc
]));
Q
.
push_back
(
std
::
make_pair
(
rr
,
img
[
rr
][
cc
]));
}
}
for
(
long
rr
=
(
height
-
1
)
/
2
;
rr
<
img
.
nr
();
++
rr
)
for
(
long
rr
=
(
height
-
1
)
/
2
;
rr
<
img
.
nr
();
++
rr
)
...
@@ -914,7 +914,7 @@ namespace dlib
...
@@ -914,7 +914,7 @@ namespace dlib
Q
.
pop_back
();
Q
.
pop_back
();
while
(
!
Q
.
empty
()
&&
Q
.
front
().
first
<=
rr
-
height
)
while
(
!
Q
.
empty
()
&&
Q
.
front
().
first
<=
rr
-
height
)
Q
.
pop_front
();
Q
.
pop_front
();
Q
.
push_back
(
make_pair
(
rr
,
img
[
rr
][
cc
]));
Q
.
push_back
(
std
::
make_pair
(
rr
,
img
[
rr
][
cc
]));
out
[
rr
-
((
height
-
1
)
/
2
)][
cc
]
+=
std
::
max
(
Q
.
front
().
second
,
thresh
);
out
[
rr
-
((
height
-
1
)
/
2
)][
cc
]
+=
std
::
max
(
Q
.
front
().
second
,
thresh
);
}
}
...
...
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