X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_Transform3Ddicom_PKG%2Fsrc%2FbbTransform3DdicomNewDicomImaPosPat.cxx;h=7bc8f14092339830389997d8dec74791404bbc63;hb=d715d59ea44b99cd801543fa91c9080946b3266c;hp=1a56b0277932ac0182b484c5ac18c5a962b21605;hpb=2d7aa89cbd749ab0de479f9e966397441261deb3;p=creaImageIO.git 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"); } /*