我正在使用ITK。 itk::LinearInterpolateImageFunction
是itk::InterpolateImageFunction
的一个子类。C++抽象类型声明
为什么下面的表述无效?
itk::InterpolateImageFunction<ImageType,double>::Pointer interpolator = itk::LinearInterpolateImageFunction<ImageType, double>::New();
我得到的错误是
error: conversion from
itk::LinearInterpolateImageFunction<itk::Image<unsigned char, 3u>, double>::Pointer {aka itk::SmartPointer<itk::LinearInterpolateImageFunction<itk::Image<unsigned char, 3u>, double> >}
to non-scalar typeitk::InterpolateImageFunction<itk::Image<unsigned char, 3u>, double>::Pointer {aka itk::SmartPointer<itk::InterpolateImageFunction<itk::Image<unsigned char, 3u>, double> >}
requested