From: trillos Date: Thu, 17 Dec 2009 14:53:22 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: CREATOOLS.2-0-3~9 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=4fe13a77d1491efb6523d36402ba438822fae66c;p=creaRigidRegistration.git *** empty log message *** --- diff --git a/PackRecalage/src/bbPackRecalageReSlicerBox.cxx b/PackRecalage/src/bbPackRecalageReSlicerBox.cxx index f00d13b..7719669 100644 --- a/PackRecalage/src/bbPackRecalageReSlicerBox.cxx +++ b/PackRecalage/src/bbPackRecalageReSlicerBox.cxx @@ -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() {