<div>But the problem is that my rendering is in a dll.</div>
<div>I mean i can convert an ITK image to a vtk image no problem, but the problem is that the vtkimage is to be used in a dll.</div>
<div>So i am trying to do the following</div>
<div>&nbsp;</div>
<div>ITK -&gt; convert and transfer to DLL -&gt; VTK</div>
<div>&nbsp;</div>
<div>Theoretically it should not pose a problem, but did anyone do this before?</div>
<div>Regards<br><br>&nbsp;</div>
<div><span class="gmail_quote">2006/10/28, Luis Ibanez &lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Hi Prename Surname,<br><br>Please read the Tutorials:<br><br>&nbsp;&nbsp; <a href="http://www.itk.org/HTML/Tutorials.htm">
http://www.itk.org/HTML/Tutorials.htm</a><br><br>In particular:<br><br>&nbsp;&nbsp; &quot;Getting Started II: Using ITK with VTK&quot;<br><a href="http://www.itk.org/CourseWare/Training/GettingStarted-II.pdf">http://www.itk.org/CourseWare/Training/GettingStarted-II.pdf
</a><br><br>and<br><br>&nbsp;&nbsp; &quot;Getting Started V: Integrating ITK in your Application.&quot;<br><a href="http://www.itk.org/CourseWare/Training/GettingStarted-V.pdf">http://www.itk.org/CourseWare/Training/GettingStarted-V.pdf
</a><br><br><br>The first one describes how to convert ITK images into VTK images.<br><br>You will find examples in the directory:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;InsightApplications/Auxiliary/vtk/<br><br>itkReadITKImage3DSegmentShowVTK.cxx
<br>itkReadITKImageSegmentShowVTK.cxx<br>itkReadITKImageShowSplineVTK.cxx<br>itkReadITKImageShowVTK.cxx<br><br><br>The second one describes multiple options for passing ITK image<br>data to and from applications that use pointers to the pixel
<br>buffer.<br><br><br>Please not that you must make sure that the memory is relased<br>correctly once you are done with the image.<br><br><br>&nbsp;&nbsp; Regards,<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp; Luis<br><br><br>----------------------------<br>Prename Surname wrote:
<br>&gt; Hello. I have an itk::Image objekt where i want to be able to get a<br>&gt; pointer to the data, so that i can send this pointer as a parameter to<br>&gt; my dll function, which<br>&gt; implements rendering using VTK.
<br>&gt;<br>&gt; The only problem is how i can transport the data, and it seems that a<br>&gt; raw datapointer is the best solution.<br>&gt;<br>&gt; How can i retrieve that?<br>&gt; Many regards<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------
<br>&gt;<br>&gt; _______________________________________________<br>&gt; Insight-users mailing list<br>&gt; <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users">
http://www.itk.org/mailman/listinfo/insight-users</a><br></blockquote></div><br>