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
370d5981
Commit
370d5981
authored
Jan 28, 2017
by
Patrik Huber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos
parent
9bce6d98
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
matlab/include/mexplus_eigen.hpp
matlab/include/mexplus_eigen.hpp
+1
-1
matlab/include/mexplus_eos_types.hpp
matlab/include/mexplus_eos_types.hpp
+1
-1
No files found.
matlab/include/mexplus_eigen.hpp
View file @
370d5981
...
...
@@ -78,7 +78,7 @@ void MxArray::to(const mxArray* in_array, Eigen::MatrixXd* eigen_matrix)
if
(
!
array
.
isDouble
())
{
mexErrMsgIdAndTxt
(
"eos:matlab"
,
"Trying to create a Eigen::MatrixXd in C++, but the given data is not of type double."
);
mexErrMsgIdAndTxt
(
"eos:matlab"
,
"Trying to create a
n
Eigen::MatrixXd in C++, but the given data is not of type double."
);
}
// We can be sure now that the array is 2-dimensional (or 0, but then we're screwed anyway)
...
...
matlab/include/mexplus_eos_types.hpp
View file @
370d5981
...
...
@@ -239,7 +239,7 @@ mxArray* MxArray::from(const eos::fitting::RenderingParameters& rendering_parame
// Since we don't expose get_opencv_viewport(), and Matlab doesn't have glm::project()
// anyway, we'll make a 4x4 viewport matrix available. Matlab seems to have the same
// convention
than
OpenCV (top-left is the image origin).
// convention
as
OpenCV (top-left is the image origin).
auto
viewport
=
eos
::
fitting
::
get_opencv_viewport
(
rendering_parameters
.
get_screen_width
(),
rendering_parameters
.
get_screen_height
());
glm
::
mat4x4
viewport_matrix
;
// Identity matrix
viewport_matrix
[
0
][
0
]
=
0.5
f
*
viewport
[
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