diff --git a/Code/Seg/BSTools/bsaccumulatorview.cpp b/Code/Seg/BSTools/bsaccumulatorview.cpp
index a316774dfff21ca7973109d2f667f15fd98aeaa8..5618ea4b91e0778ab049d36955d03df2613c76a4 100755
--- a/Code/Seg/BSTools/bsaccumulatorview.cpp
+++ b/Code/Seg/BSTools/bsaccumulatorview.cpp
@@ -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;
diff --git a/Code/Seg/BSTools/bsidetview.cpp b/Code/Seg/BSTools/bsidetview.cpp
index 731e950a2231b2dbdb2a1369c4fbab75d60d1d42..6b3beea667f6e326619ef14ca3c4fd58ef10889f 100755
--- a/Code/Seg/BSTools/bsidetview.cpp
+++ b/Code/Seg/BSTools/bsidetview.cpp
@@ -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;
 
diff --git a/Code/Seg/BSTools/bsprofileview.cpp b/Code/Seg/BSTools/bsprofileview.cpp
index 03cbb07bd46e90ec971a0a2c48b9b98bc0aad140..31208ffa7a0d1d0fa2c1a37ab2f63a1402694eb8 100755
--- a/Code/Seg/BSTools/bsprofileview.cpp
+++ b/Code/Seg/BSTools/bsprofileview.cpp
@@ -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;
 
diff --git a/Code/Seg/BSTools/bsstructureview.cpp b/Code/Seg/BSTools/bsstructureview.cpp
index 536234816dee6e9d1351a221efe1a2380ae1fd44..aec15cd446f7a07fc148a9dbca518b75e1bb1fc8 100755
--- a/Code/Seg/BSTools/bsstructureview.cpp
+++ b/Code/Seg/BSTools/bsstructureview.cpp
@@ -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;
 
diff --git a/Code/Seg/IPOLdemo/mainIPOL.cpp b/Code/Seg/IPOLdemo/mainIPOL.cpp
index 013bdc6714e804bf562e37e669944c4aac117b16..703b2ddeb08c4d19938127fcc699664ab93b9a39 100755
--- a/Code/Seg/IPOLdemo/mainIPOL.cpp
+++ b/Code/Seg/IPOLdemo/mainIPOL.cpp
@@ -32,7 +32,7 @@ int main (int argc, char *argv[])
   // - output file
   string output_filename = argv[2];
   ofstream fout;  
-  fout.open(output_filename.c_str(), std::fstream::out);
+  fout.open(output_filename, std::fstream::out);
 
   
 // Calcul de la carte de gradient (utilise qt)