Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eos
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard Torenvliet
eos
Commits
e1c11776
Commit
e1c11776
authored
9 years ago
by
patrikhuber
Browse files
Options
Downloads
Patches
Plain Diff
Added missing headers and using std::ignore now in std::tie
parent
857a5de8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/eos/core/Landmark.hpp
+1
-0
1 addition, 0 deletions
include/eos/core/Landmark.hpp
include/eos/render/texture_extraction.hpp
+2
-1
2 additions, 1 deletion
include/eos/render/texture_extraction.hpp
with
3 additions
and
1 deletion
include/eos/core/Landmark.hpp
+
1
−
0
View file @
e1c11776
...
...
@@ -24,6 +24,7 @@
#include
<string>
#include
<vector>
#include
<algorithm>
namespace
eos
{
namespace
core
{
...
...
This diff is collapsed.
Click to expand it.
include/eos/render/texture_extraction.hpp
+
2
−
1
View file @
e1c11776
...
...
@@ -30,6 +30,7 @@
#include
"opencv2/core/core.hpp"
#include
"opencv2/imgproc/imgproc.hpp"
#include
<tuple>
#include
<cassert>
namespace
eos
{
...
...
@@ -63,7 +64,7 @@ inline cv::Mat extract_texture(Mesh mesh, cv::Mat affine_camera_matrix, cv::Mat
{
// Render the model to get a depth buffer:
cv
::
Mat
depthbuffer
;
std
::
tie
(
cv
::
Mat
()
,
depthbuffer
)
=
render
::
render_affine
(
mesh
,
affine_camera_matrix
,
image
.
cols
,
image
.
rows
);
std
::
tie
(
std
::
ignore
,
depthbuffer
)
=
render
::
render_affine
(
mesh
,
affine_camera_matrix
,
image
.
cols
,
image
.
rows
);
// Note: There's potential for optimisation here - we don't need to do everything that is done in render_affine to just get the depthbuffer.
// Now forward the call to the actual texture extraction function:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment