Commit 946c91f92d20a7b53953759dc3df50947587605d
1 parent
cbe7e26c
Append eyes to src template as points
Showing
1 changed file
with
2 additions
and
0 deletions
openbr/janus.cpp
| ... | ... | @@ -64,6 +64,8 @@ janus_error janus_augment(const janus_image image, const janus_attribute_list at |
| 64 | 64 | |
| 65 | 65 | t.file.set("Affine_0", QPointF(t.file.get<float>("RIGHT_EYE_X"), t.file.get<float>("RIGHT_EYE_Y"))); |
| 66 | 66 | t.file.set("Affine_1", QPointF(t.file.get<float>("LEFT_EYE_X"), t.file.get<float>("LEFT_EYE_Y"))); |
| 67 | + t.file.appendPoint(t.file.get<QPointF>("Affine_1")); | |
| 68 | + t.file.appendPoint(t.file.get<QPointF>("Affine_0")); | |
| 67 | 69 | Template u; |
| 68 | 70 | transform->project(t, u); |
| 69 | 71 | template_->append(u); | ... | ... |