Commit ecd876e934c2f90073647b1b71e8206fd4689702
1 parent
de084b7a
Fixed Q_PROPERTY type error
Showing
1 changed file
with
3 additions
and
3 deletions
openbr/plugins/imgproc/fillcontours.cpp
| @@ -33,9 +33,9 @@ class FillContoursTransform : public UntrainableTransform | @@ -33,9 +33,9 @@ class FillContoursTransform : public UntrainableTransform | ||
| 33 | Q_OBJECT | 33 | Q_OBJECT |
| 34 | 34 | ||
| 35 | Q_PROPERTY(float epsilon READ get_epsilon WRITE set_epsilon RESET reset_epsilon STORED false) | 35 | Q_PROPERTY(float epsilon READ get_epsilon WRITE set_epsilon RESET reset_epsilon STORED false) |
| 36 | - Q_PROPERTY(size_t minSize READ get_minSize WRITE set_minSize RESET reset_minSize STORED false) | 36 | + Q_PROPERTY(int minSize READ get_minSize WRITE set_minSize RESET reset_minSize STORED false) |
| 37 | BR_PROPERTY(float, epsilon, 0) | 37 | BR_PROPERTY(float, epsilon, 0) |
| 38 | - BR_PROPERTY(size_t, minSize, 40) | 38 | + BR_PROPERTY(int, minSize, 40) |
| 39 | 39 | ||
| 40 | void project(const Template &src, Template &dst) const | 40 | void project(const Template &src, Template &dst) const |
| 41 | { | 41 | { |
| @@ -52,7 +52,7 @@ class FillContoursTransform : public UntrainableTransform | @@ -52,7 +52,7 @@ class FillContoursTransform : public UntrainableTransform | ||
| 52 | approxPolyDP(Mat(contours[i]), contours[i], epsilon, true); | 52 | approxPolyDP(Mat(contours[i]), contours[i], epsilon, true); |
| 53 | 53 | ||
| 54 | for(size_t i=0; i<contours.size(); i++) | 54 | for(size_t i=0; i<contours.size(); i++) |
| 55 | - if (contours[i].size() > minSize) | 55 | + if (contours[i].size() > (size_t)minSize) |
| 56 | drawContours(dst, contours, i, Scalar(255,255,255), CV_FILLED); | 56 | drawContours(dst, contours, i, Scalar(255,255,255), CV_FILLED); |
| 57 | } | 57 | } |
| 58 | }; | 58 | }; |