From: eduardo.davila@creatis.insa-lyon.fr Date: Thu, 12 Oct 2023 12:23:03 +0000 (+0200) Subject: Clean code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=d715d59ea44b99cd801543fa91c9080946b3266c;p=creaImageIO.git Clean code --- diff --git a/bbtk_Transform3Ddicom_PKG/src/bbTransform3DdicomNewDicomImaPosPat.cxx b/bbtk_Transform3Ddicom_PKG/src/bbTransform3DdicomNewDicomImaPosPat.cxx index 1a56b02..7bc8f14 100644 --- a/bbtk_Transform3Ddicom_PKG/src/bbTransform3DdicomNewDicomImaPosPat.cxx +++ b/bbtk_Transform3Ddicom_PKG/src/bbTransform3DdicomNewDicomImaPosPat.cxx @@ -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"); } /*