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

Demo: edit new format option DGtalToolsContrib

parent 4094baa8
No related branches found
No related tags found
No related merge requests found
......@@ -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} --customLineColorSecSet 250 50 50 --customPointColor 50 250 50 --lineWidth 2 --lineWidthSecSet 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
......
......@@ -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 ();
......
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