<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,<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">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>
<DIV> Tiago</DIV></div></body></html>