<div dir="ltr"><div><div><div><div><div><div><div><div>Hi everyone! <br></div>I'm trying to read two DICOM series with VTK, and then register those two volumes using ITK, so in this contexte I would have to convert the vtkImageData into itk::Image. <br><br></div>What i'm doing is the following: <br><br>typedef itk::Image< signed short, 3> ImageType;<br>typedef itk::VTKImageToImageFilter< ImageType >  VTKImageToImageFilterType;<br>VTKImageToImageFilterType::Pointer connector = VTKImageToImageFilterType::New();<br>connector->SetInput(ImageVTK);<br>connector->Update();<br><br></div>Where ImageVTK is my 3D volume and I visualized it so its reading the Dicom series correctly. <br><br></div>But I'm always getting this error when I reach the update(): <br></div>VTKImageToImageFilter: Input scalar type is float but should be short. <br><br></div>So what am I doing wrong here ? <br><br></div>thanks in advance,<br><br></div>Iyas<br></div>