<div dir="ltr">Gonzalo, <br>I read your q again.<br><br>In order to get a vtkPolyData from mitk::Image you have to do the following steps:<br>1. only binary images can be converted into a polyData. so convert your mitk::image to binary image first.<br>
2. by mitk&#39;s Gui: right click on your binaryImage-&gt;get Mesh / polyData<br><br>Good luck.<br><br><div class="gmail_quote">On Thu, May 3, 2012 at 1:06 PM, Hila Hiler <span dir="ltr">&lt;<a href="mailto:hilahiler@gmail.com" target="_blank">hilahiler@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Gonzalo, <br>I use Mitk.<br>I don&#39;t understand how you want to run a vtkFilter on mitk::Image. why?<br>
a vtkFilter you can run on mitk::Surface or mitk::Surface-&gt;getVtkPolyData();<br><br>if you have an itk::Image and you want to do a segmentation such that only positive values will be in that seg, you can use iterator as David suggested or you can use the GUI of mitk:<br>

right click on the image that u loaded-&gt;set threshold value to zero-&gt; and you will get a segmented image.<br><br>Hope I helped.<div><div class="h5"><br><br><br><div class="gmail_quote">On Thu, May 3, 2012 at 11:35 AM, Gonzalo Amadio <span dir="ltr">&lt;<a href="mailto:gonzaloama@yahoo.com.ar" target="_blank">gonzaloama@yahoo.com.ar</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sorry for writing again..<br>I read that MITK is like an extension of VTK and ITK.<br>I have my Image in mitk::Image . And this is a VTK filter. And as input have a VTKimageData. Can I mix things like that?<br>

<br>Again thank u very much!<div><div><br>

<br><div class="gmail_quote">2012/5/3 Gonzalo Amadio <span dir="ltr">&lt;<a href="mailto:gonzaloama@yahoo.com.ar" target="_blank">gonzaloama@yahoo.com.ar</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



Maybe, I am going to read about it..<br><br>Do you know if there is an example for using that class? .. Because it is difficult with only the Doc for me ... =(<br><br>But I will try something..<br><br>Thank u very much!<br>




Gonzalo.<div><br><div class="gmail_quote">2012/5/3 Li, Wen <span dir="ltr">&lt;<a href="mailto:wen-li@uiowa.edu" target="_blank">wen-li@uiowa.edu</a>&gt;</span><div><div><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">








<div style="word-wrap:break-word">
Gonzalo,
<div><br>
</div>
<div>Maybe the vtkImageMarchingCubes can help?</div><span><font color="#888888">
<div><br>
</div>
<div>Wen</div></font></span><div><div>
<div><br>
<div>
<div>On May 2, 2012, at 3:51 AM, Gonzalo Amadio wrote:</div>
<br>
<blockquote type="cite">Sorry for the late response..
<div>Yes, I want to generate a surface. I am working with 3D meshes, using polyData. And I have an Image. But when working with this, it is not working properly.</div>
<div>So I want to convert this image into a polyData, because it is easier to make traversal, comparisons and other things.</div>
<div>If you have any ideas I will be very grateful.</div>
<div><br>
</div>
<div>Gonzalo</div>
<div><br>
<div class="gmail_quote">2012/4/27 Li, Wen <span dir="ltr">&lt;<a href="mailto:wen-li@uiowa.edu" target="_blank">wen-li@uiowa.edu</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am not sure how can you do the converting. are you going to generate a surface out of it?<br>
<span><font color="#888888"><br>
Wen<br>
</font></span>
<div>
<div><br>
On Apr 26, 2012, at 5:53 PM, gonza8888 wrote:<br>
<br>
&gt; Sorry for responsing here. But as long as you are working with image and<br>
&gt; polydata.<br>
&gt; Do you know how I can convert an image into polydata ( a 3D triangle mesh) ,<br>
&gt; the image if i am not wrong is an mitk::image.<br>
&gt;<br>
&gt; Thank u for the help! =)<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Convert-to-binary-image-tp5668642p5668859.html" target="_blank">
http://vtk.1045678.n5.nabble.com/Convert-to-binary-image-tp5668642p5668859.html</a><br>
&gt; Sent from the VTK - Users mailing list archive at <a href="http://Nabble.com" target="_blank">Nabble.com</a>.<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
--------<br>
Gonzalo Amadio<br>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div></div></div>

</blockquote></div></div></div><br></div>
</blockquote></div><br>
</div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br></div>