diff --git a/reg23Topograms/itkDTRrecon/itkImageProcessor.cpp b/reg23Topograms/itkDTRrecon/itkImageProcessor.cpp index 4247ab2..a9de5de 100644 --- a/reg23Topograms/itkDTRrecon/itkImageProcessor.cpp +++ b/reg23Topograms/itkDTRrecon/itkImageProcessor.cpp @@ -2548,8 +2548,33 @@ void itkImageProcessor::SetInitialRotations(double dX, double dY, double dZ) m_TransformMetaInfo->SetRotations(Rotations); + } +double* itkImageProcessor::GetTransformParameters(){ + + + ImageType3D::PointType Translations; + ImageType3D::PointType Rotations; + + Translations = m_TransformMetaInfo->GetTranslations(); + Rotations = m_TransformMetaInfo->GetRotations(); + + dTransfParam[0] = Translations[0]; + dTransfParam[1] = Translations[1]; + dTransfParam[2] = Translations[2]; + + dTransfParam[3] = Rotations[0]; + dTransfParam[4] = Rotations[1]; + dTransfParam[5] = Rotations[2]; + + return dTransfParam; +} + + + + + } // end namespace itk diff --git a/reg23Topograms/itkDTRrecon/itkImageProcessor.h b/reg23Topograms/itkDTRrecon/itkImageProcessor.h index 1086963..079e33a 100644 --- a/reg23Topograms/itkDTRrecon/itkImageProcessor.h +++ b/reg23Topograms/itkDTRrecon/itkImageProcessor.h @@ -116,6 +116,8 @@ public: void SetInitialTranslations(double, double, double); void SetInitialRotations(double, double, double); + /** Get transform parameters for 3D Volume */ + double* GetTransformParameters(); /** Initialize projection geometry */ void InitializeProjector(); @@ -306,7 +308,8 @@ private: * m_Projection1VTKTransform, * m_Projection2VTKTransform; - + /*Transformation Parameters */ + double dTransfParam[6]; /** * Many meta containers