[Insight-users] How to cast one image type to another?
zhao
zhao_c_g at 263 . net
Fri, 16 Aug 2002 16:49:17 +0800
Hi all,
Under MSVC6, I use output of a filter(CurvatureAnisotropicDiffusionImageFilter) as input of a image file writer:
writer->SetInput(diffusion->GetOutput());
There is a compiling error:
error C2664: 'SetInput' : cannot convert parameter 1 from 'class itk::Image<float,2> *' to 'const class itk::Image<unsigned long,2> *
My question is how to convert one image type to another? Thanks!
Zhao
Zhao ChenGuang
P.O.Box:010,
Dept. BME,
Shanghai Jiao Tong University,
1954# Hua Shan Road,
Shanghai,P.R.China,
200030