Commit c73fdf4e authored by Patrik Huber's avatar Patrik Huber

Fix compile error, make fit-model-simple use Eigen

parent f2e3e2a4
...@@ -181,8 +181,8 @@ int main(int argc, char *argv[]) ...@@ -181,8 +181,8 @@ int main(int argc, char *argv[])
continue; continue;
} }
int vertex_idx = std::stoi(converted_name.get()); int vertex_idx = std::stoi(converted_name.get());
Vec4f vertex = morphable_model.get_shape_model().get_mean_at_point(vertex_idx); auto vertex = morphable_model.get_shape_model().get_mean_at_point(vertex_idx);
model_points.emplace_back(vertex); model_points.emplace_back(Vec4f(vertex.x(), vertex.y(), vertex.z(), 1.0f));
vertex_indices.emplace_back(vertex_idx); vertex_indices.emplace_back(vertex_idx);
image_points.emplace_back(landmarks[i].coordinates); 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