Я использую 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