From ecd876e934c2f90073647b1b71e8206fd4689702 Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Fri, 10 Apr 2015 11:16:11 -0400 Subject: [PATCH] Fixed Q_PROPERTY type error --- openbr/plugins/imgproc/fillcontours.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openbr/plugins/imgproc/fillcontours.cpp b/openbr/plugins/imgproc/fillcontours.cpp index 782a8e4..c3c29c7 100644 --- a/openbr/plugins/imgproc/fillcontours.cpp +++ b/openbr/plugins/imgproc/fillcontours.cpp @@ -33,9 +33,9 @@ class FillContoursTransform : public UntrainableTransform Q_OBJECT Q_PROPERTY(float epsilon READ get_epsilon WRITE set_epsilon RESET reset_epsilon STORED false) - Q_PROPERTY(size_t minSize READ get_minSize WRITE set_minSize RESET reset_minSize STORED false) + Q_PROPERTY(int minSize READ get_minSize WRITE set_minSize RESET reset_minSize STORED false) BR_PROPERTY(float, epsilon, 0) - BR_PROPERTY(size_t, minSize, 40) + BR_PROPERTY(int, minSize, 40) void project(const Template &src, Template &dst) const { @@ -52,7 +52,7 @@ class FillContoursTransform : public UntrainableTransform approxPolyDP(Mat(contours[i]), contours[i], epsilon, true); for(size_t i=0; i minSize) + if (contours[i].size() > (size_t)minSize) drawContours(dst, contours, i, Scalar(255,255,255), CV_FILLED); } }; -- libgit2 0.21.4