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
25bf3c51
Commit
25bf3c51
authored
Dec 12, 2012
by
Davis King
Browse files
Simplified code a bit
parent
7c4cde7f
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
15 additions
and
10 deletions
+15
-10
tools/imglab/src/common.cpp
tools/imglab/src/common.cpp
+1
-0
tools/imglab/src/common.h
tools/imglab/src/common.h
+0
-2
tools/imglab/src/convert_idl.cpp
tools/imglab/src/convert_idl.cpp
+2
-1
tools/imglab/src/convert_idl.h
tools/imglab/src/convert_idl.h
+2
-1
tools/imglab/src/convert_pascal_v1.cpp
tools/imglab/src/convert_pascal_v1.cpp
+1
-1
tools/imglab/src/convert_pascal_v1.h
tools/imglab/src/convert_pascal_v1.h
+2
-1
tools/imglab/src/convert_pascal_xml.cpp
tools/imglab/src/convert_pascal_xml.cpp
+2
-1
tools/imglab/src/convert_pascal_xml.h
tools/imglab/src/convert_pascal_xml.h
+2
-1
tools/imglab/src/main.cpp
tools/imglab/src/main.cpp
+3
-2
No files found.
tools/imglab/src/common.cpp
View file @
25bf3c51
...
...
@@ -3,6 +3,7 @@
#include "common.h"
#include <fstream>
#include <dlib/error.h>
// ----------------------------------------------------------------------------------------
...
...
tools/imglab/src/common.h
View file @
25bf3c51
...
...
@@ -4,8 +4,6 @@
#define DLIB_IMGLAB_COmMON_H__
#include <string>
#include <dlib/cmd_line_parser.h>
typedef
dlib
::
cmd_line_parser
<
char
>::
check_1a_c
parser_type
;
// ----------------------------------------------------------------------------------------
...
...
tools/imglab/src/convert_idl.cpp
View file @
25bf3c51
...
...
@@ -5,6 +5,7 @@
#include <string>
#include <dlib/dir_nav.h>
#include <dlib/time_this.h>
#include <dlib/cmd_line_parser.h>
using
namespace
std
;
using
namespace
dlib
;
...
...
@@ -163,7 +164,7 @@ namespace
}
void
convert_idl
(
const
parser
_type
&
parser
const
command_line_
parser
&
parser
)
{
cout
<<
"Convert from IDL annotation format..."
<<
endl
;
...
...
tools/imglab/src/convert_idl.h
View file @
25bf3c51
...
...
@@ -4,8 +4,9 @@
#define DLIB_IMGLAB_CONVErT_IDL_H__
#include "common.h"
#include <dlib/cmd_line_parser.h>
void
convert_idl
(
const
parser
_type
&
parser
);
void
convert_idl
(
const
dlib
::
command_line_
parser
&
parser
);
#endif // DLIB_IMGLAB_CONVErT_IDL_H__
...
...
tools/imglab/src/convert_pascal_v1.cpp
View file @
25bf3c51
...
...
@@ -137,7 +137,7 @@ namespace
}
void
convert_pascal_v1
(
const
parser
_type
&
parser
const
command_line_
parser
&
parser
)
{
cout
<<
"Convert from PASCAL v1.00 annotation format..."
<<
endl
;
...
...
tools/imglab/src/convert_pascal_v1.h
View file @
25bf3c51
...
...
@@ -4,8 +4,9 @@
#define DLIB_IMGLAB_CONVERT_PASCAl_V1_H__
#include "common.h"
#include <dlib/cmd_line_parser.h>
void
convert_pascal_v1
(
const
parser
_type
&
parser
);
void
convert_pascal_v1
(
const
dlib
::
command_line_
parser
&
parser
);
#endif // DLIB_IMGLAB_CONVERT_PASCAl_V1_H__
...
...
tools/imglab/src/convert_pascal_xml.cpp
View file @
25bf3c51
...
...
@@ -5,6 +5,7 @@
#include <dlib/xml_parser.h>
#include <string>
#include <dlib/dir_nav.h>
#include <dlib/cmd_line_parser.h>
using
namespace
std
;
using
namespace
dlib
;
...
...
@@ -197,7 +198,7 @@ namespace
}
void
convert_pascal_xml
(
const
parser
_type
&
parser
const
command_line_
parser
&
parser
)
{
cout
<<
"Convert from PASCAL XML annotation format..."
<<
endl
;
...
...
tools/imglab/src/convert_pascal_xml.h
View file @
25bf3c51
...
...
@@ -4,8 +4,9 @@
#define DLIB_IMGLAB_CONVERT_PASCAl_XML_H__
#include "common.h"
#include <dlib/cmd_line_parser.h>
void
convert_pascal_xml
(
const
parser
_type
&
parser
);
void
convert_pascal_xml
(
const
dlib
::
command_line_
parser
&
parser
);
#endif // DLIB_IMGLAB_CONVERT_PASCAl_XML_H__
tools/imglab/src/main.cpp
View file @
25bf3c51
...
...
@@ -5,6 +5,7 @@
#include "convert_pascal_xml.h"
#include "convert_pascal_v1.h"
#include "convert_idl.h"
#include <dlib/cmd_line_parser.h>
#include <iostream>
#include <fstream>
...
...
@@ -24,7 +25,7 @@ using namespace dlib;
// ----------------------------------------------------------------------------------------
void
create_new_dataset
(
const
parser
_type
&
parser
const
command_line_
parser
&
parser
)
{
using
namespace
dlib
::
image_dataset_metadata
;
...
...
@@ -118,7 +119,7 @@ int main(int argc, char** argv)
try
{
parser
_type
parser
;
command_line_
parser
parser
;
parser
.
add_option
(
"h"
,
"Displays this information."
);
parser
.
add_option
(
"c"
,
"Create an XML file named <arg> listing a set of images."
,
1
);
...
...
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