Clean code
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 28 Jan 2025 14:18:36 +0000 (15:18 +0100)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 28 Jan 2025 14:18:36 +0000 (15:18 +0100)
PackRecalage/src/bbPackRecalageReSlicerBox.cxx

index e5b29da37ab17b1db8fbf0a3f0b5f9ef0fa4e790..61e95f7443cda843b264d78ef546dd54d78622d4 100644 (file)
@@ -34,7 +34,6 @@ namespace bbPackRecalage
 //-----------------------------------------------------------------------------
 void ReSlicerBox::GetBackInfo(double *backInfo, vtkMatrix4x4 *vtkmatrix, std::vector<int> point )
 {
-
                backInfo[0]=vtkmatrix->GetElement(0,0);
                backInfo[1]=vtkmatrix->GetElement(0,1);
                backInfo[2]=vtkmatrix->GetElement(0,2);
@@ -51,7 +50,6 @@ void ReSlicerBox::GetBackInfo(double *backInfo, vtkMatrix4x4 *vtkmatrix, std::ve
                backInfo[13]=vtkmatrix->GetElement(3,1);
                backInfo[14]=vtkmatrix->GetElement(3,2);
                backInfo[15]=vtkmatrix->GetElement(3,3);
-
                backInfo[16]=-point[0];
                backInfo[17]=-point[1];;
                backInfo[18]=-point[2];;
@@ -78,6 +76,7 @@ BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,ReSlicerBox)
 BBTK_BLACK_BOX_IMPLEMENTATION(ReSlicerBox,bbtk::AtomicBlackBox);
 void ReSlicerBox::Process()
 {
+    printf("EED ReSlicerBox::Process start..\n");
        if(!bbGetInputOrigin().empty()  && bbGetInputTransform() != NULL)
        {
                //image = vtkImageChangeInformation::New();
@@ -139,16 +138,17 @@ void ReSlicerBox::Process()
                                if (m!=NULL)
                                {
                                        printf("EED ReSlicerBox::Process Translation %d %d %d \n",-(bbGetInputOrigin()[0]),-(bbGetInputOrigin()[1]),-(bbGetInputOrigin()[2]));
-                                       printf("EED ReSlicerBox::Process Matrix %f %f %f %f\n", m->GetElement(0,0),m->GetElement(0,1),m->GetElement(0,2),m->GetElement(0,3));
-                                       printf("EED ReSlicerBox::Process Matrix %f %f %f %f\n", m->GetElement(1,0),m->GetElement(1,1),m->GetElement(1,2),m->GetElement(1,3));
-                                       printf("EED ReSlicerBox::Process Matrix %f %f %f %f\n", m->GetElement(2,0),m->GetElement(2,1),m->GetElement(2,2),m->GetElement(2,3));
-                                       printf("EED ReSlicerBox::Process Matrix %f %f %f %f\n", m->GetElement(3,0),m->GetElement(3,1),m->GetElement(3,2),m->GetElement(3,3));
-                               } // if m 
+                                       printf("EED ReSlicerBox::Process Matrix %f %f %f %f\n", m->GetElement(0,0),m->GetElement(1,0),m->GetElement(2,0),m->GetElement(3,0));
+                                       printf("EED ReSlicerBox::Process Matrix %f %f %f %f\n", m->GetElement(0,1),m->GetElement(1,1),m->GetElement(2,1),m->GetElement(3,1));
+                                       printf("EED ReSlicerBox::Process Matrix %f %f %f %f\n", m->GetElement(0,2),m->GetElement(1,2),m->GetElement(2,2),m->GetElement(3,2));
+                                       printf("EED ReSlicerBox::Process Matrix %f %f %f %f\n", m->GetElement(0,3),m->GetElement(1,3),m->GetElement(2,3),m->GetElement(3,3));
+                               } // if m
                        } // if Transform
                } // Compare BackInfo
        } else {
                        bbSetOutputOut( NULL );
        }  
+    printf("EED ReSlicerBox::Process ..end\n");
 }