]> Creatis software - bbtk.git/commitdiff
#2975 BBTK Bug New Normal - Clean comments
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Tue, 14 Jun 2016 11:06:40 +0000 (13:06 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Tue, 14 Jun 2016 11:06:40 +0000 (13:06 +0200)
packages/itk/src/bbitkBinaryThresholdImageFilter.h
packages/std/src/bbstdFilesFromDirectory.cxx
packages/std/src/bbstdReadColumnsDouble.cxx
packages/std/src/bbstdReadColumnsInt.cxx
packages/std/src/bbstdWriteColumnsString.cxx
packages/vtk/src/bbvtkImageGaussianSmooth.xml
packages/vtk/src/bbvtkTransform.cxx

index 0fa8e972515043b304d33090dcb9a9ea7bb3a5f1..dcc7ecd627aed8e44e350455c230c35d2e15242f 100644 (file)
@@ -204,7 +204,6 @@ namespace bbitk
   template <class T> 
   void BinaryThresholdImageFilterGeneric::Process()
   {
-printf("EED BinaryThresholdImageFilterGeneric::Process Start\n");
     bbtkDebugMessageInc("Core",9,
                        "bbitk::BinaryThresholdImageFilterGeneric::Process<"
                        <<bbtk::TypeName<T>()<<">()"<<std::endl);
@@ -226,7 +225,6 @@ printf("EED BinaryThresholdImageFilterGeneric::Process Start\n");
     this->bbSetOutputOut( f->bbGetOutputOut() );
 
     bbtkDebugDecTab("Core",9);
-printf("EED BinaryThresholdImageFilterGeneric::Process End\n");
   }
 
   //===================================================
index 5f8feb37b04ff2457e740bfa8fab730726478bd3..6712c8cca4230ee8a6008098204ff4d8d099d93c 100644 (file)
@@ -47,8 +47,6 @@ BBTK_BLACK_BOX_IMPLEMENTATION(FilesFromDirectory,bbtk::AtomicBlackBox);
 
 void FilesFromDirectory::Process()
 {
-printf("EED FilesFromDirectory::Process Start\n");
-
        Filenames.clear();
        SimpleFilenames.clear();
        DirName         = bbGetInputIn();
@@ -57,8 +55,6 @@ printf("EED FilesFromDirectory::Process Start\n");
        CleanFilenames( bbGetInputIn() );
        bbSetOutputOut(Filenames);   
        bbSetOutputOutSimple(SimpleFilenames);   
-
-printf("EED FilesFromDirectory::Process End\n");
 }
 
 void FilesFromDirectory::bbUserSetDefaultValues()
index 915990fff6698874e7d91732aa4ec33d298655a6..42815ce3b0a4ce89876ea9288701f6fd61502bd1 100644 (file)
@@ -39,17 +39,14 @@ BBTK_BLACK_BOX_IMPLEMENTATION(ReadColumnsDouble,bbtk::AtomicBlackBox);
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
 //===== 
 void ReadColumnsDouble::Process()
-{
-       printf("EED ReadColumnsDouble::Process start \n");
-       
-       std::vector< std::vector<double> * > tlst;
-       
+{      
+printf("EED ReadColumnsDouble::Process  UPS  \n");
+       std::vector< std::vector<double> * > tlst;      
        int i;
        for( i=0 ;  i<bbGetInputDimension() ; i++)
        {
                tlst.push_back( new std::vector<double> );
        }       
-       
        int numberOfLines = 0;
        char tmpValue[1000];
        std::vector<double> *vecData;
@@ -89,11 +86,6 @@ void ReadColumnsDouble::Process()
        i=13; if (i<=bbGetInputDimension()) { bbSetOutputlstData13( *(tlst[i-1]) ); }
        i=14; if (i<=bbGetInputDimension()) { bbSetOutputlstData14( *(tlst[i-1]) ); }
        i=15; if (i<=bbGetInputDimension()) { bbSetOutputlstData15( *(tlst[i-1]) ); }
-       
-       
-       printf("EED ReadColumnsDouble::Process end \n");
-       
-       
 }
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
index f33d73534b8736a3ee56bf977e6dc83494f4c9a2..e860d23383c3a667c8d75637646d3c2db8431e43 100644 (file)
@@ -40,16 +40,12 @@ BBTK_BLACK_BOX_IMPLEMENTATION(ReadColumnsInt,bbtk::AtomicBlackBox);
 //===== 
 void ReadColumnsInt::Process()
 {
-       printf("EED ReadColumnsDouble::Process start \n");
-       
-       std::vector< std::vector<int> * > tlst;
-       
+       std::vector< std::vector<int> * > tlst; 
        int i;
        for( i=0 ;  i<bbGetInputDimension() ; i++)
        {
                tlst.push_back( new std::vector<int> );
        }       
-       
        int numberOfLines = 0;
        char tmpValue[1000];
        std::vector<int> *vecData;
@@ -73,7 +69,6 @@ void ReadColumnsInt::Process()
        } else {   // else ff1
                printf("ReadColumnsDouble::Process  ...Error... reading file FileName <%s>\n", bbGetInputFileName().c_str() );
        } //ff1 
-       
        i=1; if (i<=bbGetInputDimension()) { bbSetOutputlstData1( *(tlst[i-1]) ); }
        i=2; if (i<=bbGetInputDimension()) { bbSetOutputlstData2( *(tlst[i-1]) ); }
        i=3; if (i<=bbGetInputDimension()) { bbSetOutputlstData3( *(tlst[i-1]) ); }
@@ -82,10 +77,7 @@ void ReadColumnsInt::Process()
        i=6; if (i<=bbGetInputDimension()) { bbSetOutputlstData6( *(tlst[i-1]) ); }
        i=7; if (i<=bbGetInputDimension()) { bbSetOutputlstData7( *(tlst[i-1]) ); }
        i=8; if (i<=bbGetInputDimension()) { bbSetOutputlstData8( *(tlst[i-1]) ); }
-       i=9; if (i<=bbGetInputDimension()) { bbSetOutputlstData9( *(tlst[i-1]) ); }
-       
-       printf("EED ReadColumnsDouble::Process end \n");
-       
+       i=9; if (i<=bbGetInputDimension()) { bbSetOutputlstData9( *(tlst[i-1]) ); }     
 }
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
index 05b760bbd8c514466adb65e3486454be0a001e25..229601c7e93e29a9983bcfec98ad9a432603e2de 100644 (file)
@@ -13,19 +13,11 @@ BBTK_BLACK_BOX_IMPLEMENTATION(WriteColumnsString,bbtk::AtomicBlackBox);
 //===== 
 void WriteColumnsString::Process()
 {
-
-       std::cout << "MLER WriteColumnsString::Process Start " << std::endl;
-       
-
        std::ofstream write_fi;
-       write_fi.open(bbGetInputFileName().c_str());
-       
+       write_fi.open(bbGetInputFileName().c_str());    
        std::vector<std::string> headers = bbGetInputHeaders(); //Headers Input
        bool onHeaders = bbGetInputOnHeaders();
-
-
        std::vector<std::vector<std::string> > values;
-
        values.push_back(bbGetInputlstData1());
        values.push_back(bbGetInputlstData2());
        values.push_back(bbGetInputlstData3());
@@ -35,10 +27,7 @@ void WriteColumnsString::Process()
        values.push_back(bbGetInputlstData7());
        values.push_back(bbGetInputlstData8());
        values.push_back(bbGetInputlstData9());
-
        std::vector<std::vector<std::string> >::iterator it;
-
-       std::cout << "values size"<<values.size()<< std::endl;
        for(it = values.begin() ; it != values.end() ; )
        {
                if((*it).empty())
@@ -49,8 +38,6 @@ void WriteColumnsString::Process()
                        it++;
                }
        }
-       std::cout << "values size"<<values.size()<< std::endl;
-       
        if(write_fi.is_open())
        {       
                if(onHeaders == true) // If onHeaders is true, the file is write with Headers.
@@ -67,9 +54,7 @@ void WriteColumnsString::Process()
 
                        }//for headersSize
                }
-
                unsigned int colSize = values[0].size();
-
                for(unsigned int j=0;j<colSize;j++)
                {
                        for(unsigned int i=0;i<values.size();i++)
@@ -80,24 +65,15 @@ void WriteColumnsString::Process()
                                }else{
                                        write_fi << values[i][j] << "\t";
                                }
-
                        }
-                       
                }
-               
-               
        }// if write_fi.is_open()
        else
        {
                std::cout<<"No es posible abrir"<<std::endl;
        }//else
-
        write_fi.close();
-
-       bbSetOutputOutFileName(bbGetInputFileName().c_str());
-
-       std::cout << "MLER WriteColumnsString::End Process " << std::endl;
-  
+       bbSetOutputOutFileName(bbGetInputFileName().c_str());  
 }
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
index 3c3dd79ca4e9859a7bcfc44568fcb7785c66c8c7..f93a09ffae45b268de631fec5183e6bf8c5d0043 100644 (file)
 
 <process>
 <PRE>
-    printf("EED ImageGaussianSmooth::Process start a\n");
     bbGetVtkObject()->SetStandardDeviation(bbGetInputStdDevX(), 
                                        bbGetInputStdDevY(), 
                                        bbGetInputStdDevZ());
     bbGetVtkObject()->Modified();
     bbGetVtkObject()->Update();
-    printf("EED ImageGaussianSmooth::Process end \n");
 </PRE>
 
 </process>
index 84aaddf2965822ea90115145dbafeb9f406968cf..fd0d369cde740fa8a3318d603806dec4422732cf 100644 (file)
@@ -80,6 +80,7 @@ namespace bbvtk
                }
        }
 
+
        // --------------------------------------------------------------       
   void Transform::Process()
   {
@@ -89,13 +90,11 @@ namespace bbvtk
                  result->Concatenate( bbGetInputIn()->GetMatrix() );
       }
 
          if ((bbGetInputTranslate().size()>=3) && (bbGetInputSpacing().size()>=3))
       {
                  double tx = bbGetInputTranslate()[0] * bbGetInputSpacing()[0];
                  double ty = bbGetInputTranslate()[1] * bbGetInputSpacing()[1];
                  double tz = bbGetInputTranslate()[2] * bbGetInputSpacing()[2];
-printf("Transform::Process() %f %f %f\n",tx, ty,tz);
                  result->Translate(tx,ty,tz);
       }
 
@@ -108,8 +107,6 @@ printf("Transform::Process() %f %f %f\n",tx, ty,tz);
       {
                  result->RotateWXYZ(bbGetInputRotateWXYZ()[0],bbGetInputRotateWXYZ()[1], bbGetInputRotateWXYZ()[2], bbGetInputRotateWXYZ()[3]);
       }
-
-        
  
          bbSetOutputOut(result);
   }