Hi Anja<br><br>in order to link your plugin against the VTK libraries you need to import to your project the VTKHeaders and the VTKLibs (can be found in the OsiriX source code). Also if you are planning to write VTK code in your plug-in, which basically means C++ code, be sure you have changed the extension of your implementation files to .mm. Otherwise the compiler will return errors when checking the C++ code. Last but not least note that OsiriX represents two dimensional images as DCMPix (origin top left corner), while VTK as vtkImageData (origin lower left corner). So in&nbsp; order to have the right result in the 2D Viewer you would probably take care of the orientation. In case you want to visualize your resulting image in the OsiriX 2D Viewer for sure you will need to make this transformation (vtkImageData-&gt;DCMPix) as well. <br><br>In general good idea is to check the messages in the Yahoo! OsiriX group for the developers . You may find some useful information
 there.  http://tech.groups.yahoo.com/group/osirix-dev<br><br>HTH<br>Emmanouil <br><br><b><i>Anja Ende &lt;anja.ende@googlemail.com&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hi everyone,<br><br>This is actually a question about using VTK in an OSIRIX plugin. Does<br>anyone have a small example on how one can go about achieving that?<br><br>I have a DICOM image that I want to read inside OSIRIX and then what I<br>want to do is run the vtkContourFilter and visualize the output.<br>However, I am not even able to have the Plugin even include a VTK<br>header so far. Unfortunately, the documentation on this subject is<br>also very scarce. Has anyone here been able to do it with any success<br>and provide some suggestions on how to start? It would be really<br>appreciated.<br><br>Thanks,<br>Anja<br>_______________________________________________<br>This is the private VTK discussion
 list.<br>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<br>Follow this link to subscribe/unsubscribe:<br>http://www.vtk.org/mailman/listinfo/vtkusers<br></blockquote><br><p>&#32;
      <hr size=1>OMG, Sweet deal for Yahoo! users/friends: <a href="http://us.rd.yahoo.com/evt=47520/*http://tc.deals.yahoo.com/tc/blockbuster/text2.com
">Get A Month of Blockbuster Total Access, No Cost.</a> W00t