From f7693ac5ca4d952ad2d7a1f13039e89b0be03922 Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Thu, 9 Apr 2015 17:06:07 -0400 Subject: [PATCH] Fixed some careless coding --- openbr/plugins/imgproc/fillcontours.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openbr/plugins/imgproc/fillcontours.cpp b/openbr/plugins/imgproc/fillcontours.cpp index aa3036b..4236c3c 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(float minSize READ get_minSize WRITE set_minSize RESET reset_minSize STORED false) - BR_PROPERTY(float, epsilon, 3) - BR_PROPERTY(int, minSize, 40) + Q_PROPERTY(size_t minSize READ get_minSize WRITE set_minSize RESET reset_minSize STORED false) + BR_PROPERTY(float, epsilon, 0) + BR_PROPERTY(size_t, minSize, 40) void project(const Template &src, Template &dst) const { @@ -47,7 +47,7 @@ class FillContoursTransform : public UntrainableTransform /// Find contours findContours(src.m(), contours, hierarchy, CV_RETR_TREE, CV_CHAIN_APPROX_SIMPLE, Point(0, 0)); - if (smooth) + if (epsilon > 0) for(size_t i=0; i