diff --git a/openbr/plugins/landmarks.cpp b/openbr/plugins/landmarks.cpp index c49549d..7cfab7a 100644 --- a/openbr/plugins/landmarks.cpp +++ b/openbr/plugins/landmarks.cpp @@ -293,10 +293,6 @@ class DelaunayTransform : public UntrainableTransform } Rect boundingBox = boundingRect(mappedPoints.toVector().toStdVector()); - boundingBox.x += boundingBox.width * .05; - boundingBox.y += boundingBox.height * .1; // 0.025 for nose, .05 for mouth, .10 for brow - boundingBox.width *= .975; - boundingBox.height *= .925; // .975 for nose, .95 for mouth, .925 for brow dst.m() = Mat(dst.m(), boundingBox); } diff --git a/openbr/plugins/regions.cpp b/openbr/plugins/regions.cpp index d71d330..325d7a8 100644 --- a/openbr/plugins/regions.cpp +++ b/openbr/plugins/regions.cpp @@ -238,7 +238,7 @@ class RectFromPointsTransform : public UntrainableTransform double height = maxY-minY; double deltaHeight = width/aspectRatio - height; - height += deltaHeight; + height += deltaHeight; dst.file.setPoints(points);