[ITK] [ITK-users] FEMRegistration
Martin Genet
genet at biomed.ee.ethz.ch
Fri Sep 26 16:46:46 EDT 2014
Thanks a lot, Matt. I'm still a little confused though. I can access the
mesh using:
> typedef itk::fem::FEMObject< 2 > MeshType;
> MeshType::Pointer mesh = registrationFilter->GetInputFEMObject();
However, when trying to create a writer using
> typedef itk::MeshFileWriter< MeshType > MeshWriterType;
> MeshWriterType::Pointer meshWriter = MeshWriterType::New();
, it complains that InputMeshType (itk::fem::FEMObject< 2 > I guess) is
missing a lot of stuff (e.g., RegionType, PixelType, GetPoints, etc.).
If I use
> typedef itk::Mesh< float, 2 > MeshType;
instead, I can define the writer, but then I can't access the mesh from
the registration filter of course.
Is there a way to write registrationFilter->GetInputFEMObject() into a
vtk file? Thanks again, and sorry again for the confusion.
Martin
On 09/22/2014 10:54 PM, Matt McCormick wrote:
> Hi Martin,
>
> itk::MeshFileReader and itk::MeshFileWriter are great classes for
> importing / exporting meshes.
>
> HTH,
> Matt
>
> On Mon, Sep 22, 2014 at 3:49 PM, Martin Genet <genet at biomed.ee.ethz.ch> wrote:
>> Dear all:
>>
>> Trying to use FEMRegistration on a bunch of images. Still trying to figure
>> out the following:
>>
>> - What is the simplest way to convert an external mesh (e.g.,
>> vtkUnstructuredGrid, or GMSH) into an FEMObject (for registration), and vice
>> versa (for post-treatment, vizualization)?
>>
>> - If the mesh covers only a subset of the image, what happens to the rest
>> of the image?
>>
>> Any help would be super appreciated. Sorry if that's too trivial. Thanks in
>> advance.
>>
>> Martin
>>
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.php
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/insight-users
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list