Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
2019 FBSD
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kerautret Bertrand
2019 FBSD
Commits
357da3cd
Unverified
Commit
357da3cd
authored
6 years ago
by
Kerautret Bertrand
Browse files
Options
Downloads
Patches
Plain Diff
Demo : add multiple points output
parent
bf05ab97
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Seg/IPOLdemo/mainIPOL.cpp
+32
-2
32 additions, 2 deletions
Code/Seg/IPOLdemo/mainIPOL.cpp
with
32 additions
and
2 deletions
Code/Seg/IPOLdemo/mainIPOL.cpp
+
32
−
2
View file @
357da3cd
...
...
@@ -86,7 +86,8 @@ int main (int argc, char *argv[])
}
fin
.
close
();
}
fout
<<
"# Line detection generated from "
<<
argv
[
0
]
<<
"with format : X1 Y1 X2 Y2 on each line"
<<
std
::
endl
;
// Blurred segment detection
vector
<
BlurredSegment
*>
bss
;
BSDetector
detector
;
...
...
@@ -110,6 +111,35 @@ int main (int argc, char *argv[])
nbseg
++
;
}
}
vector
<
BlurredSegment
*>::
const_iterator
it
=
bss
.
begin
();
while
(
it
!=
bss
.
end
())
{
// Affichage du premier point
vector
<
Pt2i
>
points
=
(
*
it
)
->
getAllPoints
();
fout
<<
points
.
front
().
x
()
<<
" "
<<
points
.
front
().
y
()
<<
" "
<<
points
.
back
().
x
()
<<
" "
<<
points
.
back
().
y
()
<<
std
::
endl
;
// Affichage du DSS englobant
// vector<Pt2i> bnd;
// DigitalStraightSegment *dss = (*it)->getSegment ();
// if (dss != NULL)
// {
// dss->getBounds (bnd, 0, 0, width, height, false);
// // cout << "DSS starts from (" << bnd.front().x()
// // << "," << bnd.front().y() << ")" << endl;
// auto b = bnd.begin();
// for (auto &x: bnd){
// cout << "DSS starts from (" << x.x()
// << "," << x.y() << ")" << endl;
// }
// }
it
++
;
}
std
::
cout
<<
nbseg
<<
" detections"
<<
std
::
endl
;
}
else
...
...
@@ -119,7 +149,7 @@ int main (int argc, char *argv[])
bss
=
detector
.
getBlurredSegments
();
}
fout
<<
"# Line detection generated from "
<<
argv
[
0
]
<<
"with format : X1 Y1 X2 Y2 on each line"
<<
std
::
endl
;
// Display
if
(
!
bss
.
empty
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment