X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=PackRecalage%2Fsrc%2FbbPackRecalageReSlicerBox.cxx;h=e5b29da37ab17b1db8fbf0a3f0b5f9ef0fa4e790;hb=refs%2Fheads%2Fvtk8itk4wx3-mingw64;hp=c501128b3ad2f2403c7f2889fc4a323dcbfc1a7e;hpb=f8423bfeaa7913646856bc2bfd1a61a91002d50e;p=creaRigidRegistration.git diff --git a/PackRecalage/src/bbPackRecalageReSlicerBox.cxx b/PackRecalage/src/bbPackRecalageReSlicerBox.cxx index c501128..e5b29da 100644 --- a/PackRecalage/src/bbPackRecalageReSlicerBox.cxx +++ b/PackRecalage/src/bbPackRecalageReSlicerBox.cxx @@ -93,8 +93,8 @@ void ReSlicerBox::Process() { image->CenterImageOn(); } - - double tmpbackInfo[19]; + image->Update(); + double tmpbackInfo[19]; GetBackInfo(tmpbackInfo,bbGetInputTransform()->GetMatrix(),bbGetInputOrigin() ); if ( CompareBackInfo(backInfoA,tmpbackInfo)==false ) @@ -129,7 +129,7 @@ void ReSlicerBox::Process() bbGetInputIn()->GetSpacing(spc); imageResult->SetOutputSpacing( spc ); imageResult->SetOutputOrigin( 0,0,0 ); - + imageResult->Update(); bbSetOutputOut( imageResult->GetOutput() ); if (bbGetInputTransform()!=NULL) @@ -178,16 +178,16 @@ void ReSlicerBox::bbUserInitializeProcessing() // Here does nothing // but this is where you should allocate the internal/output pointers // if any - image = vtkImageChangeInformation::New(); - slicer =vtkImageReslice::New(); + image = vtkImageChangeInformation::New(); + slicer = vtkImageReslice::New(); imageResult = vtkImageChangeInformation::New(); } void ReSlicerBox::bbUserFinalizeProcessing() { - image->Delete(); - slicer->Delete(); - imageResult->Delete(); + image -> Delete(); + slicer -> Delete(); + imageResult -> Delete(); } }