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
876bdc67
Commit
876bdc67
authored
Nov 25, 2015
by
Patrik Huber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added const to the two draw_sample methods that don't require the RNG
parent
c414f244
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
include/eos/morphablemodel/MorphableModel.hpp
include/eos/morphablemodel/MorphableModel.hpp
+1
-1
include/eos/morphablemodel/PcaModel.hpp
include/eos/morphablemodel/PcaModel.hpp
+1
-1
No files found.
include/eos/morphablemodel/MorphableModel.hpp
View file @
876bdc67
...
...
@@ -150,7 +150,7 @@ public:
* @param[in] color_coefficients The PCA coefficients used to generate the vertex colouring.
* @return A model instance with given coefficients.
*/
render
::
Mesh
draw_sample
(
std
::
vector
<
float
>
shape_coefficients
,
std
::
vector
<
float
>
color_coefficients
)
render
::
Mesh
draw_sample
(
std
::
vector
<
float
>
shape_coefficients
,
std
::
vector
<
float
>
color_coefficients
)
const
{
assert
(
shape_model
.
get_data_dimension
()
==
color_model
.
get_data_dimension
()
||
!
has_color_model
());
// The number of vertices (= model.getDataDimension() / 3) has to be equal for both models, or, alternatively, it has to be a shape-only model.
...
...
include/eos/morphablemodel/PcaModel.hpp
View file @
876bdc67
...
...
@@ -163,7 +163,7 @@ public:
* @param[in] coefficients The PCA coefficients used to generate the sample.
* @return A model instance with given coefficients.
*/
cv
::
Mat
draw_sample
(
std
::
vector
<
float
>
coefficients
)
cv
::
Mat
draw_sample
(
std
::
vector
<
float
>
coefficients
)
const
{
// Fill the rest with zeros if not all coefficients are given:
if
(
coefficients
.
size
()
<
get_num_principal_components
())
{
...
...
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