[Insight-users] read vtkImageData

David Doria daviddoria at gmail.com
Thu Nov 14 13:11:32 EST 2013


On Thu, Nov 14, 2013 at 1:08 PM, David Doria <daviddoria at gmail.com> wrote:
> On Thu, Nov 14, 2013 at 2:52 AM, Massinissa Bandou
> <Massinissa.Bandou at usherbrooke.ca> wrote:
>> Hi everyone!
>>
>> Is there any example or way how to read a vtkImageData with ITK because I
>> want to perform a mutual information registration??
>>
>> thank you for your help!
>>
>> Massi


Oops, sorry, too fast on the trigger - I missed that you wanted to do
this in ITK.

You could probably use VTK's 'imageData->GetScalarPointer'
(demonstrated here:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/IterateImageData)
as the input to:

http://www.itk.org/Wiki/ITK/Examples/IO/ImportImageFilter

David


More information about the Insight-users mailing list