<div>Hi,</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am building an application which needs vtk and itk to be connected.My application is of viewing an image in vtk gui and to develop a 3d volume rendered image .I tried a sample code from the vtk get start guide but when&nbsp;I execute it the error message Cannot open include file: &#39;itkImageToVTKImageFilter.h&#39;: No such file or directory Error executing cl.exe. flashes.Please provide me a solution .I am attaching the code snippet.</div>

<div>&nbsp;</div>
<div>&nbsp;</div>
<div>#include &quot;itkImage.h&quot;<br>#include &quot;itkImageFileReader.h&quot;<br>#include &quot;itkImageToVTKImageFilter.h&quot;<br>#include &quot;itkVTKImageExport.h&quot;<br>#include &quot;vtkImageImport.h&quot;<br>
#include &quot;vtkImageData.h&quot;<br>#include &quot;vtkImageViewer.h&quot;<br>#include &quot;vtkRenderWindowInteractor.h&quot;<br>int main() <br>{<br>typedef itk::Image&lt;unsigned short,2&gt; ImageType;</div>
<div>typedef itk::Image&lt;unsigned int ,2&gt;Image Type;<br>typedef itk::ImageFileReader&lt;ImageType&gt; ReaderType;<br>typedef itk::ImageToVTKImageFilter&lt;ImageType&gt; ConnectorType;<br>ReaderType::Pointerreader= ReaderType::New();<br>
ConnectorType::Pointerconnector= ConnectorType::New();</div>
<div><br>itkVTKExporter = itkVTKImageExportType::New();<br>vtkImporter = vtkImageImport::New();<br>itkVTKExporter-&gt;SetInput( m_InputImage );<br>ConnectPipelines(itkVTKExporter, vtkImporter);</div>
<div>&nbsp;</div>
<div><br>reader-&gt;SetFileName( &quot;D:\\test\\in\\in.bmp&quot;);</div>
<div>connector-&gt;SetInput( reader-&gt;GetOutput() );<br>vtkImageViewer* viewer= vtkImageViewer::New();<br>vtkRenderWindowInteractor* renderWindowInteractor= vtkRenderWindowInteractor::New();<br>viewer-&gt;SetupInteractor( renderWindowInteractor);<br>
viewer-&gt;SetInput( connector-&gt;GetOutput() );<br>viewer-&gt;Render();<br>viewer-&gt;SetColorWindow( 255);<br>viewer-&gt;SetColorLevel( 128);<br>renderWindowInteractor-&gt;Start();<br>return 0;<br>}<br clear="all"><br>
-- <br>Warm Regards<br><br>Raghu Prasad<br></div>