[ITK] Retrieving transform by downcast

Timothee Evain tevain at telecom-paristech.fr
Mon Nov 14 12:36:30 EST 2016


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


More information about the Community mailing list