Dear John!<br><br>Thank you very much for your fast support! So now I know I'm on the right way by using ExtractImageFilter and PasteImageFilter. However, when I set m_size[plane] = 1 in extract2DImageSlice() I'm jumping out of range. Maybe my code example is a little bit confusing, do you have an useful example, I ask google several times but it didn't find one.<br>
<br>Yours Sincerelly,<br>AD<br><br><br><div class="gmail_quote">2012/8/24 John Drescher <span dir="ltr"><<a href="mailto:drescherjm@gmail.com" target="_blank">drescherjm@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>On Fri, Aug 24, 2012 at 10:25 AM, A D <<a href="mailto:callidus.713@gmail.com" target="_blank">callidus.713@gmail.com</a>> wrote:<br>
> Hello Everyone!<br>
><br>
> Thus my former post didn't get any attention, I try a new one with preciser<br>
> information. I would like to build up a small program, where a user could<br>
> perform a filter (e.g. Threshold) on a slice (=2D image) from a 3D image.<br>
> Now, I don't know how to solve this with ITK. I have used ExtractImageFilter<br>
> to get a slice perform a filter and write it back into the volume with<br>
> PasteImageFilterType but that doesn't work out.<br>
> <a href="http://old.nabble.com/Can%27t-paste-Slice-back-into-3D-Volume-td34324209.html" target="_blank">http://old.nabble.com/Can%27t-paste-Slice-back-into-3D-Volume-td34324209.html</a><br>
> Then I tried Iterators, however with these I have to write my own filters,<br>
> because I could manipulate on each pixels not on a hole 2D Image out of a 3D<br>
> volume.<br>
><br>
> If there exist an elegant way of doing this kind of task, please let me know<br>
> as soon as possible.<br>
><br>
<br>
</div></div>I may be wrong however think you want m_size[plane] = 1; instead of<br>
m_size[plane] = 0; in your code.<br>
<span><font color="#888888"><br>
John<br>
</font></span></blockquote></div><br>