Issue #27 - Started working on implementation of the Registration Supervisor. It works as it is supposed to. Could be improved visualisation when using TranslationWidget
This commit is contained in:
@ -2548,8 +2548,33 @@ void itkImageProcessor::SetInitialRotations(double dX, double dY, double dZ)
|
|||||||
|
|
||||||
m_TransformMetaInfo->SetRotations(Rotations);
|
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
|
} // end namespace itk
|
||||||
|
|
||||||
|
@ -116,6 +116,8 @@ public:
|
|||||||
void SetInitialTranslations(double, double, double);
|
void SetInitialTranslations(double, double, double);
|
||||||
void SetInitialRotations(double, double, double);
|
void SetInitialRotations(double, double, double);
|
||||||
|
|
||||||
|
/** Get transform parameters for 3D Volume */
|
||||||
|
double* GetTransformParameters();
|
||||||
|
|
||||||
/** Initialize projection geometry */
|
/** Initialize projection geometry */
|
||||||
void InitializeProjector();
|
void InitializeProjector();
|
||||||
@ -306,7 +308,8 @@ private:
|
|||||||
* m_Projection1VTKTransform,
|
* m_Projection1VTKTransform,
|
||||||
* m_Projection2VTKTransform;
|
* m_Projection2VTKTransform;
|
||||||
|
|
||||||
|
/*Transformation Parameters */
|
||||||
|
double dTransfParam[6];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Many meta containers
|
* Many meta containers
|
||||||
|
Reference in New Issue
Block a user