<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      the problem seems to be that you are using the reader inside a
      loop. JoinSeriesImageFilter will have the same pointer to the
      reader output for every image and the reader, of course, holds the
      last image at the end of the loop. One solution is to create a new
      reader for each image by just moving<br>
      <span style="mso-spacerun:'yes'; font-size:16.0000pt;
        font-family:'Times New Roman'; "><span class="Apple-tab-span"
          style="white-space:pre"> </span>ReaderType::Pointer&nbsp;reader&nbsp;=&nbsp;ReaderType::New();<br>
      </span><br>
      inside the loop.<br>
      <br>
      Another solution should be calling DisconnectPipeline() on the
      reader output.<br>
      <br>
      HTH<br>
      Dominique<br>
      <br>
      Am 12.10.2013 18:05, schrieb shiwei:<br>
    </div>
    <blockquote
      cite="mid:4b2ed86e.221b5.141ad6a9b9e.Coremail.swingsw89@163.com"
      type="cite">
      <div
        style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Hi,All~
        <div>&nbsp; &nbsp; &nbsp; &nbsp;Here I got a problem with the
          itk::JoinSeriesImageFilter,I read<b> four different 2d images</b>
          and want to join them to &nbsp;one 3D Image by using
          JoinSeriesImageFilter.However, in the Test example,I finally
          got one 3D Image which has four same slices(not four different
          one),and it shows that the same slice are the last 2D image
          which read in to the memory. Now I'm confused about this ,and
          can anyone help me with that? The code is below, Thank you
          very much for that!</div>
        <div><br>
        </div>
        <div><span style="color: rgb(0, 0, 255); font-size: 16pt;
            font-family: 'Times New Roman';">#include</span><span
            style="font-size: 16pt; font-family: 'Times New Roman';">&nbsp;</span><span
            style="color: rgb(163, 21, 21); font-size: 16pt;
            font-family: 'Times New Roman';">"itkImage.h"</span></div>
        <div class="Section0">
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; ">#include</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;</span><span
              style="mso-spacerun:'yes'; color:rgb(163,21,21);
              font-size:16.0000pt; font-family:'Times New Roman'; ">"itkImageFileReader.h"</span><span
              style="mso-spacerun:'yes'; color:rgb(163,21,21);
              font-size:16.0000pt; font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; ">#include</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;</span><span
              style="mso-spacerun:'yes'; color:rgb(163,21,21);
              font-size:16.0000pt; font-family:'Times New Roman'; ">"itkImageFileWriter.h"</span><span
              style="mso-spacerun:'yes'; color:rgb(163,21,21);
              font-size:16.0000pt; font-famil y:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; ">#include</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;</span><span
              style="mso-spacerun:'yes'; color:rgb(163,21,21);
              font-size:16.0000pt; font-family:'Times New Roman'; ">"itkJoinSeriesImageFilter.h"</span><span
              style="mso-spacerun:'yes'; color:rgb(163,21,21);
              font-size:16.0000pt; font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; ">typedef</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;itk::Image&lt;&nbsp;</span><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Tim es New Roman'; ">unsigned</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;</span><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; ">char</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">,&nbsp;&nbsp;2&nbsp;&gt;&nbsp;&nbsp;&nbsp;InputImageType;</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; ">typedef</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;itk::Image&lt;&nbsp;</span><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; ">unsigned</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt; font
              -family:'Times New Roman'; ">&nbsp;</span><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; ">char</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">,&nbsp;&nbsp;3&nbsp;&gt;&nbsp;&nbsp;&nbsp;ImageType3D;</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; ">typedef</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;itk::Image&lt;&nbsp;</span><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; ">unsigned</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;</span><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255) ;
              font-size:16.0000pt; font-family:'Times New Roman'; ">char</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">,&nbsp;&nbsp;2&nbsp;&gt;&nbsp;&nbsp;&nbsp;ImageType2D;</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; ">typedef</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;itk::ImageFileReader&lt;&nbsp;InputImageType&nbsp;&gt;&nbsp;ReaderType;</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; ">typedef</span><span
              style="mso-spacerun:' yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;itk::ImageFileWriter&lt;&nbsp;ImageType3D&nbsp;&gt;&nbsp;WriterType;</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; ">typedef</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;itk::JoinSeriesImageFilter&lt;ImageType2D,&nbsp;ImageType3D&gt;&nbsp;JoinSeriesImageFilterType;</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; ">int</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roma n'; ">&nbsp;main()</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">{</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "> </span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;<span
                class="Apple-tab-span" style="white-space:pre"> </span>ReaderType::Pointer&nbsp;reader&nbsp;=&nbsp;ReaderType::New();</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000 pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><span
                class="Apple-tab-span" style="white-space:pre"> </span>&nbsp;JoinSeriesImageFilterType::Pointer&nbsp;joinFilter&nbsp;=&nbsp;JoinSeriesImageFilterType::New();</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "> </span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;<span
                class="Apple-tab-span" style="white-space:pre"> </span></span><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; ">int</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;slice;</span></p>
          <p class="p0" style="margin-bottom:0pt ; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; "><span
                class="Apple-tab-span" style="white-space:pre"> </span>char</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">*&nbsp;Src=</span><span
              style="mso-spacerun:'yes'; color:rgb(163,21,21);
              font-size:16.0000pt; font-family:'Times New Roman'; ">"D:\\ITK_test\\joinseriestest\\bin\\liimage1"</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">;</span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; "><span
                class="Apple-tab-span" style="white-space:pre"> </span>char</span>
            <span style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">*&nbsp;Ipo=</span><span
              style="mso-spacerun:'yes'; color:rgb(163,21,21);
              font-size:16.0000pt; font-family:'Times New Roman'; ">"_cor.tif"</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">;</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; "><span
                class="Apple-tab-span" style="white-space:pre"> </span>char</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">*&nbsp;Ipr=</span><span
              style="mso-spacerun:'yes'; color:rgb(163,21,21);
              font-size:16.0000pt; font-family:'Times New Roman'; ">"GFP_"<span
                style="mso-spacerun:'yes'; font-size:16.0000pt;
                font-family:'Times New Roman'; ">;</span><span
                style="mso-spacerun:'yes'; font-size:16.0000pt;
                font-family:'Times New Roman'; "><o:p></o:p></span></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; "><span
                class="Apple-tab-span" style="white-space:pre"> </span>char</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">*&nbsp;filename&nbsp;=&nbsp;</span><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; ">new</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;</span><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; ">char
            </span><span style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">[100];</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; "><span
                class="Apple-tab-span" style="white-space:pre"> </span>char</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">*&nbsp;writenname=</span><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; ">new</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;</span><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; ">char<!--
 span--><span style="mso-spacerun:'yes'; font-size:16.0000pt;
                font-family:'Times New Roman'; ">[100];</span><span
                style="mso-spacerun:'yes'; font-size:16.0000pt;
                font-family:'Times New Roman'; "><o:p></o:p></span></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; "><span
                class="Apple-tab-span" style="white-space:pre"> </span>for</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">(slice=2600;slice&lt;=2605;++slice)</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt; f
              ont-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><span
                class="Apple-tab-span" style="white-space:pre"> </span>{</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "> </span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;&nbsp;&nbsp;&nbsp;</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt; font
              -family:'Times New Roman'; "><span class="Apple-tab-span"
                style="white-space:pre"> </span>filename[0]&nbsp;=&nbsp;</span><span
              style="mso-spacerun:'yes'; color:rgb(163,21,21);
              font-size:16.0000pt; font-family:'Times New Roman'; ">'\0'</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">;</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><span
                class="Apple-tab-span" style="white-space:pre"> </span>sprintf_s(filename,100,</span><span
              style="mso-spacerun:'yes'; color:rgb(163,21,21);
              font-size:16.0000pt; font-family:'Times New Roman'; ">"%s\\

              %s%05d%s"</span><span style="mso-spacerun:'yes';
              font-size:16.0000pt; font-family:'Times New Roman'; ">,Src,Ipr,slice,Ipo);</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom: 0pt; margin-top: 0pt;"><span
              class="Apple-tab-span" style="font-family: 'Times New
              Roman'; font-size: 16pt; line-height: 1.7; white-space:
              pre;"> </span><span style="font-family: 'Times New
              Roman'; font-size: 16pt; line-height: 1.7;">reader-&gt;SetFileName(filename);</span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><span
                class="Apple-tab-span" style="white-space:pre"> </span>reader-&gt;Update();</span></p>
          <p cl="" ass="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="font-family: 'Times New Roman'; font-size: 16pt;
              line-height: 1.7;"><span class="Apple-tab-span"
                style="white-space:pre"> </span>joinFilter-&gt;SetInput(slice-2600,reader-&gt;GetOutput());</span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "> </span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "> </span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><span
                class="Apple-tab-span" style="white-space:pre"> </span>}</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt; f
              ont-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><span
                class="Apple-tab-span" style="white-space:pre"> </span>joinFilter-&gt;Update();</span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "> </span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;&nbsp;<span
                class="Apple-tab-span" style="white-space:pre"> </span>WriterType::Pointer&nbsp;writer&nbsp;=&nbsp;WriterType::New();</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "> </span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;&nbsp;<span
                class="Apple-tab-span" style="white-space:pre"> </span>writer-&gt;SetFileName(&nbsp;</span><span
              style="mso-spacerun:'yes'; color:rgb(163,21,21);
              font-size:16.0000pt; font-family:'Times New Roman'; ">"D:\\ITK_test\\joinseriestest\\bin\\26001.tif"</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;);</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><span
                class="Apple-tab-span" style="whit e-space:pre"> </span>&nbsp;writer-&gt;SetInput(joinFilter-&gt;GetOutput());</span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><span
                class="Apple-tab-span" style="white-space:pre"> </span>writer-&gt;Update();</span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "></span><span
              style="mso-spacerun:'yes'; color:rgb(0,0,255);
              font-size:16.0000pt; font-family:'Times New Roman'; "><span
                class="Apple-tab-span" style="white-space:pre"> </span>return</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">&nbsp;0;</span><span
              style="mso-spacerun:'yes'; font-si ze:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; ">}</span><span
              style="mso-spacerun:'yes'; font-size:16.0000pt;
              font-family:'Times New Roman'; "><o:p></o:p></span></p>
          <p class="p0" style="margin-bottom:0pt; margin-top:0pt; "><span
              style="mso-spacerun:'yes'; font-size:10.5000pt;
              font-family:'Times New Roman'; ">&nbsp;</span></p>
        </div>
      </div>
      <br>
      <br>
      <span title="neteasefooter"><span id="netease_mail_footer"></span></span>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_____________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Kitware offers ITK Training Courses, for more information visit:
<a class="moz-txt-link-freetext" href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a>

Please keep messages on-topic and check the ITK FAQ at:
<a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>