Hi Luis,<br><br>Thank you for you answer. I will try.<br><br>I have a binary image that results after gray-level thresholding in the segmentation thorax. As a result I have the lung sementtion contours.<br><br>I hope to find the solution.<br>
<br>Raquel<br><br><div class="gmail_quote">2009/6/30 Luis Ibanez <span dir="ltr">&lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Hi Raquel,<br><br>From your email it is not clear is you want to apply this dilation<br>in the Grayscale image or in a Binary image derived from it.<br><br>Could you please clarify ?<br><br>Do you have a segmentation of the lungs already ?<br>

<br>Are you looking for a method suitable for segmenting the<br>lungs from CT ?<br><br>If so, you may want to try the ConnectedThresholdImageFilter,<br>which is a Region growing filter. Just set several seed points<br>(in index coordinates) inside the lungs an use an upper threshold<br>

around -700 HU.<br><br>You will find more detailed methods in the Lung Lesion <br>Sizing Toolkit:<br><br><a href="http://public.kitware.com/LesionSizingKit/index.php/Main_Page" target="_blank">http://public.kitware.com/LesionSizingKit/index.php/Main_Page</a><br>

<br>you will find code at:<br><br><a href="https://www.kitware.com/svn/LesionSizingKit/trunk/Sandbox/Source/" target="_blank">https://www.kitware.com/svn/LesionSizingKit/trunk/Sandbox/Source/</a><br><br>You may be interested in the class<br>

<br><a href="https://www.kitware.com/svn/LesionSizingKit/trunk/Sandbox/Source/itkLungWallFeatureGenerator.h" target="_blank">itkLungWallFeatureGenerator.h</a><br><br><br>-----------------<br><br><br>If you already have a segmentation, then you could simply  use<br>

the RegionOfInterestImageFilter, to extract each one of the<br>lungs separately from the segmentation.<br><br>Run the Dilation on each independent image, and if needed,<br><br>merge the images back into the full image, by using the <br>

<br>    PasteImageFilter.<br><br><a href="http://www.itk.org/Doxygen/html/classitk_1_1PasteImageFilter.html" target="_blank">http://www.itk.org/Doxygen/html/classitk_1_1PasteImageFilter.html</a><br><br> <br><br>  Please let us know if you have further questions,<br>

<br><br>        Thanks<br><br><br>              Luis<br><br><br>--------------------------------------------------------------------<br><div class="gmail_quote"><div><div></div><div class="h5">On Tue, Jun 30, 2009 at 11:17 AM, Raquel Itk <span dir="ltr">&lt;<a href="mailto:raquelitk@gmail.com" target="_blank">raquelitk@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">Hi,<br>I have an image Dicom of thoracic CT and I want to apply a ball structure with the dilate operation. I had read: Examples/Filtering/MathematicalMorphologyBinaryFilters.cxx.<br>

 But I would like to do this, first with the  left lung and then  with the right lung. I though to do two images, one only with the left lung and other with the right lung. <br>
I would to know to apply this, only of a part of an image or to indicate the coordinate start to do dilate operation. : <br>Thanks<br><font color="#888888">Raquel<br><br>
</font><br></div></div>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<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 ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>
</blockquote></div><br>