Commit ecd876e934c2f90073647b1b71e8206fd4689702

Authored by Scott Klum
1 parent de084b7a

Fixed Q_PROPERTY type error

openbr/plugins/imgproc/fillcontours.cpp
... ... @@ -33,9 +33,9 @@ class FillContoursTransform : public UntrainableTransform
33 33 Q_OBJECT
34 34  
35 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 37 BR_PROPERTY(float, epsilon, 0)
38   - BR_PROPERTY(size_t, minSize, 40)
  38 + BR_PROPERTY(int, minSize, 40)
39 39  
40 40 void project(const Template &src, Template &dst) const
41 41 {
... ... @@ -52,7 +52,7 @@ class FillContoursTransform : public UntrainableTransform
52 52 approxPolyDP(Mat(contours[i]), contours[i], epsilon, true);
53 53  
54 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 56 drawContours(dst, contours, i, Scalar(255,255,255), CV_FILLED);
57 57 }
58 58 };
... ...