[ITK] Retrieving transform by downcast
Timothee Evain
tevain at telecom-paristech.fr
Tue Nov 15 04:40:14 EST 2016
Hi Dženan,
static_cast do the job, thanks for the hint.
Tim
----- Mail original -----
De: "Dženan Zukić" <dzenanz at gmail.com>
À: "Timothee Evain" <tevain at telecom-paristech.fr>
Cc: community at itk.org
Envoyé: Lundi 14 Novembre 2016 18:45:48
Objet: Re: [ITK] Retrieving transform by downcast
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
>
More information about the Community
mailing list