From 12d02d8cbc13cb26ee49d91b1fabd925aa0050bf Mon Sep 17 00:00:00 2001 From: viar Date: Tue, 13 Sep 2022 18:55:56 +0200 Subject: [PATCH] PLEASE CHECK changes in DRTMetaInformation.cpp. Possible reason for cut of image? --- .../itkDTRrecon/DRTMetaInformation.cpp | 3 +- .../itkDTRrecon/itkImageProcessor.cpp | 43 ++++++++++--------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/reg23Topograms/itkDTRrecon/DRTMetaInformation.cpp b/reg23Topograms/itkDTRrecon/DRTMetaInformation.cpp index d1943e4..4aeaaff 100644 --- a/reg23Topograms/itkDTRrecon/DRTMetaInformation.cpp +++ b/reg23Topograms/itkDTRrecon/DRTMetaInformation.cpp @@ -287,7 +287,8 @@ CTVolumeImageMetaInformation::GetProjectionOriginLPSZero( PointType Origin; Origin = this->m_OriginLPS; - Origin = Origin - this->m_ImportOffset; + // Is this the trick? that cut out images? +// Origin = Origin - this->m_ImportOffset; DirectionType IECtoLPS_Directions; diff --git a/reg23Topograms/itkDTRrecon/itkImageProcessor.cpp b/reg23Topograms/itkDTRrecon/itkImageProcessor.cpp index 19af153..e5bc174 100644 --- a/reg23Topograms/itkDTRrecon/itkImageProcessor.cpp +++ b/reg23Topograms/itkDTRrecon/itkImageProcessor.cpp @@ -157,7 +157,7 @@ itkImageProcessor::itkImageProcessor() Point3D[1]=0.; Point3D[2]=175.; m_DRTGeometryMetaInfo->SetProjectionCenter(Point3D); - m_DRTGeometryMetaInfo->SetProjectionCenter(Point3D); +// m_DRTGeometryMetaInfo->SetProjectionCenter(Point3D); ImageType3D::SizeType ImageSize; ImageSize[0]=512; @@ -1649,10 +1649,10 @@ void itkImageProcessor::UpdateProjectionGeometryMeta(){ // std::cout<< "///////////////// PGEOM META BEG ///////////////" <GetProjectionCenter() <GetProjectionCenter() <GetProjectionCenterOffset1()); + std::cout<<"CALIBRATION IsocenterOffsetLPS "<GetProjectionOriginLPS() ); - std::cout<<"Bounds2: " - <SetSizeWithBounds( vBounds.data(), @@ -1824,16 +1825,16 @@ void itkImageProcessor::UpdateProjectionGeometryMeta(){ Std_DRT2LPS) ); - std::cout<<"IsocenterOffsetLPS"<< IsocenterOffsetLPS <GetSize()"<< m_DRTImage2MetaInfo->GetSize() <GetSpacing()"<< m_DRTImage2MetaInfo->GetSpacing() <GetOrigin()"<< m_DRTImage2MetaInfo->GetOrigin() <GetCOV()"<< m_DRTImage2MetaInfo->GetCOV() <GetOriginLPS()"<< m_DRTImage2MetaInfo->GetOriginLPS() <GetProjectionAngleLPS()"<GetProjectionAngleLPS()<GetImageDirectionsLPS()"<< m_DRTImage2MetaInfo->GetImageDirectionsLPS() <GetSize()"<< m_DRTImage2MetaInfo->GetSize() <GetSpacing()"<< m_DRTImage2MetaInfo->GetSpacing() <GetOrigin()"<< m_DRTImage2MetaInfo->GetOrigin() <GetCOV()"<< m_DRTImage2MetaInfo->GetCOV() <GetOriginLPS()"<< m_DRTImage2MetaInfo->GetOriginLPS() <GetProjectionAngleLPS()"<GetProjectionAngleLPS()<GetImageDirectionsLPS()"<< m_DRTImage2MetaInfo->GetImageDirectionsLPS() <