[Insight-users] Display deformation field

Boettcher, Dr. Peter Boettcher at kleintierklinik.uni-leipzig.de
Mon Apr 14 15:17:05 EDT 2008


When computing deformation fields on a 2D-image it seems to me, that by declaring the a two-dimensional vector ParaView can not properly display the computed deformation field. Therefore I declared a 3D-vector  instead of the 2D-vector in the registation examples Computation of the deformation field is not affected by that change and the program runs fine (I get the same deformation as with a 2D-vector). However the third component of the vector (which is not used) is filled with enormous values (e+8). Is there an easy method to fill the third component of the vector with a zero value (sfter the deformationfieldsource has been updated)?

 

const     unsigned int   Dimension = 2;

typedef   float          VectorComponentType;

typedef   itk::Vector< VectorComponentType, 3 >    VectorType;

typedef   itk::Image< VectorType,  Dimension >   DeformationFieldType;

 

 

Regards, 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080414/f0ae84a1/attachment.htm>


More information about the Insight-users mailing list