<div dir="ltr"><div><div><div>Hello all,<br><br></div>I was wondering when vtkImageImport copies my data. What I have now, in pseudocode:<br><br> // Our image class can be converted to an itk::ImportImageFilter<br>our::Image x;<br>
itk::ImportImageFilter itkImage = create_itk_image(x);<br><br></div><div>// Prepare for export to VTK<br></div><div>itk::VTKImageExport exporter = itkImage.GetOutput();<br><br></div><div>// Import into VTK<br></div><div>vtkImageImport importer;<br>
importer.SetAllCallbacks(exporter.callbacks);<br>importer.UpdateWholeExtent();<br>importer.ClearAllCallbacks();<br></div><div><br></div>Then, I have created an importer which holds all the data an no connection to the exporter anymore? Is this an okay way to do this?<br>
</div><div><br></div>Thanks in advance,<br><br><br></div>