Two output bug fixes.

This commit is contained in:
Tadas Baltrusaitis 2017-11-05 09:30:56 +00:00
parent ab8aaa19ed
commit ac96608bfd
2 changed files with 7 additions and 2 deletions

View File

@ -187,7 +187,12 @@ void RecorderCSV::WriteLine(int observation_count, double time_stamp, bool landm
// Output the 2D eye landmarks
for (auto eye_lmk : eye_landmarks)
{
output_file << ", " << eye_lmk;
output_file << ", " << eye_lmk.x;
}
for (auto eye_lmk : eye_landmarks)
{
output_file << ", " << eye_lmk.y;
}
}

View File

@ -154,7 +154,7 @@ void RecorderOpenFace::WriteObservation()
// As we are writing out the header, work out some things like number of landmarks, names of AUs etc.
int num_face_landmarks = landmarks_2D.rows / 2;
int num_eye_landmarks = eye_landmarks.size();
int num_model_modes = pdm_params_local.rows / 2;
int num_model_modes = pdm_params_local.rows;
std::vector<std::string> au_names_class;
for (auto au : au_occurences)