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
1f8f1261
Commit
1f8f1261
authored
Mar 03, 2013
by
Davis King
Browse files
Added scope qualifiers to dlib::array so there isn't a name conflict
on C++11 compilers.
parent
5dd2ea04
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
14 deletions
+18
-14
dlib/test/array.cpp
dlib/test/array.cpp
+2
-0
dlib/test/object_detector.cpp
dlib/test/object_detector.cpp
+9
-9
dlib/test/scan_image.cpp
dlib/test/scan_image.cpp
+2
-0
dlib/test/sockets2.cpp
dlib/test/sockets2.cpp
+1
-1
examples/object_detector_advanced_ex.cpp
examples/object_detector_advanced_ex.cpp
+1
-1
examples/object_detector_ex.cpp
examples/object_detector_ex.cpp
+1
-1
examples/train_object_detector.cpp
examples/train_object_detector.cpp
+2
-2
No files found.
dlib/test/array.cpp
View file @
1f8f1261
...
@@ -18,6 +18,8 @@ namespace
...
@@ -18,6 +18,8 @@ namespace
using
namespace
dlib
;
using
namespace
dlib
;
using
namespace
std
;
using
namespace
std
;
using
dlib
::
array
;
logger
dlog
(
"test.array"
);
logger
dlog
(
"test.array"
);
template
<
template
<
...
...
dlib/test/object_detector.cpp
View file @
1f8f1261
...
@@ -355,7 +355,7 @@ namespace
...
@@ -355,7 +355,7 @@ namespace
print_spinner
();
print_spinner
();
dlog
<<
LINFO
<<
"test_1()"
;
dlog
<<
LINFO
<<
"test_1()"
;
typedef
array
<
array2d
<
unsigned
char
>
>
grayscale_image_array_type
;
typedef
dlib
::
array
<
array2d
<
unsigned
char
>
>
grayscale_image_array_type
;
grayscale_image_array_type
images
;
grayscale_image_array_type
images
;
std
::
vector
<
std
::
vector
<
rectangle
>
>
object_locations
;
std
::
vector
<
std
::
vector
<
rectangle
>
>
object_locations
;
make_simple_test_data
(
images
,
object_locations
);
make_simple_test_data
(
images
,
object_locations
);
...
@@ -397,7 +397,7 @@ namespace
...
@@ -397,7 +397,7 @@ namespace
print_spinner
();
print_spinner
();
dlog
<<
LINFO
<<
"test_1m()"
;
dlog
<<
LINFO
<<
"test_1m()"
;
typedef
array
<
array2d
<
unsigned
char
>
>
grayscale_image_array_type
;
typedef
dlib
::
array
<
array2d
<
unsigned
char
>
>
grayscale_image_array_type
;
grayscale_image_array_type
images
;
grayscale_image_array_type
images
;
std
::
vector
<
std
::
vector
<
full_object_detection
>
>
object_locations
;
std
::
vector
<
std
::
vector
<
full_object_detection
>
>
object_locations
;
make_simple_test_data
(
images
,
object_locations
);
make_simple_test_data
(
images
,
object_locations
);
...
@@ -445,7 +445,7 @@ namespace
...
@@ -445,7 +445,7 @@ namespace
print_spinner
();
print_spinner
();
dlog
<<
LINFO
<<
"test_1_fine_hog()"
;
dlog
<<
LINFO
<<
"test_1_fine_hog()"
;
typedef
array
<
array2d
<
unsigned
char
>
>
grayscale_image_array_type
;
typedef
dlib
::
array
<
array2d
<
unsigned
char
>
>
grayscale_image_array_type
;
grayscale_image_array_type
images
;
grayscale_image_array_type
images
;
std
::
vector
<
std
::
vector
<
rectangle
>
>
object_locations
;
std
::
vector
<
std
::
vector
<
rectangle
>
>
object_locations
;
make_simple_test_data
(
images
,
object_locations
);
make_simple_test_data
(
images
,
object_locations
);
...
@@ -487,7 +487,7 @@ namespace
...
@@ -487,7 +487,7 @@ namespace
print_spinner
();
print_spinner
();
dlog
<<
LINFO
<<
"test_1_poly()"
;
dlog
<<
LINFO
<<
"test_1_poly()"
;
typedef
array
<
array2d
<
unsigned
char
>
>
grayscale_image_array_type
;
typedef
dlib
::
array
<
array2d
<
unsigned
char
>
>
grayscale_image_array_type
;
grayscale_image_array_type
images
;
grayscale_image_array_type
images
;
std
::
vector
<
std
::
vector
<
rectangle
>
>
object_locations
;
std
::
vector
<
std
::
vector
<
rectangle
>
>
object_locations
;
make_simple_test_data
(
images
,
object_locations
);
make_simple_test_data
(
images
,
object_locations
);
...
@@ -529,7 +529,7 @@ namespace
...
@@ -529,7 +529,7 @@ namespace
print_spinner
();
print_spinner
();
dlog
<<
LINFO
<<
"test_1_poly()"
;
dlog
<<
LINFO
<<
"test_1_poly()"
;
typedef
array
<
array2d
<
unsigned
char
>
>
grayscale_image_array_type
;
typedef
dlib
::
array
<
array2d
<
unsigned
char
>
>
grayscale_image_array_type
;
grayscale_image_array_type
images
;
grayscale_image_array_type
images
;
std
::
vector
<
std
::
vector
<
full_object_detection
>
>
object_locations
;
std
::
vector
<
std
::
vector
<
full_object_detection
>
>
object_locations
;
make_simple_test_data
(
images
,
object_locations
);
make_simple_test_data
(
images
,
object_locations
);
...
@@ -577,7 +577,7 @@ namespace
...
@@ -577,7 +577,7 @@ namespace
print_spinner
();
print_spinner
();
dlog
<<
LINFO
<<
"test_1_poly_nn()"
;
dlog
<<
LINFO
<<
"test_1_poly_nn()"
;
typedef
array
<
array2d
<
unsigned
char
>
>
grayscale_image_array_type
;
typedef
dlib
::
array
<
array2d
<
unsigned
char
>
>
grayscale_image_array_type
;
grayscale_image_array_type
images
;
grayscale_image_array_type
images
;
std
::
vector
<
std
::
vector
<
rectangle
>
>
object_locations
;
std
::
vector
<
std
::
vector
<
rectangle
>
>
object_locations
;
make_simple_test_data
(
images
,
object_locations
);
make_simple_test_data
(
images
,
object_locations
);
...
@@ -623,7 +623,7 @@ namespace
...
@@ -623,7 +623,7 @@ namespace
print_spinner
();
print_spinner
();
dlog
<<
LINFO
<<
"test_2()"
;
dlog
<<
LINFO
<<
"test_2()"
;
typedef
array
<
array2d
<
unsigned
char
>
>
grayscale_image_array_type
;
typedef
dlib
::
array
<
array2d
<
unsigned
char
>
>
grayscale_image_array_type
;
grayscale_image_array_type
images
;
grayscale_image_array_type
images
;
std
::
vector
<
std
::
vector
<
rectangle
>
>
object_locations
;
std
::
vector
<
std
::
vector
<
rectangle
>
>
object_locations
;
make_simple_test_data
(
images
,
object_locations
);
make_simple_test_data
(
images
,
object_locations
);
...
@@ -708,8 +708,8 @@ namespace
...
@@ -708,8 +708,8 @@ namespace
dlog
<<
LINFO
<<
"test_3()"
;
dlog
<<
LINFO
<<
"test_3()"
;
typedef
array
<
array2d
<
unsigned
char
>
>
grayscale_image_array_type
;
typedef
dlib
::
array
<
array2d
<
unsigned
char
>
>
grayscale_image_array_type
;
typedef
array
<
funny_image
>
funny_image_array_type
;
typedef
dlib
::
array
<
funny_image
>
funny_image_array_type
;
grayscale_image_array_type
images_temp
;
grayscale_image_array_type
images_temp
;
funny_image_array_type
images
;
funny_image_array_type
images
;
std
::
vector
<
std
::
vector
<
rectangle
>
>
object_locations
;
std
::
vector
<
std
::
vector
<
rectangle
>
>
object_locations
;
...
...
dlib/test/scan_image.cpp
View file @
1f8f1261
...
@@ -24,6 +24,8 @@ namespace
...
@@ -24,6 +24,8 @@ namespace
using
namespace
dlib
;
using
namespace
dlib
;
using
namespace
std
;
using
namespace
std
;
using
dlib
::
array
;
// Declare the logger we will use in this test. The name of the tester
// Declare the logger we will use in this test. The name of the tester
// should start with "test."
// should start with "test."
logger
dlog
(
"test.scan_image"
);
logger
dlog
(
"test.scan_image"
);
...
...
dlib/test/sockets2.cpp
View file @
1f8f1261
...
@@ -128,7 +128,7 @@ namespace
...
@@ -128,7 +128,7 @@ namespace
start
();
start
();
array
<
scoped_ptr
<
connection
>
>
cons
;
dlib
::
array
<
scoped_ptr
<
connection
>
>
cons
;
std
::
vector
<
long
>
bytes_received
(
6
,
0
);
std
::
vector
<
long
>
bytes_received
(
6
,
0
);
scoped_ptr
<
connection
>
con_temp
;
scoped_ptr
<
connection
>
con_temp
;
...
...
examples/object_detector_advanced_ex.cpp
View file @
1f8f1261
...
@@ -191,7 +191,7 @@ int main()
...
@@ -191,7 +191,7 @@ int main()
try
try
{
{
// Get some data
// Get some data
array
<
array2d
<
unsigned
char
>
>
images
;
dlib
::
array
<
array2d
<
unsigned
char
>
>
images
;
std
::
vector
<
std
::
vector
<
rectangle
>
>
object_locations
;
std
::
vector
<
std
::
vector
<
rectangle
>
>
object_locations
;
make_simple_test_data
(
images
,
object_locations
);
make_simple_test_data
(
images
,
object_locations
);
...
...
examples/object_detector_ex.cpp
View file @
1f8f1261
...
@@ -101,7 +101,7 @@ int main()
...
@@ -101,7 +101,7 @@ int main()
try
try
{
{
// The first thing we do is create the set of 3 images discussed above.
// The first thing we do is create the set of 3 images discussed above.
array
<
array2d
<
unsigned
char
>
>
images
;
dlib
::
array
<
array2d
<
unsigned
char
>
>
images
;
std
::
vector
<
std
::
vector
<
rectangle
>
>
object_locations
;
std
::
vector
<
std
::
vector
<
rectangle
>
>
object_locations
;
make_simple_test_data
(
images
,
object_locations
);
make_simple_test_data
(
images
,
object_locations
);
...
...
examples/train_object_detector.cpp
View file @
1f8f1261
...
@@ -144,7 +144,7 @@ int main(int argc, char** argv)
...
@@ -144,7 +144,7 @@ int main(int argc, char** argv)
return
EXIT_FAILURE
;
return
EXIT_FAILURE
;
}
}
array
<
array2d
<
unsigned
char
>
>
images
;
dlib
::
array
<
array2d
<
unsigned
char
>
>
images
;
std
::
vector
<
std
::
vector
<
rectangle
>
>
object_locations
;
std
::
vector
<
std
::
vector
<
rectangle
>
>
object_locations
;
cout
<<
"Loading image dataset from metadata file "
<<
parser
[
0
]
<<
endl
;
cout
<<
"Loading image dataset from metadata file "
<<
parser
[
0
]
<<
endl
;
...
@@ -240,7 +240,7 @@ int main(int argc, char** argv)
...
@@ -240,7 +240,7 @@ int main(int argc, char** argv)
object_detector
<
image_scanner_type
>
detector
;
object_detector
<
image_scanner_type
>
detector
;
deserialize
(
detector
,
fin
);
deserialize
(
detector
,
fin
);
array
<
array2d
<
unsigned
char
>
>
images
;
dlib
::
array
<
array2d
<
unsigned
char
>
>
images
;
// Check if the command line argument is an XML file
// Check if the command line argument is an XML file
if
(
tolower
(
right_substr
(
parser
[
0
],
"."
))
==
"xml"
)
if
(
tolower
(
right_substr
(
parser
[
0
],
"."
))
==
"xml"
)
{
{
...
...
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