[ITK] Retrieving transform by downcast

Dženan Zukić dzenanz at gmail.com
Mon Nov 14 12:45:48 EST 2016


Hi Tim,

have you tried static_casting to VersorRigid3DTransform?

Regards,
Dženan

On Mon, Nov 14, 2016 at 12:36 PM, Timothee Evain <
tevain at telecom-paristech.fr> wrote:

> Hi everyone,
>
> I'm wondering how can I retrieve the inverse of a VersorRigid3DTransform
> through the GetInverseTransform() method to assign to another
> VersorRigid3DTransform.
> As this return a itk::Transform pointer, downcasting with dynamic_cast
> leads to an error related to pointer being not one to a complete class.
> I guess this had to do with Transform being a abstract class, so what is
> the "standard" way to do ? Should I go through inverse parameters to
> initialize the inverse transform ?
>
> Tim
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20161114/4252d96d/attachment.html>


More information about the Community mailing list