MantisBT - ITK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0003264 | ITK | public | 2006-05-21 19:28 | 2010-10-21 12:31 | |
Reporter | Simon Warfield | ||||
Assigned To | Luis Ibanez | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Resolution Date | |||||
Sprint | |||||
Sprint Status | |||||
Summary | 0003264: CenteredVersorTransformInitializer fails | ||||
Description | The CenteredVersorTransformInitializer never computes the versor. The class aims to do the following: > CenteredVersorTransformInitializer <http://www.itk.org/Doxygen/html/classitk_1_1CenteredVersorTransformInitializer.html> [^] is a helper class intended to initialize the center of rotation, versor, and translation of the VersorRigid3DTransform <http://www.itk.org/Doxygen/html/classitk_1_1VersorRigid3DTransform.html>. [^] > > This class derived from the CenteredTransformInitializer <http://www.itk.org/Doxygen/html/classitk_1_1CenteredTransformInitializer.html> [^] and uses it in a more constrained context. It always uses the Moments mode, and also takes advantage of the second order moments in order to initialize the Versor <http://www.itk.org/Doxygen/html/classitk_1_1Versor.html> [^] representing rotation. > The code for initialization computes principal axes, but does not appear to actually compute a versor. > template < class TFixedImage, class TMovingImage > > void > CenteredVersorTransformInitializer<TFixedImage, TMovingImage > > ::InitializeTransform() const > { > > // Compute moments and initialize center of rotaion and translation > this->Superclass::InitializeTransform(); > > typedef typename Superclass::FixedImageCalculatorType::MatrixType FixedMatrixType; > typedef typename Superclass::MovingImageCalculatorType::MatrixType MovingMatrixType; > > FixedMatrixType fixedPrincipalAxis = this->GetFixedCalculator()->GetPrincipalAxes(); > MovingMatrixType movingPrincipalAxis = this->GetMovingCalculator()->GetPrincipalAxes(); > > } When I use this on my data, I do not get an initialized versor. It doesn't work with my data and it doesn't work with the brainweb test data described in the software guide. Should there be code added that initializes the versor ? | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2010-02-12 19:04 | Luis Ibanez | Note Added: 0019524 | |||
2010-02-12 19:08 | Luis Ibanez | Note Added: 0019525 | |||
2010-02-12 19:08 | Luis Ibanez | Status | acknowledged => resolved | ||
2010-02-12 19:08 | Luis Ibanez | Resolution | open => fixed | ||
2010-10-21 12:31 | Gabe Hart | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|