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
0ae5acdf
Unverified
Commit
0ae5acdf
authored
6 years ago
by
Kerautret Bertrand
Browse files
Options
Downloads
Patches
Plain Diff
Demo: edit new format option DGtalToolsContrib
parent
4094baa8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Seg/IPOLdemo/Scripts/displaySegmentsInteract.sh
+1
-1
1 addition, 1 deletion
Code/Seg/IPOLdemo/Scripts/displaySegmentsInteract.sh
Code/Seg/IPOLdemo/mainIPOL.cpp
+11
-3
11 additions, 3 deletions
Code/Seg/IPOLdemo/mainIPOL.cpp
with
12 additions
and
4 deletions
Code/Seg/IPOLdemo/Scripts/displaySegmentsInteract.sh
+
1
−
1
View file @
0ae5acdf
...
...
@@ -11,7 +11,7 @@ OUT_FILE_BASENAME=$4
displayLineSegments
-i
${
LINE_FILE
}
--customLineColor
50 50 250
--backgroundImage
${
BG_IMAGE
}
-o
${
OUT_FILE_BASENAME
}
.fig
-s
${
INPUT_LINESEED
}
--customLineColorSec
Set
250 50 50
--customPointColor
50 250 50
--lineWidth
2
--lineWidthSec
Set
2
--noDisplayEndPoints
displayLineSegments
-i
${
LINE_FILE
}
--customLineColor
50 50 250
--backgroundImage
${
BG_IMAGE
}
-o
${
OUT_FILE_BASENAME
}
.fig
-s
${
INPUT_LINESEED
}
--customLineColorSec
250 50 50
--customPointColor
50 250 50
--lineWidth
2
--lineWidthSec
2
--noDisplayEndPoints
fig2dev
-L
eps
${
OUT_FILE_BASENAME
}
.fig
${
OUT_FILE_BASENAME
}
.eps
convert
-background
\#
FFFFFF
-flatten
${
OUT_FILE_BASENAME
}
.eps
-geometry
512x
${
OUT_FILE_BASENAME
}
.png
...
...
This diff is collapsed.
Click to expand it.
Code/Seg/IPOLdemo/mainIPOL.cpp
+
11
−
3
View file @
0ae5acdf
...
...
@@ -44,7 +44,8 @@ int main (int argc, char *argv[])
string
output_filename
=
argv
[
2
];
ofstream
fout
;
fout
.
open
(
output_filename
.
c_str
(),
std
::
fstream
::
out
);
ofstream
foutAllPts
;
foutAllPts
.
open
(
"segmentsPoints.dat"
,
std
::
fstream
::
out
)
// Gradient map extraction (uses qt)
QImage
image
;
...
...
@@ -161,7 +162,7 @@ int main (int argc, char *argv[])
}
// Display
if
(
!
bss
.
empty
())
{
...
...
@@ -173,7 +174,14 @@ int main (int argc, char *argv[])
fout
<<
points
.
front
().
x
()
<<
" "
<<
points
.
front
().
y
()
<<
" "
<<
points
.
back
().
x
()
<<
" "
<<
points
.
back
().
y
()
<<
std
::
endl
;
// Export pour l'affichage de tous les points d'un segments
for
(
auto
p
:
points
)
{
foutAllPts
<<
p
.
x
()
<<
" "
<<
p
.
y
()
<<
" "
;
}
foutAllPts
<<
std
::
endl
;
// Affichage du DSS englobant
// vector<Pt2i> bnd;
// DigitalStraightSegment *dss = (*it)->getSegment ();
...
...
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