Commit c5e279aef6496e95cac34798efd7cdf27ea17e54

Authored by Scott Klum
1 parent d3fbb06f

Updates to landmarks

openbr/plugins/landmarks.cpp
... ... @@ -293,10 +293,6 @@ class DelaunayTransform : public UntrainableTransform
293 293 }
294 294  
295 295 Rect boundingBox = boundingRect(mappedPoints.toVector().toStdVector());
296   - boundingBox.x += boundingBox.width * .05;
297   - boundingBox.y += boundingBox.height * .1; // 0.025 for nose, .05 for mouth, .10 for brow
298   - boundingBox.width *= .975;
299   - boundingBox.height *= .925; // .975 for nose, .95 for mouth, .925 for brow
300 296  
301 297 dst.m() = Mat(dst.m(), boundingBox);
302 298 }
... ...
openbr/plugins/regions.cpp
... ... @@ -238,7 +238,7 @@ class RectFromPointsTransform : public UntrainableTransform
238 238  
239 239 double height = maxY-minY;
240 240 double deltaHeight = width/aspectRatio - height;
241   - height += deltaHeight;
  241 + height += deltaHeight;
242 242  
243 243 dst.file.setPoints(points);
244 244  
... ...