[ITK] [ITK-users] Saving deformation field in vector container

Matt McCormick matt.mccormick at kitware.com
Mon Sep 28 11:29:31 EDT 2015


Hello,

There does not seem to be enough information on the code that is
causing the problem or what the problem is. A short, self-contained,
compilable, example could help [1].

Thanks,
Matt

[1] http://www.sscce.org/

On Mon, Sep 28, 2015 at 12:56 AM, geetha <s120049 at e.ntu.edu.sg> wrote:
> Hi,
>
>  I am registering images through diffeomorphic demons filter and tying to
> save the deformation field in vector containers. I saved registration
> transforms of other rigid registrations in vector containers and it was
> successful. However, trying to save deformation field in container always
> result in abrupt crashing of program. I was able to save deformation field,
> only transferring it into container is a problem. Unfortunately, even with
> catch I couldn't get any specifics of error. What am I missing?
>
> (My code for displacement field vector container and updating in container)
>
> const unsigned int                          Dimension = 3;
> typedef itk::Vector< float, Dimension >      VectorType;
> typedef itk::Image< VectorType, Dimension >  DisplacementFieldType;
> typedef
> itk::VectorContainer<double,DisplacementFieldType::Pointer>DFTransformContainerType;
> DFTransformContainerType::Pointer DeffieldContainer =
> DFTransformContainerType::New() ;
>
> //My output from registration stored in 'deffield'
> defField = ddfilter->GetDeformationField();
>
> DeffieldContainer->SetElement( inputId++ , defField );
>
>
>
> --
> View this message in context: http://itk-insight-users.2283740.n2.nabble.com/Saving-deformation-field-in-vector-container-tp7587905.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> 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