[Insight-users] Help on itkUnaryFunctorImageFilter.h

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Tue Apr 18 03:17:06 EDT 2006


Hi,

your functor have to provide a operator== method. Give a look at other filters 
using UnaryFunctorImageFilter for an example.
http://voxel.jouy.inra.fr/darcs/itk/Insight/Code/BasicFilters/itkCosImageFilter.h

Gaetan


On Tuesday 18 April 2006 01:15, Shuzai Fan wrote:
> Hi,
>
> When I was trying to compile my code writen in ITK, I had an error message
> listed below. Can anyone help me to solve it? Thanks a lot.
>
>
> C:\ITKSRC\Code\BasicFilters\itkUnaryFunctorImageFilter.h(82): error C2678:
> binary '!=' : no operator found which takes a left-hand operand of type
> 'itk::UnaryFunctorImageFilter<TInputImage,TOutputImage,TFunction>::FunctorT
>ype' (or there is no acceptable conversion)
>         with
>         [
>             TInputImage=LabelImageType,
>             TOutputImage=RGBImageType,
>             TFunction=ColorMapFunctorType
>         ]
>
>
> Best,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20060418/09bd495a/attachment.pgp


More information about the Insight-users mailing list