<a href="http://www.itk.org/Doxygen318/html/classitk_1_1SliceBySliceImageFilter.html">http://www.itk.org/Doxygen318/html/classitk_1_1SliceBySliceImageFilter.html</a><br><br><div class="gmail_quote">On Mon, Apr 25, 2011 at 9:13 PM, Tiago Brizolara da Rosa <span dir="ltr">&lt;<a href="mailto:yarroo@yahoo.com">yarroo@yahoo.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><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><div>Hi all,<br><br>    I would like to know if there is a fast way of manipulating a slice of a 3D volume. Specifically, I want to apply a filter to individual slices of a volume. The only way I know for doing that is by, for each desired slice: applying a <em>ExtractImageFilter</em> and then applying the filter I want to use to the slice image generated.</div>


<div>    Is there a way for jumping this step (<em>ExtractImageFilter</em>)? For example, if I wanted to manipulate the pixels of my desired slices, I should use the <em>ImageSliceIteratorWithIndex</em>, so I wouldn´t need the <em>ExtractImageFilter</em>. But what I want is to apply a filter to each slice. Is it posible to do this without having to generate a new image for each one with <em>ExtractImageFilter</em>?</div>


<div> </div>
<div>    Now the problem with <em>BinaryFillholeImageFilter</em>. In fact, the reason for the above question comes from a workaround to the problem with this filter.</div>
<div>    I tried to use <em>BinaryFillholeImageFilter</em> in exactly the same way as in the example file <em>binary_fill_hole.cxx</em>, but without success. Then I noticed that it works fine if my image is two-dimensional (I was trying to use in a 3D image read from a DICOM series). It was not supposed to work in a 3D image?</div>


<div>    I am using ITK 3.8.0 in Windows 7 and downloaded the code for the morphology filters and samples from the Insight Journal´s article <font size="6" face="Arial"><font size="3" face="Arial">
<p align="left"><em>Label object representation and manipulation with ITK</em> (<a href="http://www.insight-journal.org/browse/publication/176" target="_blank">http://www.insight-journal.org/browse/publication/176</a>).</p>

</font></font>    Well, as a workaround, I want to apply <em>BinaryFillholeImageFilter</em> to all the individual slices of the volume. I think that generating a 2D image for each one would be very painfull. This is the reason for the first question of this e-mail.    </div>


<div> </div>
<div>    Thanks in advance,</div>
<div> </div><font color="#888888">
<div>    Tiago</div></font></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<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<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>