[Insight-users] Question about ItkAndImageFilter
qxue at jouy.inra.fr
qxue at jouy.inra.fr
Mon Mar 12 04:05:29 EST 2007
Hello, everyone:
I am using the "ItkAndImageFilter" in VC6.0 in Windows XP by CMake2.4. When I
add the ITKAndImageFilter to my program, there are errors as following:
C:\DOCUME~1\qxue\MESDOC~1\ITK\INSIGH~1.0\Code\BASICF~1\itkAndImageFilter.h(64) :
error C2296: '&' : illegal, left operand has type 'const float'
C:\DOCUME~1\qxue\MESDOC~1\ITK\INSIGH~1.0\Code\BASICF~1\itkAndImageFilter.h(63)
: while compiling class-template member function 'float __thiscall
itk::Functor::AND<float,float,float>::operator ()(const float &,const float &)'
C:\DOCUME~1\qxue\MESDOC~1\ITK\INSIGH~1.0\Code\BASICF~1\itkAndImageFilter.h(64) :
error C2297: '&' : illegal, right operand has type 'const float'
C:\DOCUME~1\qxue\MESDOC~1\ITK\INSIGH~1.0\Code\BASICF~1\itkAndImageFilter.h(63)
: while compiling class-template member function 'float __thiscall
itk::Functor::AND<float,float,float>::operator ()(const float &,const float &)'
CellularSegmentationApplication.cxx
C:\DOCUME~1\qxue\MESDOC~1\ITK\INSIGH~1.0\Code\BASICF~1\itkAndImageFilter.h(64) :
error C2296: '&' : illegal, left operand has type 'const float'
C:\DOCUME~1\qxue\MESDOC~1\ITK\INSIGH~1.0\Code\BASICF~1\itkAndImageFilter.h(63)
: while compiling class-template member function 'float __thiscall
itk::Functor::AND<float,float,float>::operator ()(const float &,const float &)'
C:\DOCUME~1\qxue\MESDOC~1\ITK\INSIGH~1.0\Code\BASICF~1\itkAndImageFilter.h(64) :
error C2297: '&' : illegal, right operand has type 'const float'
C:\DOCUME~1\qxue\MESDOC~1\ITK\INSIGH~1.0\Code\BASICF~1\itkAndImageFilter.h(63)
: while compiling class-template member function 'float __thiscall
itk::Functor::AND<float,float,float>::operator ()(const float &,const float &)'
I have used other filters from ITK and there are fine.
Who can give me a help to resolve it?
Best regards,
XueQuan
More information about the Insight-users
mailing list