[Insight-users] double to float problem
yasser salman
yass71 at yahoo.com
Fri Jan 20 09:19:42 EST 2006
Hi Luis,
-I did VTK upgrade from 4.0 to 4.4 , but still have
the old ITK (ver 1.6).
When I recompile the vtk-itk project there are some
errors related to the conversion from float to double
how can I solve it?
- did I *have to* ugrade my itk to 2.4.1 or I can use
the old version .
Error message
D:\MyProject\BrainVol\itkVTKImageToImageFilter.txx(42)
: error C2664: 'SetSpacingCallback' : cannot convert
parameter 1 from 'double *(__cdecl *)(void *)' to
'float *(__cdecl *const )(void *)'
This conversion requires a reinterpret_cast, a
C-style cast or function-style cast
C:\Program Files\Microsoft Visual
Studio\VC98\INCLUDE\xmemory(66) : while compiling
class-template member function '__thiscall
itk::VTKImageToImageFilter<class itk::Image<unsigned
short,3> >::itk::VTKImageToImageFilter<class
itk::Image<unsigned short,3> >(void)'
D:\MyProject\BrainVol\itkVTKImageToImageFilter.txx(43)
: error C2664: 'SetOriginCallback' : cannot convert
parameter 1 from 'double *(__cdecl *)(void *)' to
'float *(__cdecl *const )(void *)'
This conversion requires a reinterpret_cast, a
C-style cast or function-style cast
C:\Program Files\Microsoft Visual
Studio\VC98\INCLUDE\xmemory(66) : while compiling
class-template member function '__thiscall
itk::VTKImageToImageFilter<class itk::Image<unsigned
short,3> >::itk::VTKImageToImageFilter<class
itk::Image<unsig
ned short,3> >(void)'
regard's
yasser
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Insight-users
mailing list