]> Creatis software - creaImageIO.git/commitdiff
Clean code
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Thu, 12 Oct 2023 12:23:03 +0000 (14:23 +0200)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Thu, 12 Oct 2023 12:23:03 +0000 (14:23 +0200)
bbtk_Transform3Ddicom_PKG/src/bbTransform3DdicomNewDicomImaPosPat.cxx

index 1a56b0277932ac0182b484c5ac18c5a962b21605..7bc8f14092339830389997d8dec74791404bbc63 100644 (file)
@@ -11,14 +11,12 @@ BBTK_ADD_BLACK_BOX_TO_PACKAGE(Transform3Ddicom,NewDicomImaPosPat)
 BBTK_BLACK_BOX_IMPLEMENTATION(NewDicomImaPosPat,bbtk::AtomicBlackBox);
 void NewDicomImaPosPat::Process()
 {
-    printf("NewDicomImaPosPat::Process Start\n");
        if (!((bbGetInputIPP().size()!=3) ||   (bbGetInputIOP().size()!=6)  ||  (bbGetInputPixelSpacing().size()!=3)  ))
        {
                matrixRotation matrixrotation;  
                matrixrotation.SetOrigin(  bbGetInputIPP()[0]  , bbGetInputIPP()[1] , bbGetInputIPP()[2] );
                matrixrotation.SetVector1( bbGetInputIOP()[0] , bbGetInputIOP()[1] , bbGetInputIOP()[2] );
                matrixrotation.SetVector2(  bbGetInputIOP()[3] , bbGetInputIOP()[4] , bbGetInputIOP()[5] );
-        printf("EED NewDicomImaPosPat::Process spc %f %f %f \n",  bbGetInputPixelSpacing()[0] ,  bbGetInputPixelSpacing()[1],  bbGetInputPixelSpacing()[2] );
         matrixrotation.SetSpacing(  bbGetInputPixelSpacing()[0] ,  bbGetInputPixelSpacing()[1],  bbGetInputPixelSpacing()[2]);
                vtkTransform *transform = vtkTransform::New();
                matrixrotation.GetTransformation(transform);
@@ -38,12 +36,11 @@ void NewDicomImaPosPat::Process()
             vecOutIPP.push_back( newIPP[2] );
             bbSetOutputOut( vecOutIPP );
         } else {
-            printf("EED NewDicomImaPosPat::Process  empty vector with input Point\n");
+            //
         }
        } else {
                printf("EED Warnning! NewDicomImaPosPat::Process Size inputs are not correct. IPP(3)=%lu  IOP(6)=%lu  Spacing(3)=%lu  Point(3)=%lu\n", bbGetInputIPP().size() , bbGetInputIOP().size() , bbGetInputPixelSpacing().size() , bbGetInputPoint().size() );
        }
-    printf("NewDicomImaPosPat::Process End\n");
 }
 
 /*