]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkRescaleSlopeIntercept.cxx
#3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7
[bbtk.git] / packages / vtk / src / bbvtkRescaleSlopeIntercept.cxx
index 9262c509af330d0effaaa09e1175bb38b470c154..e9cf56dc03e893b951d6bfd9534afaf84810724e 100644 (file)
@@ -43,6 +43,7 @@ BBTK_BLACK_BOX_IMPLEMENTATION(RescaleSlopeIntercept,bbtk::AtomicBlackBox);
 //===== 
 void RescaleSlopeIntercept::Process()
 {
+printf("RescaleSlopeIntercept::Process Start\n");
 
 // THE MAIN PROCESSING METHOD BODY
 //   Here we simply set the input 'In' value to the output 'Out'
@@ -142,12 +143,18 @@ void RescaleSlopeIntercept::Process()
 
                mchange->SetExtentTranslation( -ext[0], -ext[2], -ext[4] );
                mchange->SetOutputSpacing (spc);
+               filter1->Update();    //important
+               filter2->Update();    //important
                mchange->Update();    //important
                bbSetOutputOut( mchange->GetOutput() );
+printf("RescaleSlopeIntercept::Process A\n");
                
        } else  {
+printf("RescaleSlopeIntercept::Process B\n");
                bbSetOutputOut( NULL );
        }               // if bbGetInputIn      
+printf("RescaleSlopeIntercept::Process End\n");
+
 }