[Insight-users] UnaryFunctorImageFilter

cdold christian.dold at igd.fraunhofer.de
Wed Jul 6 10:46:12 EDT 2005


Hello
I try to use the UnaryFunctorImageFilter, but always I get this
compiling error...

D:\ITK\InsightToolkit-2.0.1\Code\BasicFilters\itkUnaryFunctorImageFilter.h(88)
: error C2248: 'Image<float,3>::~Image<float,3>' : cannot access private
member declared in class 'itk::Image<float,3>'
        D:\ITK\InsightToolkit-2.0.1\Code\Common\itkImage.h(345) : see
declaration of 'Image<float,3>::~Image<float,3>'
       
D:\ITK\InsightToolkit-2.0.1\Code\BasicFilters\itkUnaryFunctorImageFilter.h(88)
: while compiling class-template member function '__thiscall
itk::UnaryFunctorImageFilter<class itk::Image<float,3>,class
itk::Image<float,3>,class itk::Image<flo
at,3> >::~itk::UnaryFunctorImageFilter<class itk::Image<float,3>,class
itk::Image<float,3>,class itk::Image<float,3> >(void)'
Error executing cl.exe.

MIP.exe - 1 error(s), 0 warning(s)


Before I did the definitions:

 template <class InputPixelType>
 class InvertIntensityFunctor
 {
 public:
 
    InputPixelType operator()( InputPixelType input )
        {
            return NumericTraits<InputPixelType>::max() - input;
        }
 };



    typedef itk::UnaryFunctorImageFilter<
        InputImageType,
        InputImageType,
        InvertIntensityFunctor<typename InputImageType::PixelType> >
            InverterType;

-- 
Dipl.-Ing. Christian Dold
Fraunhofer Gesellschaft		Phone: +49-6151-155 523
Institute for Computer Graphics	Fax: +49-6151-155480
Fraunhoferstr.5			mailto: Christian.Dold at igd.fraunhofer.de
D-64283 Darmstadt, Germany      http://a7www.igd.fhg.de/
                                http://a7www.igd.fhg.de/persons/cdold/ 



More information about the Insight-users mailing list