Hello BELHADJ wassim,<br><br>a region growing algorithm (probably using ITK) starting from the corners of your data to get rid of the &quot;unwanted air&quot; might prove useful to tackle your problem.<br><br>Regards, <br>
<br>Frederic Perez<br><br><div class="gmail_quote">On Tue, Feb 17, 2009 at 9:45 AM,  <span dir="ltr">&lt;<a href="mailto:wassim_belhadj@topnet.tn">wassim_belhadj@topnet.tn</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
Thank you for your reply.<br>
<br>
According to Hounsfield Units, the pixel values that form the air is<br>
between -1000 &lt;--------&gt; -995.<br>
<br>
I want to display ONLY the lungs (not skin ...) so I set my function<br>
transfer like this:<br>
<br>
opacityFun-&gt;AddPoint(-3024, &nbsp; &nbsp; &nbsp;0.0);<br>
opacityFun-&gt;AddPoint(-878.674, &nbsp; 0.0);<br>
opacityFun-&gt;AddPoint(-864.466, &nbsp; 1.0);<br>
opacityFun-&gt;AddPoint(-594.524, &nbsp; 1.0);<br>
opacityFun-&gt;AddPoint(-395.62, &nbsp; &nbsp;1.0);<br>
opacityFun-&gt;AddPoint(3071, &nbsp; &nbsp; &nbsp; 0.0);<br>
<br>
Hounsfield Units for lungs are &nbsp; -950 &lt;--------&gt; -550<br>
<br>
I Attached a NEW screenshot that illustrates the problem.<br>
<br>
I vary the values of the transfer function but no result.I did not manage<br>
to remove the part that surrounds the lungs.<br>
<br>
Best regards,<br>
BELHADJ wassim<br>
<br>
<br>
<br>
<br>
<br>
On Tue, 17 Feb 2009 18:06:18 +1100, Kevin Osborn &lt;<a href="mailto:planck@netspeed.com.au">planck@netspeed.com.au</a>&gt;<br>
wrote:<br>
&gt; Don&#39;t forget air surrounds the patient. What your image shows is the<br>
&gt; air/skin interface, not the skin itself. As the lung is mostly air, your<br>
&gt; Hounsfield range between -600 and -400 not only gives lung but also<br>
&gt; includes air around the patient.<br>
&gt;<br>
&gt;<br>
&gt; <a href="mailto:wassim_belhadj@topnet.tn">wassim_belhadj@topnet.tn</a> wrote:<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;am using VTK/VTKEdge and QT4 for volume rendering.<br>
&gt;&gt;<br>
&gt;&gt; I &#39;am using a CT Datasets of a young person ( 35 &nbsp;years old)<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m trying to define values of pixel that define lungs.<br>
&gt;&gt;<br>
&gt;&gt; I assigned opacity to each pixel by checking its intensity value &nbsp;with<br>
&gt;&gt; Hounsfield Units values.<br>
&gt;&gt;<br>
&gt;&gt; Bone &nbsp; &nbsp; &nbsp; &nbsp; +400 -----------&gt; +1000<br>
&gt;&gt;<br>
&gt;&gt; Soft tissue &nbsp;+40 -----------&gt; +80<br>
&gt;&gt;<br>
&gt;&gt; Fat &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-80 -----------&gt; -100<br>
&gt;&gt;<br>
&gt;&gt; Lung &nbsp; &nbsp; &nbsp; &nbsp; -400 -----------&gt; -600<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I got a strange result !! &nbsp;The volume obtained contains the lungs and<br>
&gt;&gt; skin<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; According Hounsfield Units, the pixel values that form the skin and<br>
lungs<br>
&gt;&gt; are not in the same interval.<br>
&gt;&gt;<br>
&gt;&gt; I varied the opacity values to eliminate the skin that surrounds the<br>
&gt;&gt; lungs<br>
&gt;&gt; but I have not succeeded.<br>
&gt;&gt;<br>
&gt;&gt; Attached a screenshot that illustrates the problem.<br>
&gt;&gt;<br>
&gt;&gt; Can someone help me ?<br>
&gt;&gt;<br>
&gt;&gt; Best Regards,<br>
&gt;&gt; BEHADJ wassim<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>