Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard Torenvliet
eos
Commits
2b74c5a7
Commit
2b74c5a7
authored
Feb 28, 2017
by
Patrik Huber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change return to EXIT_FAILURE on cmdline parsing error
parent
a7c03275
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
8 deletions
+6
-8
examples/fit-model-ceres.cpp
examples/fit-model-ceres.cpp
+1
-1
examples/fit-model-simple.cpp
examples/fit-model-simple.cpp
+1
-1
examples/fit-model.cpp
examples/fit-model.cpp
+1
-1
examples/generate-obj.cpp
examples/generate-obj.cpp
+1
-1
utils/edgestruct-csv-to-json.cpp
utils/edgestruct-csv-to-json.cpp
+1
-1
utils/scm-to-cereal.cpp
utils/scm-to-cereal.cpp
+1
-3
No files found.
examples/fit-model-ceres.cpp
View file @
2b74c5a7
...
@@ -164,7 +164,7 @@ int main(int argc, char *argv[])
...
@@ -164,7 +164,7 @@ int main(int argc, char *argv[])
catch
(
const
po
::
error
&
e
)
{
catch
(
const
po
::
error
&
e
)
{
cout
<<
"Error while parsing command-line arguments: "
<<
e
.
what
()
<<
endl
;
cout
<<
"Error while parsing command-line arguments: "
<<
e
.
what
()
<<
endl
;
cout
<<
"Use --help to display a list of options."
<<
endl
;
cout
<<
"Use --help to display a list of options."
<<
endl
;
return
EXIT_
SUCCESS
;
return
EXIT_
FAILURE
;
}
}
google
::
InitGoogleLogging
(
argv
[
0
]);
// Ceres logging initialisation
google
::
InitGoogleLogging
(
argv
[
0
]);
// Ceres logging initialisation
...
...
examples/fit-model-simple.cpp
View file @
2b74c5a7
...
@@ -140,7 +140,7 @@ int main(int argc, char *argv[])
...
@@ -140,7 +140,7 @@ int main(int argc, char *argv[])
catch
(
const
po
::
error
&
e
)
{
catch
(
const
po
::
error
&
e
)
{
cout
<<
"Error while parsing command-line arguments: "
<<
e
.
what
()
<<
endl
;
cout
<<
"Error while parsing command-line arguments: "
<<
e
.
what
()
<<
endl
;
cout
<<
"Use --help to display a list of options."
<<
endl
;
cout
<<
"Use --help to display a list of options."
<<
endl
;
return
EXIT_
SUCCESS
;
return
EXIT_
FAILURE
;
}
}
// Load the image, landmarks, LandmarkMapper and the Morphable Model:
// Load the image, landmarks, LandmarkMapper and the Morphable Model:
...
...
examples/fit-model.cpp
View file @
2b74c5a7
...
@@ -174,7 +174,7 @@ int main(int argc, char *argv[])
...
@@ -174,7 +174,7 @@ int main(int argc, char *argv[])
catch
(
const
po
::
error
&
e
)
{
catch
(
const
po
::
error
&
e
)
{
cout
<<
"Error while parsing command-line arguments: "
<<
e
.
what
()
<<
endl
;
cout
<<
"Error while parsing command-line arguments: "
<<
e
.
what
()
<<
endl
;
cout
<<
"Use --help to display a list of options."
<<
endl
;
cout
<<
"Use --help to display a list of options."
<<
endl
;
return
EXIT_
SUCCESS
;
return
EXIT_
FAILURE
;
}
}
// Load the image, landmarks, LandmarkMapper and the Morphable Model:
// Load the image, landmarks, LandmarkMapper and the Morphable Model:
...
...
examples/generate-obj.cpp
View file @
2b74c5a7
...
@@ -76,7 +76,7 @@ int main(int argc, char *argv[])
...
@@ -76,7 +76,7 @@ int main(int argc, char *argv[])
catch
(
const
po
::
error
&
e
)
{
catch
(
const
po
::
error
&
e
)
{
cout
<<
"Error while parsing command-line arguments: "
<<
e
.
what
()
<<
endl
;
cout
<<
"Error while parsing command-line arguments: "
<<
e
.
what
()
<<
endl
;
cout
<<
"Use --help to display a list of options."
<<
endl
;
cout
<<
"Use --help to display a list of options."
<<
endl
;
return
EXIT_
SUCCESS
;
return
EXIT_
FAILURE
;
}
}
morphablemodel
::
MorphableModel
morphable_model
=
morphablemodel
::
load_model
(
model_file
.
string
());
morphablemodel
::
MorphableModel
morphable_model
=
morphablemodel
::
load_model
(
model_file
.
string
());
...
...
utils/edgestruct-csv-to-json.cpp
View file @
2b74c5a7
...
@@ -90,7 +90,7 @@ int main(int argc, char *argv[])
...
@@ -90,7 +90,7 @@ int main(int argc, char *argv[])
catch
(
const
po
::
error
&
e
)
{
catch
(
const
po
::
error
&
e
)
{
cout
<<
"Error while parsing command-line arguments: "
<<
e
.
what
()
<<
endl
;
cout
<<
"Error while parsing command-line arguments: "
<<
e
.
what
()
<<
endl
;
cout
<<
"Use --help to display a list of options."
<<
endl
;
cout
<<
"Use --help to display a list of options."
<<
endl
;
return
EXIT_
SUCCESS
;
return
EXIT_
FAILURE
;
}
}
morphablemodel
::
EdgeTopology
edge_info
;
morphablemodel
::
EdgeTopology
edge_info
;
...
...
utils/scm-to-cereal.cpp
View file @
2b74c5a7
...
@@ -20,8 +20,6 @@
...
@@ -20,8 +20,6 @@
#include "eos/morphablemodel/MorphableModel.hpp"
#include "eos/morphablemodel/MorphableModel.hpp"
#include "eos/morphablemodel/io/cvssp.hpp"
#include "eos/morphablemodel/io/cvssp.hpp"
#include "opencv2/core/core.hpp"
#include "boost/program_options.hpp"
#include "boost/program_options.hpp"
#include "boost/filesystem.hpp"
#include "boost/filesystem.hpp"
...
@@ -69,7 +67,7 @@ int main(int argc, char *argv[])
...
@@ -69,7 +67,7 @@ int main(int argc, char *argv[])
catch
(
const
po
::
error
&
e
)
{
catch
(
const
po
::
error
&
e
)
{
cout
<<
"Error while parsing command-line arguments: "
<<
e
.
what
()
<<
endl
;
cout
<<
"Error while parsing command-line arguments: "
<<
e
.
what
()
<<
endl
;
cout
<<
"Use --help to display a list of options."
<<
endl
;
cout
<<
"Use --help to display a list of options."
<<
endl
;
return
EXIT_
SUCCESS
;
return
EXIT_
FAILURE
;
}
}
// Load the .scm Morphable Model and save it as cereal model:
// Load the .scm Morphable Model and save it as cereal model:
...
...
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