Commit 370d5981 authored by Patrik Huber's avatar Patrik Huber

Fix typos

parent 9bce6d98
......@@ -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 an 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)
......
......@@ -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.5f * viewport[2];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment