diff --git a/openbr/plugins/imgproc/pad.cpp b/openbr/plugins/imgproc/pad.cpp index 3c40221..297efd5 100644 --- a/openbr/plugins/imgproc/pad.cpp +++ b/openbr/plugins/imgproc/pad.cpp @@ -1,5 +1,6 @@ #include #include +#include using namespace cv; @@ -35,7 +36,7 @@ private: int top, bottom, left, right; top = percent*src.m().rows; bottom = percent*src.m().rows; left = percent*src.m().cols; right = percent*src.m().cols; - copyMakeBorder(src, dst, top, bottom, left, right, border, Scalar(value)); + OpenCVUtils::pad(src,dst,true,QList() << top << bottom << left << right,true,true,border,value); } };