<p style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 12pt; mso-fareast-font-family: &#39;Times New Roman&#39;">Thank you Dominique, </span></p>

<div style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 6pt" class="MsoNormal"><span style="FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 12pt; mso-fareast-font-family: &#39;Times New Roman&#39;">I have already worked with itk connected component in another problem but the results I obtained are not very encouraging. But yep, it still an option to explore again.</span></div>

<div style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 6pt" class="MsoNormal"><span style="FONT-FAMILY: &#39;Times New Roman&#39;,&#39;serif&#39;; FONT-SIZE: 12pt; mso-fareast-font-family: &#39;Times New Roman&#39;">Anna</span></div>

<p> </p>
<div class="gmail_quote">On Mon, Apr 18, 2011 at 7:20 PM, <span dir="ltr">&lt;<a href="mailto:dominique@toepfer-web.de" target="_blank">dominique@toepfer-web.de</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>Hi Anna,<br><br>assuming you&#39;re working with binary images, you could invert the image and remove the largest component (using ConnectedComponentImageFilter and RelabelComponentImageFilter). This will be the background of the image, if it is connected and large enough. The other objects in the image will then correspond to the empty spaces you are trying to find.<br>
Note, that the holes must not be conntected with the background for this method to work.<br><br><br>HTH<br>Dominique <br><br>
<table width="100%">
<tbody>
<tr>
<td bgcolor="blue" width="5"> </td>
<td>
<div>Hi,</div>
<div>I would like to find the empty spaces in my volume but I don&#39;t know if there is any itk filter that I can use for this purpose.</div>
<div>Does any one know how can I do that? </div>
<div> </div>
<div>Thank you </div>
<div> </div>
<div>Thanks</div>
<div>Anna</div></td></tr></tbody></table></div></blockquote></div><br>