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
e48ca502
Commit
e48ca502
authored
Dec 08, 2015
by
Patrik Huber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed get_nearest_contour_points to get_nearest_contour_correspondences
Also added a few notes to the documentation
parent
3709523e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
include/eos/fitting/contour_correspondence.hpp
include/eos/fitting/contour_correspondence.hpp
+7
-1
No files found.
include/eos/fitting/contour_correspondence.hpp
View file @
e48ca502
...
...
@@ -192,7 +192,13 @@ std::pair<std::vector<std::string>, std::vector<int>> select_contour(float yaw_a
* @param[in] viewport X.
* @return A tuple with the 2D contour landmark points, the corresponding points in the 3D shape model and their vertex indices.
*/
std
::
tuple
<
std
::
vector
<
cv
::
Vec2f
>
,
std
::
vector
<
cv
::
Vec4f
>
,
std
::
vector
<
int
>>
get_nearest_contour_points
(
const
eos
::
core
::
LandmarkCollection
<
cv
::
Vec2f
>&
landmarks
,
const
std
::
vector
<
std
::
string
>&
landmark_contour_identifiers
,
const
std
::
vector
<
int
>&
model_contour_indices
,
const
morphablemodel
::
MorphableModel
&
morphable_model
,
const
glm
::
mat4x4
&
view_model
,
const
glm
::
mat4x4
&
ortho_projection
,
const
glm
::
vec4
&
viewport
)
// actually, only return the vertex id, not the point? Same with get_corresponding_pointset? Because
// then it's much easier to use the current shape estimate instead of the mean! But this function needs to project.
// So... it should take a Mesh actually? But creating a Mesh is a lot of computation?
// When we want to use the non-mean, then we need to use draw_sample() anyway? So overhead of Mesh is only if we use the mean?
// Maybe two overloads?
// Note: Uses the mean to calculate.
std
::
tuple
<
std
::
vector
<
cv
::
Vec2f
>
,
std
::
vector
<
cv
::
Vec4f
>
,
std
::
vector
<
int
>>
get_nearest_contour_correspondences
(
const
eos
::
core
::
LandmarkCollection
<
cv
::
Vec2f
>&
landmarks
,
const
std
::
vector
<
std
::
string
>&
landmark_contour_identifiers
,
const
std
::
vector
<
int
>&
model_contour_indices
,
const
morphablemodel
::
MorphableModel
&
morphable_model
,
const
glm
::
mat4x4
&
view_model
,
const
glm
::
mat4x4
&
ortho_projection
,
const
glm
::
vec4
&
viewport
)
{
// These are the additional contour-correspondences we're going to find and then use!
std
::
vector
<
cv
::
Vec4f
>
model_points_cnt
;
// the points in the 3D shape 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