Skip to content
Snippets Groups Projects
Unverified Commit e901ca18 authored by Kerautret Bertrand's avatar Kerautret Bertrand :thinking:
Browse files

Demo ajout épaisseur

parent c05dce56
No related branches found
No related tags found
No related merge requests found
......@@ -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 ();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment