Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 4525)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 4526)
@@ -19,4 +19,12 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+
+ 2004/08/05: Nadia Tonello
+
+   * mimage/MImgCleanStd.cc:
+     - in the Process, the Step3 (that checks the boundary pixels) 
+	is skipped when no action is espected, i.e. if lvl1 <= lvl2.
+	This will accelerate the cleaning process in such cases.
 
 
Index: /trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc
===================================================================
--- /trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc	(revision 4525)
+++ /trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc	(revision 4526)
@@ -548,8 +548,4 @@
     CleanStep1();
 
-    // For speed reasons skip the rest of the cleaning if no
-    // action will be taken!
-    if (fCleanLvl1>=fCleanLvl2)
-        return kTRUE;
 
 #ifdef DEBUG
@@ -557,4 +553,10 @@
 #endif
     CleanStep2();
+
+    // For speed reasons skip the rest of the cleaning if no
+    // action will be taken!
+    if (fCleanLvl1<=fCleanLvl2)
+        return kTRUE;
+
 #ifdef DEBUG
     *fLog << all << "CleanStep 3" << endl;
