Hi<br><br>You need to use the following two classes from ITK and VTK.<br><br>1. itkVTKImageExport<br>2. vtkImageImport<br><br>Use
itkVTKImageExport class at the end of your ITK pipeline and use the
vtkImageImport class at the start of your VTK pipeline. The connection
between these two classes will be created by calling the function
ConnectVTKToITK. The function is given below.
<br><br>void ConnectVTKToITK(ExportType* in, ImportType* out)<br>{<br> out->SetUpdateInformationCallback(in->GetUpdateInformationCallback());<br>
<div style="direction: ltr;"> out->SetPipelineModifiedCallback(in->GetPipelineModifiedCallback());<br> out->SetWholeExtentCallback(in->GetWholeExtentCallback());<br> out->SetSpacingCallback(in->GetSpacingCallback());
<br> out->SetOriginCallback(in->GetOriginCallback());<br> out->SetScalarTypeCallback(in->GetScalarTypeCallback());<br> out->SetNumberOfComponentsCallback(in->GetNumberOfComponentsCallback());
<br> out->SetPropagateUpdateExtentCallback(in->GetPropagateUpdateExtentCallback());<br> out->SetUpdateDataCallback(in->GetUpdateDataCallback());<br> out->SetDataExtentCallback(in->GetDataExtentCallback());
<br> out->SetBufferPointerCallback(in->GetBufferPointerCallback());<br> out->SetCallbackUserData(in->GetCallbackUserData());</div>
}<br>
<br>
where ExportType is of type itkVTKImageExport and<br>
ImportType is of type vtkvtkImageImport<br>
<br>
regards<br>
Omer<br><br><div><span class="gmail_quote">On 10/10/06, <b class="gmail_sendername">Prename Surname</b> <<a href="mailto:bsd.diverse@gmail.com">bsd.diverse@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div>Hello</div>
<div>I am reading files from ANALYZE format in ITK. I do processing of the image, and then i want to visualize it in VTK.</div>
<div>So my question is how i get the data fra ITK to VTK, and is it then difficult to show a volumne view of the data in VTK?</div>
<div>A codeexample would be very nice. Thank you very much</div>
<div> </div>
<div>Best of regards</div></div>
<br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br><br><br></blockquote></div><br>