Commit 764d57955fff85c5ff424f1e74c1e759090fd559

Authored by Scott Klum
1 parent 49f21f21

Copying file for pad

Showing 1 changed file with 3 additions and 2 deletions
openbr/core/opencvutils.cpp
... ... @@ -551,9 +551,10 @@ void OpenCVUtils::group(QList<Rect> &rects, QList<float> &confidences, float con
551 551 void OpenCVUtils::pad(const br::Template &src, br::Template &dst, bool padMat, const QList<int> &padding, bool padPoints, bool padRects, int border, int value)
552 552 {
553 553 // Padding is expected to be top, bottom, left, right
554   - if (padMat)
  554 + if (padMat) {
555 555 copyMakeBorder(src, dst, padding[0], padding[1], padding[2], padding[3], border, Scalar(value));
556   - else
  556 + dst.file = src.file;
  557 + } else
557 558 dst = src;
558 559  
559 560 if (padPoints) {
... ...