Skip to content
Snippets Groups Projects
Unverified Commit 098f40c2 authored by Kerautret's avatar Kerautret Committed by Kerautret Bertrand
Browse files

fix ipol

parent 0d54aac1
No related branches found
No related tags found
No related merge requests found
...@@ -76,11 +76,11 @@ bool BSAccumulatorView::processKeyEvent (QKeyEvent *event) ...@@ -76,11 +76,11 @@ bool BSAccumulatorView::processKeyEvent (QKeyEvent *event)
break; break;
case Qt::Key_P : // Capture case Qt::Key_P : // Capture
viewport()->grab ( // viewport()->grab (
QRect (QPoint (0, 0), // QRect (QPoint (0, 0),
QSize (grid->getWidth(), grid->getHeight())) // QSize (grid->getWidth(), grid->getHeight()))
).toImage().save ("accu.png"); // ).toImage().save ("accu.png");
cout << "Accumulator shot in capture.png" << endl; // cout << "Accumulator shot in capture.png" << endl;
break; break;
} }
return processed; return processed;
......
...@@ -53,10 +53,10 @@ bool BSIdetView::processKeyEvent (QKeyEvent *event) ...@@ -53,10 +53,10 @@ bool BSIdetView::processKeyEvent (QKeyEvent *event)
break; break;
case Qt::Key_P : // Capture case Qt::Key_P : // Capture
viewport()->grab ( // viewport()->grab (
QRect (QPoint (0, 0), // QRect (QPoint (0, 0),
QSize (idet->getWidth(), idet->getHeight())) // QSize (idet->getWidth(), idet->getHeight()))
).toImage().save ("firstDetection.png"); // ).toImage().save ("firstDetection.png");
cout << "First detection window shot in capture.png" << endl; cout << "First detection window shot in capture.png" << endl;
break; break;
......
...@@ -74,10 +74,10 @@ bool BSProfileView::processKeyEvent (QKeyEvent *event) ...@@ -74,10 +74,10 @@ bool BSProfileView::processKeyEvent (QKeyEvent *event)
break; break;
case Qt::Key_P : // Capture case Qt::Key_P : // Capture
viewport()->grab ( // viewport()->grab (
QRect (QPoint (0, 0), // QRect (QPoint (0, 0),
QSize (prof->getWidth(), prof->getHeight())) // QSize (prof->getWidth(), prof->getHeight()))
).toImage().save ("profiles.png"); // ).toImage().save ("profiles.png");
cout << "Profiles shot in capture.png" << endl; cout << "Profiles shot in capture.png" << endl;
break; break;
......
...@@ -116,10 +116,10 @@ bool BSStructureView::processKeyEvent (QKeyEvent *event) ...@@ -116,10 +116,10 @@ bool BSStructureView::processKeyEvent (QKeyEvent *event)
break; break;
case Qt::Key_P : // Capture case Qt::Key_P : // Capture
viewport()->grab ( // viewport()->grab (
QRect (QPoint (0, 0), // QRect (QPoint (0, 0),
QSize (grid->getWidth(), grid->getHeight())) // QSize (grid->getWidth(), grid->getHeight()))
).toImage().save ("structure.png"); // ).toImage().save ("structure.png");
cout << "Structure shot in capture.png" << endl; cout << "Structure shot in capture.png" << endl;
break; break;
......
...@@ -32,7 +32,7 @@ int main (int argc, char *argv[]) ...@@ -32,7 +32,7 @@ int main (int argc, char *argv[])
// - output file // - output file
string output_filename = argv[2]; string output_filename = argv[2];
ofstream fout; ofstream fout;
fout.open(output_filename, std::fstream::out); fout.open(output_filename.c_str(), std::fstream::out);
// Calcul de la carte de gradient (utilise qt) // Calcul de la carte de gradient (utilise qt)
......
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