[Insight-users] FEM Registration : using a mesh specified in a .vtk format

jonathan orban orban at tele.ucl.ac.be
Fri Jan 5 09:45:25 EST 2007


Hi,


I'm currently using the "DeformableRegistration1" example of ITK with 
the "FiniteElementRegistrationParameters1.txt" file. I used this example 
on other 2D images for which I created a mesh in a VTK format. I would 
like to use this newly created mesh to do the registration. I put the 
name of the vtk file as an input in the MeshFileName line of the 
parameters file but it gives me an IO error ("IO error in FEM class: 
Error reading object from stream!"). So I guess that the vtk format 
isn't accepted by the "itkFEMRegistrationFilter". Am I right?

If this is true, how is it possible to use a vtk file as an input mesh? 
I see two possible solutions for the moment:
- Change the CreateMesh method in the "itkFEMRegistrationFilter" (but I 
guess modifying a filter isn't the most generic solution).
- Use the ITK2VTK classes in the Insight-applications and start by 
transforming the VTK File in a Mesh Metafile.

Are these solutions correct? Do you see other solutions?


Thanks for your time,


Jonathan



-- 
Jonathan ORBAN
-----------------------------------------
Communications and Remote Sensing Lab.
Universite catholique de Louvain, Belgium
orban at tele.ucl.ac.be
+32 (0)10 478074
http://www.tele.ucl.ac.be



More information about the Insight-users mailing list