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
71806982
Commit
71806982
authored
Jan 21, 2012
by
Davis King
Browse files
A few more minor changes to avoid problems with GCC 4.2.1
parent
b59b8419
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
dlib/image_transforms/spatial_filtering.h
dlib/image_transforms/spatial_filtering.h
+1
-1
dlib/test/rand.cpp
dlib/test/rand.cpp
+1
-1
dlib/test/scan_image.cpp
dlib/test/scan_image.cpp
+1
-1
No files found.
dlib/image_transforms/spatial_filtering.h
View file @
71806982
...
@@ -708,7 +708,7 @@ namespace dlib
...
@@ -708,7 +708,7 @@ namespace dlib
// add in the new right side of the rect and subtract the old right side.
// add in the new right side of the rect and subtract the old right side.
cur_sum
=
cur_sum
+
column_sum
[
c
+
width
]
-
column_sum
[
c
];
cur_sum
=
cur_sum
+
column_sum
[
c
+
width
]
-
column_sum
[
c
];
out
[
r
][
c
]
+=
cur_sum
;
out
[
r
][
c
]
+=
static_cast
<
typename
image_type2
::
type
>
(
cur_sum
)
;
}
}
}
}
}
}
...
...
dlib/test/rand.cpp
View file @
71806982
...
@@ -175,7 +175,7 @@ namespace
...
@@ -175,7 +175,7 @@ namespace
for
(
int
i
=
0
;
i
<
1000
;
++
i
)
for
(
int
i
=
0
;
i
<
1000
;
++
i
)
{
{
DLIB_TEST
(
r
.
get_random_32bit_number
()
==
r2
.
get_random_32bit_number
());
DLIB_TEST
(
r
.
get_random_32bit_number
()
==
r2
.
get_random_32bit_number
());
DLIB_TEST
(
r
.
get_random_gaussian
()
==
r2
.
get_random_gaussian
());
DLIB_TEST
(
std
::
abs
(
r
.
get_random_gaussian
()
-
r2
.
get_random_gaussian
())
<
1e-15
)
;
}
}
}
}
...
...
dlib/test/scan_image.cpp
View file @
71806982
...
@@ -407,7 +407,7 @@ namespace
...
@@ -407,7 +407,7 @@ namespace
{
{
for
(
long
c
=
0
;
c
<
img
.
nc
();
++
c
)
for
(
long
c
=
0
;
c
<
img
.
nc
();
++
c
)
{
{
img
[
r
][
c
]
=
100
*
(
rnd
.
get_random_double
()
-
0.5
);
img
[
r
][
c
]
=
static_cast
<
pixel_type
>
(
100
*
(
rnd
.
get_random_double
()
-
0.5
)
)
;
}
}
}
}
...
...
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