From e901ca1852e1521865a09555ef5dfe105178344d Mon Sep 17 00:00:00 2001 From: Kerautret <bertrand.kerautret@univ-lyon2.fr> Date: Sun, 23 Dec 2018 01:04:53 +0100 Subject: [PATCH] =?UTF-8?q?Demo=20ajout=20=C3=A9paisseur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Code/Seg/IPOLdemo/mainIPOL.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Code/Seg/IPOLdemo/mainIPOL.cpp b/Code/Seg/IPOLdemo/mainIPOL.cpp index 5413561..6b3f10b 100755 --- a/Code/Seg/IPOLdemo/mainIPOL.cpp +++ b/Code/Seg/IPOLdemo/mainIPOL.cpp @@ -19,7 +19,7 @@ void usage(std::string str) int main (int argc, char *argv[]) { - if (argc < 3) + if (argc < 4) { usage(argv[0]); exit(EXIT_FAILURE); @@ -33,9 +33,10 @@ int main (int argc, char *argv[]) string inpoints_filename = ""; ifstream fin; bool with_points = false; - if (argc == 4) + double widthBS = atof(argv[3]); + if (argc == 5) { - inpoints_filename = argv[3]; + inpoints_filename = argv[4]; fin.open (inpoints_filename.c_str(), std::fstream::in); with_points = true; } @@ -100,6 +101,8 @@ int main (int argc, char *argv[]) vector<BlurredSegment *> bss; BSDetector detector; detector.setGradientMap (gMap); + detector.setFineTracksMaxWidth (widthBS); + if (with_points) { vector<Pt2i>::iterator pit = pts.begin (); -- GitLab