Commit ccc83a7e authored by Patrik Huber's avatar Patrik Huber

Apply the same Eigen::Vector3f change to fitting.hpp

This seems to be unused (uninstantiated) code, and only clang complains, but not MSVC & gcc.
parent c73fdf4e
......@@ -160,8 +160,8 @@ inline auto get_corresponding_pointset(const T& landmarks, const core::LandmarkM
continue;
}
int vertex_idx = std::stoi(converted_name.get());
Vec4f vertex = morphable_model.get_shape_model().get_mean_at_point(vertex_idx);
model_points.emplace_back(vertex);
auto vertex = morphable_model.get_shape_model().get_mean_at_point(vertex_idx);
model_points.emplace_back(Vec4f(vertex.x(), vertex.y(), vertex.z(), 1.0f));
vertex_indices.emplace_back(vertex_idx);
image_points.emplace_back(landmarks[i].coordinates);
}
......
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