<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> </div>
<div>//Used for the analyze reader<br>#include "itkImageFileReader.h"<br>#include "itkImageFileWriter.h"<br>#include "itkExtractImageFilter.h"</div>
<div>
<p>//Used for the vtk examples<br>#include "vtkSphereSource.h"<br>#include "vtkPolyDataMapper.h"<br>#include "vtkActor.h"<br>#include "vtkRenderWindow.h"<br>#include "vtkRenderer.h
"<br>#include "vtkRenderWindowInteractor.h"</p>
<p>#include "itkVTKImageExport.h"<br>#include "vtkImageImport.h"</p>
<p>int main( int , char * argv[])<br>{<br> <br> return 0;<br>}<br>void ConnectVTKToITK(itkVTKImageExport* in, vtkvtkImageImport* out)<br>{<br> out->SetUpdateInformationCallback(in->GetUpdateInformationCallback());
</p>
<p> 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());<br>}</p>
<p> </p>
<p>It gives me the following compiler errors:</p>
<p>Error 1 error C2065: 'itkVTKImageExport' : undeclared identifier d:\skole\thesis\Implementation\cpp_impl\src\VIS_Brain\main.cxx 32 <br>Error 2 error C2065: 'in' : undeclared identifier d:\skole\thesis\Implementation\cpp_impl\src\VIS_Brain\main.cxx 32
<br>Error 3 error C2065: 'vtkvtkImageImport' : undeclared identifier d:\skole\thesis\Implementation\cpp_impl\src\VIS_Brain\main.cxx 32 <br>Error 4 error C2065: 'out' : undeclared identifier d:\skole\thesis\Implementation\cpp_impl\src\VIS_Brain\main.cxx 32
<br>Error 5 error C2448: 'ConnectVTKToITK' : function-style initializer appears to be a function definition d:\skole\thesis\Implementation\cpp_impl\src\VIS_Brain\main.cxx 33 <br></p>
<p> </p>
<p>So i think i cannot access those objects. Am i missing something?</p>
<p> </p>
<p>Many regards</p></div>