[Insight-users] Rigid3DPerspectiveTransform - need help

Luis Ibanez luis.ibanez at kitware.com
Tue Apr 22 13:05:06 EDT 2008


Hi Peter,

In order to use the Rigid3DPerspectiveTransform in this DRR code you
may have to modify some of the traits in the Rigid3DPerspective
transform.

This transform is a quite special case among the family of ITK
transforms. The transforms have traits for the input space dimension
and the output space dimension. For most transforms, these two
dimensions are the same. (e.g. Affine). In some cases the dimension
is actually fixed to a specific number (e.g. Euler3D).  In the case
of the Rigid3DPerspectiveTransform the two dimensions are different.
The input space dimension is 3 while the output space dimension is 2.

The DRR code is currently set up under the assumption that both the
input and output spaces are 3D.


Note however, that there is no reason for replacing the transform
in this example, since the RayCastInterpolator *already* performs
the perspective projection part of the transformation.

In practice, the current setup of the DRR code is performing a
3D rigid transform, followed by a projection transform. What is
probably misleading and confusing in this case, is the fact that
the projection transform happens inside of the interpolator.

Please let us know if you have further questions,


     Thanks


        Luis


---------------------------
Boettcher, Dr. Peter wrote:
> I try to use Rigid3DPerspectiveTransform for the generation of DRRs. Unfortunately pluggin the transformer, the resampleImageFilter and an the interpolator together does not work. 
> 
> resampleFilter->SetTransform(PerspectiveTransform)
> 
> Does not compile:
> 
> C:\InsightApplications-3.4.0\IntensityBased2D3DRegistration\GenerateProjection.cxx(197) : error C2664: 'SetTransform' : Konvertierung des Parameters 1 von 'class itk::SmartPointer<class itk::Rigid3DPerspectiveTransform<double> >' in 'const class itk::Transform<double,2,2> *' nicht moeglich
>        
> 
> Reagrds, Peter
> 
> ------------------------------------
> Peter Böttcher, Dr med vet, DipECVS
> European Veterinary Specialist in Surgery
> Fachtierarzt für Kleintierchirurgie 
> Klinik für Kleintiere 
> Universität Leipzig 
> An den Tierkliniken 23
> D-04103 Leipzig (Germany)
> Tel: +49-341-9738700
> Fax: +49-341-9738799
> email: boettcher at kleintierklinik.uni-leipzig.de
> _______________________________________________
> 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