]> Creatis software - creaRigidRegistration.git/commitdiff
*** empty log message ***
authortrillos <trillos>
Thu, 17 Dec 2009 14:53:22 +0000 (14:53 +0000)
committertrillos <trillos>
Thu, 17 Dec 2009 14:53:22 +0000 (14:53 +0000)
PackRecalage/src/bbPackRecalageReSlicerBox.cxx

index f00d13ba4868264e58e6039e6f4d87ce848c2bef..7719669172df88cf7d90ce9aeee46b8c49b61b80 100644 (file)
@@ -8,26 +8,18 @@ BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,ReSlicerBox)
 BBTK_BLACK_BOX_IMPLEMENTATION(ReSlicerBox,bbtk::AtomicBlackBox);
 void ReSlicerBox::Process()
 {
-       std::cout << "NTU ReSlicerBox : entered 1" << std::endl;
        if(!bbGetInputOrigin().empty()  && bbGetInputTransform() != NULL)
        {
-               std::cout << "NTU ReSlicerBox : entered 2" << std::endl;
-               
-               image = vtkImageChangeInformation::New();
+               //image = vtkImageChangeInformation::New();
                image->SetInput( bbGetInputIn() );
                image->SetOutputSpacing( 1,1,1 );
 
-               std::cout << "NTU ReSlicerBox : entered 3" << std::endl;
-               
                if(bbGetInputCentered())
                {
                        image->CenterImageOn();
                }
 
-               std::cout << "NTU ReSlicerBox : entered 4" << std::endl;
-       
-               slicer =vtkImageReslice::New();
+               //slicer =vtkImageReslice::New();
                slicer->SetInput( image->GetOutput() );
                slicer->SetInformationInput( image->GetOutput() );
                slicer->SetResliceTransform(bbGetInputTransform());
@@ -38,24 +30,19 @@ void ReSlicerBox::Process()
                }               
                slicer->Update();
 
-               std::cout << "NTU ReSlicerBox : entered 5" << std::endl;
-
-               imageResult = vtkImageChangeInformation::New();
+               //imageResult = vtkImageChangeInformation::New();
                imageResult->SetInput( slicer->GetOutput() );
                double spc[3];
                bbGetInputIn()->GetSpacing(spc);
                imageResult->SetOutputSpacing( spc ); 
                imageResult->SetOutputOrigin( 0,0,0 ); 
        
-               bbSetOutputOut( imageResult->GetOutput() );             
+               bbSetOutputOut( imageResult->GetOutput() );                     
        }
        else
        {
-               bbSetOutputOut( bbGetInputIn() );
-       }
-
-       std::cout << "NTU ReSlicerBox : out" << std::endl;
-         
+               bbSetOutputOut( NULL );         
+       }  
 }
 void ReSlicerBox::bbUserSetDefaultValues()
 {