Dear John!<br><br>Thank you very much for your fast support! So now I know I&#39;m on the right way by using ExtractImageFilter and  PasteImageFilter. However, when I set m_size[plane] = 1 in extract2DImageSlice() I&#39;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&#39;t find one.<br>
<br>Yours Sincerelly,<br>AD<br><br><br><div class="gmail_quote">2012/8/24 John Drescher <span dir="ltr">&lt;<a href="mailto:drescherjm@gmail.com" target="_blank">drescherjm@gmail.com</a>&gt;</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 &lt;<a href="mailto:callidus.713@gmail.com" target="_blank">callidus.713@gmail.com</a>&gt; wrote:<br>
&gt; Hello Everyone!<br>
&gt;<br>
&gt; Thus my former post didn&#39;t get any attention, I try a new one with preciser<br>
&gt; information. I would like to build up a small program, where a user could<br>
&gt; perform a filter (e.g. Threshold) on a slice (=2D image) from a 3D image.<br>
&gt; Now, I don&#39;t know how to solve this with ITK. I have used ExtractImageFilter<br>
&gt; to get a slice perform a filter and write it back into the volume with<br>
&gt; PasteImageFilterType but that doesn&#39;t work out.<br>
&gt; <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>
&gt; Then I tried Iterators, however with these I have to write my own filters,<br>
&gt; because I could manipulate on each pixels not on a hole 2D Image out of a 3D<br>
&gt; volume.<br>
&gt;<br>
&gt; If there exist an elegant way of doing this kind of task, please let me know<br>
&gt; as soon as possible.<br>
&gt;<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>