[Insight-users] casting of smart pointers
Lodron, Gerald
Gerald.Lodron at joanneum.at
Wed Nov 11 06:12:05 EST 2009
Hello,
Can anybody tell me what the conventional way is to cast a smartpointer?
typedef typename itk::InterpolateImageFunction<ImageType,double> InterpType;
typedef typename itk::BSplineInterpolateImageFunction<ImageType, double, double> SplineInterpType;
InterpType::Pointer interpolator;
interpolator = SplineInterpType::New();
dynamic_cast<SplineInterpType::Pointer>(interpolator)->SetSplineOrder(3); //does not work
Best regards
More information about the Insight-users
mailing list