KWStyle - itkCenteredVersorTransformInitializer.txx
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkCenteredVersorTransformInitializer.txx.html,v $
5   Language:  C++
6   Date:      $Date: 2006/01/17 19:15:33 $
7   Version:   $Revision: 1.4 $
8
9   Copyright (c) Insight Software Consortium. All rights reserved.
10   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11
12      This software is distributed WITHOUT ANY WARRANTY; without even 
13      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14      PURPOSE.  See the above copyright notices for more information.
15
16 =========================================================================*/
17
18 #ifndef __itkCenteredVersorTransformInitializer_txx
19 #define __itkCenteredVersorTransformInitializer_txx
20
21 #include "itkCenteredVersorTransformInitializer.h"
22
23 namespace itk
24 {
25
26 template < class TFixedImage, class TMovingImage >
27 CenteredVersorTransformInitializer<TFixedImage, TMovingImage >
28 ::CenteredVersorTransformInitializer() 
29 {
30   // Force to use Moments computation since we need here the second
31   // order moments in order to estimate a rotation
32   this->Superclass::MomentsOn();
33 }
34
35
36 EML
37 template < class TFixedImage, class TMovingImage >
38 void 
39 CenteredVersorTransformInitializer<TFixedImage, TMovingImage >
40 ::InitializeTransform() const
41 {
42
43   // Compute moments and initialize center of rotaion and translation
44   this->Superclass::InitializeTransform();
45
46 LEN   typedef typename Superclass::FixedImageCalculatorType::MatrixType   FixedMatrixType;
47 LEN   typedef typename Superclass::MovingImageCalculatorType::MatrixType  MovingMatrixType;
48   
49 LEN   FixedMatrixType   fixedPrincipalAxis  = this->GetFixedCalculator()->GetPrincipalAxes(); 
50 LEN   MovingMatrixType  movingPrincipalAxis = this->GetMovingCalculator()->GetPrincipalAxes(); 
51   
52 }
53   
54
55       
56
57 template < class TFixedImage, class TMovingImage >
58 void 
59 CenteredVersorTransformInitializer<TFixedImage, TMovingImage >
60 ::PrintSelf(std::ostream& os, Indent indent) const
61 {
62   this->Superclass::PrintSelf(os,indent);
63 }
64  
65 }  // namespace itk
66
67 #endif /* __itkCenteredVersorTransformInitializer_txx */
68

Generated by KWStyle 1.0b on Tuesday January,17 at 02:14:01PM
© Kitware Inc.