[Insight-users] CenteredVersorTransformInitializer

Karthik Krishnan Karthik.Krishnan at kitware.com
Tue Jun 21 12:02:39 EDT 2005


Yes,

Possibly the M matrix in

  switch( transformType )
    {
    case VersorRigid3Dtransform:
      {
 
is to be replaced with the 3x3 matrix of second order momemts to get the 
rotation. (Currently the M matrix is computed from second order 
multiplication of the landmark locations.)


-karthik

Luis Ibanez wrote:

>
>
> Hi Martin,
>
>
> The implementation of this class is not finished.
>
> Once it is done,
> it will contain code similar to the one in
>
>    Insight/Code/Common/
>        itkLandmarkBasedTransformInitializer.txx
>
>
> where the rotation in 3D space is estimated by
> using the eigen vectors of the Moments matrix.
>
>
> Please feel free to report this as a bug of
> "pending implementation" into the phpBugTracker.
>
>
> Or if you feel adventurous, you are welcome to
> transfer the code from the
>
>     itkLandmarkBasedTransformInitializer
>
> into the
>
>     CenteredVersorTransformInitializer
>
>
> Please let us know if you find any problems,
>
>
>    Thanks
>
>
>       Luis
>
>
> -----------------------
> Martin Urschler wrote:
>
>> hello
>>
>> can anybody explain to me what the 
>> itk::CenteredVersorTransformInitializer is doing in its 
>> InitializeTransform method besides calling the superclass method?
>>
>> 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();
>>
>> }
>>
>>
>> IMHO the fixed- and movingPrincipalAxes that are calculated are never 
>> used for anything, or did I miss something?
>>
>>
>> Martin
>>
>> _______________________________________________
>> Insight-users mailing list
>> Insight-users at itk.org
>> http://www.itk.org/mailman/listinfo/insight-users
>>
>>
>
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list