After I imported data into a sitk::Image in order apply some filter. Now, after this filter has been applied I intend to transfer data back to VTK vtkImageData object in order to render it. This procedure I didn’t found it nowhere. From what I saw by now, that sitk::Image can be saved on disk … but seem to be less efficient than to transfer data inside my application …
Is there possible to transfer my SimpleITK data into a vtkImageData ? If it is, can you tell me how ?
(from example above)
but is not recognized. I guess I have to include ITK too in my project … but I am sure that SimpleITK know this transfer … I don’t know myself how …
You seem to have the right idea with using vtkImportImage. You can copy the meta-data over and then use the sitk:Image::GetBufferAs... method. Should be pretty straight forward.