Commit 5bacf5c2 authored by Richard Torenvliet's avatar Richard Torenvliet

Remove unused / duplicate declaration

parent 735a5a32
...@@ -128,13 +128,13 @@ void evaluate_accuracy( ...@@ -128,13 +128,13 @@ void evaluate_accuracy(
// The vertex_idx should be around the value of the original coordinates after we have // The vertex_idx should be around the value of the original coordinates after we have
// projected it with the affine_from_ortho that is obtained earlier. // projected it with the affine_from_ortho that is obtained earlier.
Mat vertex_screen_coords = affine_from_ortho * Mat vertex_screen_coords = affine_from_ortho *
Mat(cv::Vec4f( Mat(cv::Vec4f(
mesh.vertices[vertex_idx].x, mesh.vertices[vertex_idx].x,
mesh.vertices[vertex_idx].y, mesh.vertices[vertex_idx].y,
mesh.vertices[vertex_idx].z, mesh.vertices[vertex_idx].z,
mesh.vertices[vertex_idx].w mesh.vertices[vertex_idx].w
) )
); );
// using euclidean distance here, but should look at other ways too. // using euclidean distance here, but should look at other ways too.
float dist = euclidean_distance(landmarks[i].coordinates, vertex_screen_coords); float dist = euclidean_distance(landmarks[i].coordinates, vertex_screen_coords);
...@@ -381,14 +381,13 @@ int main(int argc, char *argv[]) { ...@@ -381,14 +381,13 @@ int main(int argc, char *argv[]) {
int n_iter = 0; int n_iter = 0;
// load all annotation files into lists of landmarks
vector<core::LandmarkCollection<cv::Vec2f>> landmark_sublist;
while(!(key_frames.empty())) { while(!(key_frames.empty())) {
if (n_iter == 10) { if (n_iter == 10) {
break; break;
} }
// load all annotation files into lists of landmarks
vector<core::LandmarkCollection<cv::Vec2f>> landmark_sublist(landmark_list.begin() + n_iter, landmark_list.end()); vector<core::LandmarkCollection<cv::Vec2f>> landmark_sublist(landmark_list.begin() + n_iter, landmark_list.end());
std::tie(meshs, rendering_paramss) = fitting::fit_shape_and_pose_multi( std::tie(meshs, rendering_paramss) = fitting::fit_shape_and_pose_multi(
......
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