Hi all,<br><br>I am working on setting up ITK (4.2.0) VTK (5.10) for use in a classroom following the example in the &quot;Getting Started with ITK + VTK&quot; PPT and it seems that the some of the libraries listed in Cmakelists.txt, e.g. ITKBasicFilters are no longer present in ver. 4.2 what leads to compiling errors. Is there some hint which libraries to add to be able to compile myProject?<br>

<br><br>Thank you,<br><br>Krzysztof Rechowicz<br><br>Cmakelists.txt<br>PROJECT( myProject )<br><br>FIND_PACKAGE ( ITK )<br><br>IF (  ITK_FOUND  )<br><br>         INCLUDE(  ${USE_ITK_FILE}  )<br><br>ENDIF(   ITK_FOUND   )<br>

<br>FIND_PACKAGE ( VTK )<br><br>IF (   VTK_FOUND   )<br><br>         INCLUDE(  ${USE_VTK_FILE}  )<br><br>ENDIF(   VTK_FOUND   )INCLUDE_DIRECTORIES(<br>${myProject_SOURCE_DIR}<br>)<br><br>ADD_EXECUTABLE( myProject   myProject.cxx )<br>

<br>TARGET_LINK_LIBRARIES ( myProject  ITKBasicFilters ITKCommon ITKIO vtkRendering  vtkGraphics vtkHybrid vtkImaging vtkIO vtkFiltering vtkCommon)<br><br>myProject.cxx:<br><br>#include &quot;itkImage.h&quot;<br>#include &quot;itkImageFileReader.h&quot;<br>

#include &quot;itkImageToVTKImageFilter.h&quot;<br>#include &quot;vtkImageViewer.h&quot;<br>#include &quot;vtkRenderWindowInteractor.h&quot;<br><br>int main( int argc, char **argv ) {<br><br>  typedef itk::Image&lt; unsigned short, 2 &gt;           ImageType;<br>

  typedef itk::ImageFileReader&lt;ImageType&gt;        ReaderType;<br>  typedef itk::ImageToVTKImageFilter&lt;  ImageType&gt;   FilterType;<br>  ReaderType::Pointer reader = ReaderType::New();<br><br>  FilterType::Pointer connector = FilterType::New();<br>



<p style="line-height:89%;margin-top:3.88pt;margin-bottom:0pt;margin-left:.37in;text-align:left;direction:ltr;vertical-align:baseline"><span style><span style>  </span></span>reader-&gt;SetFileName( argv[1] );<br><br>connector-&gt;SetInput( reader-&gt;GetOutput() );<br>

<br>  vtkImageViewer * viewer = vtkImageViewer::New();<br><br> vtkRenderWindowInteractor * renderWindowInteractor =  vtkRenderWindowInteractor::New();<br><br>  viewer-&gt;SetupInteractor( renderWindowInteractor );<br><br>

  viewer-&gt;SetInput( connector-&gt;GetOutput() );<br><br>  viewer-&gt;Render();<br><br>  viewer-&gt;SetColorWindow( 255 );<br><br>  viewer-&gt;SetColorLevel( 128 );<br><br>  renderWindowInteractor-&gt;Start();<br><br>   <br>

<br>  return 0;<br><br>}<br></p>