<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hello, I'm quite new in the world of ITK/VTK and I'm trying to apply a threshold on an image. Then, I would like to display the result on a Qt window (without saving it in a new file).<br><br>Hopefully, I have no problem to apply a threshold on an image, my question is more related to the link between ITK, VTK and Qt.<br><br>First, in order to link ITK and VTK, I have been using itk::VTKImageExport and vtkImageImport as follow:<br><br><div style="margin-left: 40px;">typedef itk::VTKImageExport&lt; ImageType &gt; ExportFilterType;<br>ExportFilterType::Pointer itkExporter = ExportFilterType::New();<br>itkExporter-&gt;SetInput(filter-&gt;GetOutput());<br>vtkImageImport* vtkImporter = vtkImageImport::New();<br>ConnectPipelines(itkExporter, vtkImporter);<br></div><br>I think this is correct and I guess I have now my result "from a VTK view". <br><br>The next step is
 to do the link between VTK and Qt. Unfortunately, I'm quite lost. I guess I should use QVTKWidget. But I don't know how to use it properly and I don't really find any interesting help.<br>1) Should I convert my vtkImporter to a texture or something similar ?<br>2) How to display it on a Qt window ? on a window using a Pixmap ?<br>3) I would really appreciate a small sample to show how to do that.<br><br>4) One last question, I read about the possibility to do a threshold with VTK, what would be the best ? using ITK or VTK ?<br><br>Thank you for your help.<br>Best<br>James<br><br><br></td></tr></table><br>