itk2vtk、vtk2itk
//---------------------------------------------------------------------------------------------
typedef itk::ImageToVTKImageFilter<ImageType> itkVtkConverter;
itkVtkConverter::Pointer conv=itkVtkConverter::New();
conv->SetInput(Thresholdfilter->GetOutput());
conv->Update();///////////////////////////////
vtkSmartPointer<vtkImageData> image2=vtkSmartPointer<vtkImageData>::New();
image2->ShallowCopy(conv->GetOutput());/////////////////
--------------------------------------------------------------------------------
typedef itk::VTKImageToImageFilter<ImageType> VTKImageToImageType;
VTKImageToImageType::Pointer vtkImageToImageFilter = VTKImageToImageType::New();
vtkImageToImageFilter->SetInput(openClose->GetOutput());
vtkImageToImageFilter->Update();