直接上代码吧: funcs.cpp #include"funcs.h" #include<itkNiftiImageIO.h> #include<itkImageFileReader.h> itk::Image<float, 3>::</