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
e7aade3f
Commit
e7aade3f
authored
Mar 05, 2017
by
Patrik Huber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change get_mean_at_point() to return an Eigen::Vector3f
This removes the last usage of OpenCV in PcaModel.
parent
c43c63ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
include/eos/morphablemodel/PcaModel.hpp
include/eos/morphablemodel/PcaModel.hpp
+4
-7
No files found.
include/eos/morphablemodel/PcaModel.hpp
View file @
e7aade3f
...
@@ -29,8 +29,6 @@
...
@@ -29,8 +29,6 @@
#include "Eigen/Core"
#include "Eigen/Core"
#include "opencv2/core/core.hpp"
#include <string>
#include <string>
#include <vector>
#include <vector>
#include <array>
#include <array>
...
@@ -123,15 +121,14 @@ public:
...
@@ -123,15 +121,14 @@ public:
/**
/**
* Return the value of the mean at a given vertex index.
* Return the value of the mean at a given vertex index.
*
*
* I think we should just return an Eigen::Vector3f - homogenous coords have no place here?
*
* @param[in] vertex_index A vertex index.
* @param[in] vertex_index A vertex index.
* @return A
homogeneous
vector containing the values at the given vertex index.
* @return A
3-dimensional
vector containing the values at the given vertex index.
*/
*/
cv
::
Vec4
f
get_mean_at_point
(
int
vertex_index
)
const
Eigen
::
Vector3
f
get_mean_at_point
(
int
vertex_index
)
const
{
{
vertex_index
*=
3
;
vertex_index
*=
3
;
return
cv
::
Vec4f
(
mean
(
vertex_index
),
mean
(
vertex_index
+
1
),
mean
(
vertex_index
+
2
),
1.0
f
);
// Note: We could maybe also return a const& to mean.block(...).
return
Eigen
::
Vector3f
(
mean
(
vertex_index
),
mean
(
vertex_index
+
1
),
mean
(
vertex_index
+
2
));
};
};
/**
/**
...
...
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