<div>Hello Omar. Thank you for your response. I am having a problem getting it to work though.</div>
<div>My program looks like this :</div>
<div>&nbsp;</div>
<div>//Used for the analyze reader<br>#include &quot;itkImageFileReader.h&quot;<br>#include &quot;itkImageFileWriter.h&quot;<br>#include &quot;itkExtractImageFilter.h&quot;</div>
<div>
<p>//Used for the vtk examples<br>#include &quot;vtkSphereSource.h&quot;<br>#include &quot;vtkPolyDataMapper.h&quot;<br>#include &quot;vtkActor.h&quot;<br>#include &quot;vtkRenderWindow.h&quot;<br>#include &quot;vtkRenderer.h
&quot;<br>#include &quot;vtkRenderWindowInteractor.h&quot;</p>
<p>#include &quot;itkVTKImageExport.h&quot;<br>#include &quot;vtkImageImport.h&quot;</p>
<p>int main( int , char * argv[])<br>{<br>&nbsp;<br>&nbsp;return 0;<br>}<br>void ConnectVTKToITK(itkVTKImageExport* in, vtkvtkImageImport* out)<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out-&gt;SetUpdateInformationCallback(in-&gt;GetUpdateInformationCallback());
</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out-&gt;SetPipelineModifiedCallback(in-&gt;GetPipelineModifiedCallback());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out-&gt;SetWholeExtentCallback(in-&gt;GetWholeExtentCallback());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out-&gt;SetSpacingCallback(in-&gt;GetSpacingCallback()); 
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out-&gt;SetOriginCallback(in-&gt;GetOriginCallback());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out-&gt;SetScalarTypeCallback(in-&gt;GetScalarTypeCallback());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out-&gt;SetNumberOfComponentsCallback(in-&gt;GetNumberOfComponentsCallback()); 
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out-&gt;SetPropagateUpdateExtentCallback(in-&gt;GetPropagateUpdateExtentCallback());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out-&gt;SetUpdateDataCallback(in-&gt;GetUpdateDataCallback());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out-&gt;SetDataExtentCallback(in-&gt;GetDataExtentCallback()); 
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out-&gt;SetBufferPointerCallback(in-&gt;GetBufferPointerCallback());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out-&gt;SetCallbackUserData(in-&gt;GetCallbackUserData());<br>}</p>
<p>&nbsp;</p>
<p>It gives me the following compiler errors:</p>
<p>Error&nbsp;1&nbsp;error C2065: 'itkVTKImageExport' : undeclared identifier&nbsp;d:\skole\thesis\Implementation\cpp_impl\src\VIS_Brain\main.cxx&nbsp;32&nbsp;<br>Error&nbsp;2&nbsp;error C2065: 'in' : undeclared identifier&nbsp;d:\skole\thesis\Implementation\cpp_impl\src\VIS_Brain\main.cxx&nbsp;32&nbsp;
<br>Error&nbsp;3&nbsp;error C2065: 'vtkvtkImageImport' : undeclared identifier&nbsp;d:\skole\thesis\Implementation\cpp_impl\src\VIS_Brain\main.cxx&nbsp;32&nbsp;<br>Error&nbsp;4&nbsp;error C2065: 'out' : undeclared identifier&nbsp;d:\skole\thesis\Implementation\cpp_impl\src\VIS_Brain\main.cxx&nbsp;32&nbsp;
<br>Error&nbsp;5&nbsp;error C2448: 'ConnectVTKToITK' : function-style initializer appears to be a function definition&nbsp;d:\skole\thesis\Implementation\cpp_impl\src\VIS_Brain\main.cxx&nbsp;33&nbsp;<br></p>
<p>&nbsp;</p>
<p>So i think i cannot access those objects. Am i missing something?</p>
<p>&nbsp;</p>
<p>Many regards</p></div>