<div dir="ltr">Hi Gonzo.<br><br>I think that I got your problem.<br>I would go with an iterator from the target point to your sulci pixels.<br>If the iterator get a value which is representing a sulci&#39;s value (some gray value) - I&#39;d mark this in another image.<br>
finally you&#39;ll get an image which represents the surface between the sulci to your target.<br><br>hope that I understood you properly.<br>anyway,<br>you must learn itk and iterators to do that. if you are familiar with c++ and image processing-<br>
you won&#39;t have a problem to learn this.<br><br><br>BTW,<br>please write me in a private email what are you working on, maybe I can help you.<br><br>Good luck.<br>Hila<br><br><br><div class="gmail_quote">On Thu, May 3, 2012 at 4:26 PM, 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"><div>First of all, thank you, and sorry for this long mail. But I will be very grateful if someone can help me here =D ..</div>
<div><br></div><div>I am working on a medical software. I have the skin as a mesh (vtkPolyData), and a target inside the head. I have some obstacles (like sulci) represented as a mitk::image.</div>

<div>What I want to do is to get out some cells of the vtkPolyData (the skin). Those who &quot;are not visible&quot; from the the target (because some obstacle is in the midle of the ray with origin on the target and end on the cell).</div>


<div>But working this obstacles as Images take too long. That is why I want to convert them to vtkPolyData. Because for each cell, I have to compute a lots of rays (for each point of the image), and see if the ray goes through an obstacle or not. And with poly data I think is much faster. Is it? or maybe some other idea.</div>


<div><br></div><div>I read what you tell me about converting the image, but I just starting with this, and not have much experience with  vtk, itk, mitk. </div><div>So, really sorry for bothering, but I don&#39;t know what I have to use to conver the image to binary. And also I am not working with the mitk&#39;s Gui.</div>


<div>I only have the image in my program.</div><div><br></div><div>Again, really really thank u a lot!</div><div><br></div>Gonzalo.<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">2012/5/3 Hila Hiler <span dir="ltr">&lt;<a href="mailto:hilahiler@gmail.com" target="_blank">hilahiler@gmail.com</a>&gt;</span><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 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.<div><div><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><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></div></div>
</blockquote></div><br>
</div></div></blockquote></div><br></div>