PLEASE CHECK changes in DRTMetaInformation.cpp. Possible reason for cut of image?
This commit is contained in:
@ -287,7 +287,8 @@ CTVolumeImageMetaInformation::GetProjectionOriginLPSZero(
|
|||||||
|
|
||||||
PointType Origin;
|
PointType Origin;
|
||||||
Origin = this->m_OriginLPS;
|
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;
|
DirectionType IECtoLPS_Directions;
|
||||||
|
@ -157,7 +157,7 @@ itkImageProcessor::itkImageProcessor()
|
|||||||
Point3D[1]=0.;
|
Point3D[1]=0.;
|
||||||
Point3D[2]=175.;
|
Point3D[2]=175.;
|
||||||
m_DRTGeometryMetaInfo->SetProjectionCenter(Point3D);
|
m_DRTGeometryMetaInfo->SetProjectionCenter(Point3D);
|
||||||
m_DRTGeometryMetaInfo->SetProjectionCenter(Point3D);
|
// m_DRTGeometryMetaInfo->SetProjectionCenter(Point3D);
|
||||||
ImageType3D::SizeType
|
ImageType3D::SizeType
|
||||||
ImageSize;
|
ImageSize;
|
||||||
ImageSize[0]=512;
|
ImageSize[0]=512;
|
||||||
@ -1649,10 +1649,10 @@ void itkImageProcessor::UpdateProjectionGeometryMeta(){
|
|||||||
|
|
||||||
// std::cout<< "///////////////// PGEOM META BEG ///////////////" <<std::endl;
|
// std::cout<< "///////////////// PGEOM META BEG ///////////////" <<std::endl;
|
||||||
|
|
||||||
// std::cout<<"NominalIsocenter IEC"<< m_DRTGeometryMetaInfo->GetProjectionCenter() <<std::endl;
|
std::cout<<"NominalIsocenter IEC"<< m_DRTGeometryMetaInfo->GetProjectionCenter() <<std::endl;
|
||||||
|
|
||||||
// std::cout<<"CALIBRATION NominalIsocenter_wZcorrectionLPS "<<NominalIsocenter_wZcorrectionLPS<<std::endl;
|
std::cout<<"CALIBRATION NominalIsocenter_wZcorrectionLPS "<<NominalIsocenter_wZcorrectionLPS<<std::endl;
|
||||||
// std::cout<<"CALIBRATION NominalIsocenterZero_wZcorrectionLPS "<<NominalIsocenterZero_wZcorrectionLPS<<std::endl;
|
std::cout<<"CALIBRATION NominalIsocenterZero_wZcorrectionLPS "<<NominalIsocenterZero_wZcorrectionLPS<<std::endl;
|
||||||
|
|
||||||
|
|
||||||
ImageType3D::PointType IsocenterOffsetLPS;
|
ImageType3D::PointType IsocenterOffsetLPS;
|
||||||
@ -1661,6 +1661,7 @@ void itkImageProcessor::UpdateProjectionGeometryMeta(){
|
|||||||
m_DRTGeometryMetaInfo->GetProjectionCenterOffset1());
|
m_DRTGeometryMetaInfo->GetProjectionCenterOffset1());
|
||||||
|
|
||||||
|
|
||||||
|
std::cout<<"CALIBRATION IsocenterOffsetLPS "<<IsocenterOffsetLPS<<std::endl;
|
||||||
|
|
||||||
ImageType3D::PointType CalibratedIsocenterLPS;
|
ImageType3D::PointType CalibratedIsocenterLPS;
|
||||||
|
|
||||||
@ -1788,13 +1789,13 @@ void itkImageProcessor::UpdateProjectionGeometryMeta(){
|
|||||||
NominalIsocenter_wZcorrectionLPS//m_DRTImage2MetaInfo->GetProjectionOriginLPS()
|
NominalIsocenter_wZcorrectionLPS//m_DRTImage2MetaInfo->GetProjectionOriginLPS()
|
||||||
);
|
);
|
||||||
|
|
||||||
std::cout<<"Bounds2: "
|
// std::cout<<"Bounds2: "
|
||||||
<<vBounds.data()[0]<<" "
|
// <<vBounds.data()[0]<<" "
|
||||||
<<vBounds.data()[1]<<" "
|
// <<vBounds.data()[1]<<" "
|
||||||
<<vBounds.data()[2]<<" "
|
// <<vBounds.data()[2]<<" "
|
||||||
<<vBounds.data()[3]<<" "
|
// <<vBounds.data()[3]<<" "
|
||||||
<<vBounds.data()[4]<<" "
|
// <<vBounds.data()[4]<<" "
|
||||||
<<vBounds.data()[5]<<std::endl;
|
// <<vBounds.data()[5]<<std::endl;
|
||||||
|
|
||||||
m_DRTImage2MetaInfo->SetSizeWithBounds(
|
m_DRTImage2MetaInfo->SetSizeWithBounds(
|
||||||
vBounds.data(),
|
vBounds.data(),
|
||||||
@ -1824,16 +1825,16 @@ void itkImageProcessor::UpdateProjectionGeometryMeta(){
|
|||||||
Std_DRT2LPS)
|
Std_DRT2LPS)
|
||||||
);
|
);
|
||||||
|
|
||||||
std::cout<<"IsocenterOffsetLPS"<< IsocenterOffsetLPS <<std::endl;
|
// std::cout<<"IsocenterOffsetLPS"<< IsocenterOffsetLPS <<std::endl;
|
||||||
std::cout<<"CalibratedIsocenterLPS"<< CalibratedIsocenterLPS <<std::endl;
|
// std::cout<<"CalibratedIsocenterLPS"<< CalibratedIsocenterLPS <<std::endl;
|
||||||
std::cout<<"CalibratedIsocenterZeroLPS"<< CalibratedIsocenterZeroLPS <<std::endl;
|
// std::cout<<"CalibratedIsocenterZeroLPS"<< CalibratedIsocenterZeroLPS <<std::endl;
|
||||||
std::cout<<"m_DRTImage2MetaInfo->GetSize()"<< m_DRTImage2MetaInfo->GetSize() <<std::endl;
|
// std::cout<<"m_DRTImage2MetaInfo->GetSize()"<< m_DRTImage2MetaInfo->GetSize() <<std::endl;
|
||||||
std::cout<<"m_DRTImage2MetaInfo->GetSpacing()"<< m_DRTImage2MetaInfo->GetSpacing() <<std::endl;
|
// std::cout<<"m_DRTImage2MetaInfo->GetSpacing()"<< m_DRTImage2MetaInfo->GetSpacing() <<std::endl;
|
||||||
std::cout<<"m_DRTImage2MetaInfo->GetOrigin()"<< m_DRTImage2MetaInfo->GetOrigin() <<std::endl;
|
// std::cout<<"m_DRTImage2MetaInfo->GetOrigin()"<< m_DRTImage2MetaInfo->GetOrigin() <<std::endl;
|
||||||
std::cout<<"m_DRTImage2MetaInfo->GetCOV()"<< m_DRTImage2MetaInfo->GetCOV() <<std::endl;
|
// std::cout<<"m_DRTImage2MetaInfo->GetCOV()"<< m_DRTImage2MetaInfo->GetCOV() <<std::endl;
|
||||||
std::cout<<"m_DRTImage2MetaInfo->GetOriginLPS()"<< m_DRTImage2MetaInfo->GetOriginLPS() <<std::endl;
|
// std::cout<<"m_DRTImage2MetaInfo->GetOriginLPS()"<< m_DRTImage2MetaInfo->GetOriginLPS() <<std::endl;
|
||||||
std::cout<<"m_DRTImage2MetaInfo->GetProjectionAngleLPS()"<<m_DRTImage2MetaInfo->GetProjectionAngleLPS()<<std::endl;
|
// std::cout<<"m_DRTImage2MetaInfo->GetProjectionAngleLPS()"<<m_DRTImage2MetaInfo->GetProjectionAngleLPS()<<std::endl;
|
||||||
std::cout<<"m_DRTImage2MetaInfo->GetImageDirectionsLPS()"<< m_DRTImage2MetaInfo->GetImageDirectionsLPS() <<std::endl;
|
// std::cout<<"m_DRTImage2MetaInfo->GetImageDirectionsLPS()"<< m_DRTImage2MetaInfo->GetImageDirectionsLPS() <<std::endl;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user