<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV>Hi all,</DIV>
<DIV> </DIV>
<DIV> Thank you very much for your help!</DIV>
<DIV> Using <EM>SliceBySliceImageFilter</EM> with the <FONT size=2 face=Tahoma><FONT size=3><EM>BinaryFillholeImageFilter</EM></FONT> </FONT>did the job. And thanks for the explanation, Gaëtan.</DIV>
<DIV> </DIV>
<DIV> Tiago</DIV>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 12pt"><BR>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 13px"><FONT size=2 face=Tahoma>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">De:</SPAN></B> Gaëtan Lehmann <gaetan.lehmann@jouy.inra.fr><BR><B><SPAN style="FONT-WEIGHT: bold">Para:</SPAN></B> Tiago Brizolara da Rosa <yarroo@yahoo.com><BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> ITK Users <insight-users@itk.org>; Bill Lorensen <bill.lorensen@gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">Enviadas:</SPAN></B> Terça-feira, 26 de Abril de 2011 4:41:11<BR><B><SPAN style="FONT-WEIGHT: bold">Assunto:</SPAN></B> Re: [Insight-users] Fast access to slices of 3D image + problem with BinaryFillholeImageFilter<BR></FONT><BR><BR>Hi,<BR><BR>This filter should work fine in N dimensions. Are you sure there is a real problem with the filter?<BR>The fill holes transform is very sensible to any open pixel. In 3D, it may be difficult to see if a hole is open, but the algorithm won't miss it.<BR><BR>Using it in 2D in a 3D image is a perfectly valid usage, especially if the spacing
in your image is not uniform - I'm almost always using that filter that way.<BR>SliceBySliceImageFilter makes easy to apply a 2D filter in a 3D image.<BR><BR>Regards,<BR><BR>Gaëtan<BR><BR><BR>Le 26 avr. 11 à 05:08, Bill Lorensen a écrit :<BR><BR>> In the example, did you change:<BR>> const int dim = 2;<BR>> to<BR>> const int dim = 3;<BR>> <BR>> <BR>> On Mon, Apr 25, 2011 at 9:13 PM, Tiago Brizolara da Rosa <<A href="mailto:yarroo@yahoo.com" ymailto="mailto:yarroo@yahoo.com">yarroo@yahoo.com</A>> wrote:<BR>> 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 ExtractImageFilter and then applying the filter I want to use to the slice image generated.<BR>> Is there a way for
jumping this step (ExtractImageFilter)? For example, if I wanted to manipulate the pixels of my desired slices, I should use the ImageSliceIteratorWithIndex, so I wouldn´t need the ExtractImageFilter. 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 ExtractImageFilter?<BR>> <BR>> Now the problem with BinaryFillholeImageFilter. In fact, the reason for the above question comes from a workaround to the problem with this filter.<BR>> I tried to use BinaryFillholeImageFilter in exactly the same way as in the example file binary_fill_hole.cxx, 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?<BR>> 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<BR>> Label object representation and manipulation with ITK (<A href="http://www.insight-journal.org/browse/publication/176" target=_blank>http://www.insight-journal.org/browse/publication/176</A>).<BR>> <BR>> Well, as a workaround, I want to apply BinaryFillholeImageFilter 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.<BR>> <BR>> Thanks in advance,<BR>> <BR>> Tiago<BR>> <BR>> _____________________________________<BR>> Powered by www.kitware.com<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>> <BR>> _____________________________________<BR>> Powered by www.kitware.com<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>--Gaëtan Lehmann<BR>Biologie du Développement et de la Reproduction<BR>INRA de Jouy-en-Josas (France)<BR>tel: +33 1 34 65 29 66 fax: 01 34 65 29 09<BR><A href="http://voxel.jouy.inra.fr/" target=_blank>http://voxel.jouy.inra.fr</A> <A href="http://www.itk.org/" target=_blank>http://www.itk.org</A><BR><A href="http://www.mandriva.org/" target=_blank>http://www.mandriva.org</A> <A href="http://www.bepo.fr/" target=_blank>http://www.bepo.fr</A><BR><BR></DIV></DIV></div></body></html>