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)
break;
case Qt::Key_P : // Capture
viewport()->grab (
QRect (QPoint (0, 0),
QSize (grid->getWidth(), grid->getHeight()))
).toImage().save ("accu.png");
cout << "Accumulator shot in capture.png" << endl;
// viewport()->grab (
// QRect (QPoint (0, 0),
// QSize (grid->getWidth(), grid->getHeight()))
// ).toImage().save ("accu.png");
// cout << "Accumulator shot in capture.png" << endl;
break;
}
return processed;
......
......@@ -53,10 +53,10 @@ bool BSIdetView::processKeyEvent (QKeyEvent *event)
break;
case Qt::Key_P : // Capture
viewport()->grab (
QRect (QPoint (0, 0),
QSize (idet->getWidth(), idet->getHeight()))
).toImage().save ("firstDetection.png");
// viewport()->grab (
// QRect (QPoint (0, 0),
// QSize (idet->getWidth(), idet->getHeight()))
// ).toImage().save ("firstDetection.png");
cout << "First detection window shot in capture.png" << endl;
break;
......
......@@ -74,10 +74,10 @@ bool BSProfileView::processKeyEvent (QKeyEvent *event)
break;
case Qt::Key_P : // Capture
viewport()->grab (
QRect (QPoint (0, 0),
QSize (prof->getWidth(), prof->getHeight()))
).toImage().save ("profiles.png");
// viewport()->grab (
// QRect (QPoint (0, 0),
// QSize (prof->getWidth(), prof->getHeight()))
// ).toImage().save ("profiles.png");
cout << "Profiles shot in capture.png" << endl;
break;
......
......@@ -116,10 +116,10 @@ bool BSStructureView::processKeyEvent (QKeyEvent *event)
break;
case Qt::Key_P : // Capture
viewport()->grab (
QRect (QPoint (0, 0),
QSize (grid->getWidth(), grid->getHeight()))
).toImage().save ("structure.png");
// viewport()->grab (
// QRect (QPoint (0, 0),
// QSize (grid->getWidth(), grid->getHeight()))
// ).toImage().save ("structure.png");
cout << "Structure shot in capture.png" << endl;
break;
......
......@@ -32,7 +32,7 @@ int main (int argc, char *argv[])
// - output file
string output_filename = argv[2];
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)
......
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