]> Creatis software - clitk.git/commitdiff
Small changes, need refactoring
authorsrit <srit>
Wed, 2 Mar 2011 18:30:19 +0000 (18:30 +0000)
committersrit <srit>
Wed, 2 Mar 2011 18:30:19 +0000 (18:30 +0000)
vv/vvToolRigidReg.cxx

index a9fd2b5c78b899e276f1cb94910966adfe9401e0..4d92c67ffdaff2f9659f0658fad1ed2663324594 100644 (file)
@@ -56,7 +56,6 @@ vvToolRigidReg::vvToolRigidReg(vvMainWindowBase * parent, Qt::WindowFlags f):
 //    qsize.setWidth(850);
 //    mToolWidget->setFixedSize(qsize);
   // Set how many inputs are needed for this tool
-  mFilter = new clitk::AffineRegistrationGenericFilter;
   cb_transform->hide();
   cb_interpolator->hide();
   cb_optimizer->hide();
@@ -72,8 +71,8 @@ vvToolRigidReg::vvToolRigidReg(vvMainWindowBase * parent, Qt::WindowFlags f):
   
   
   // Set how many inputs are needed for this tool
AddInputSelector("Select moving image",mFilter);
AddInputSelector("Select fixed image",mFilter);
 AddInputSelector("Select moving image");
 AddInputSelector("Select fixed image");
 }
 //------------------------------------------------------------------------------
 
@@ -892,7 +891,9 @@ void vvToolRigidReg::SetTransform(double tX, double tY, double tZ, double aX, do
   }
   //Translations
   if (tX!=0||tY!=0||tZ!=0)
-    transform->Translate(tX*mInput1->GetImage()->GetSpacing()[0],tY*mInput1->GetImage()->GetSpacing()[1],tZ*mInput1->GetImage()->GetSpacing()[2]);
+    transform->Translate(tX*mInput1->GetImage()->GetSpacing()[0],
+                         tY*mInput1->GetImage()->GetSpacing()[1],
+                         tZ*mInput1->GetImage()->GetSpacing()[2]);
 }
 //------------------------------------------------------------------------------