<div dir="ltr">Hi James,<div><br></div><div>All of the images in that zip file have the same SeriesInstanceUID.  So this is, in fact, a single series that contains two stacks. This is fairly common.</div><div><br></div><div>The vtkDICOMReader can be used to find the number of stacks:</div><div><br></div><div><div>  vtkSmartPointer<vtkDICOMReader> reader = vtkSmartPointer<vtkDICOMReader>::New();</div></div><div>  reader->SetFileNames(sorter->GetFileNamesForSeries(0));</div><div>  reader->UpdateInformation();</div><div>  vtkStringArray *stacks = reader->GetStackIDs();</div><div>  int numberOfStacks = stacks->GetNumberOfValues();</div><div><br></div><div>The reader can also be told which stack to read:</div><div><br></div><div>  reader->SetDesiredStackID(stacks->GetValue(0));</div><div>  reader->Update();</div><div><br></div><div>With the "Enhanced MR Image IOD" and the "Enhanced CT Image IOD", it is even possible for a single _file_ to contain multiple stacks.</div><div><br></div><div> - David</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>  </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 1, 2017 at 3:50 AM, chenjianyyzz <span dir="ltr"><<a href="mailto:chenjianyyzz@163.com" target="_blank">chenjianyyzz@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hello David,</div><div><br></div><div>I have a set  of images (it includes 2 series), but the vtkDICOMFileSorter can only 1 series? </div><div>I don't know what's the problem, will any body help me out?</div><div><br></div><div>attached please find the data, and below is the code:</div><div>==============================<wbr>==========================</div><div><span class="m_3053382591066298988Apple-tab-span" style="white-space:pre-wrap">    </span>vtkSmartPointer<<wbr>vtkStringArray> filenames = vtkSmartPointer<<wbr>vtkStringArray>::New();</div><div><span class="m_3053382591066298988Apple-tab-span" style="white-space:pre-wrap">      </span>filenames->InsertNextValue("A_<wbr>10_0001_0325.dcm"); </div><div><span class="m_3053382591066298988Apple-tab-span" style="white-space:pre-wrap">        </span>filenames->InsertNextValue("A_<wbr>10_0001_0326.dcm"); </div><div><span class="m_3053382591066298988Apple-tab-span" style="white-space:pre-wrap">        </span>filenames->InsertNextValue("A_<wbr>10_0001_0327.dcm"); </div><div><span class="m_3053382591066298988Apple-tab-span" style="white-space:pre-wrap">        </span>filenames->InsertNextValue("A_<wbr>10_0001_0328.dcm"); </div><div><span class="m_3053382591066298988Apple-tab-span" style="white-space:pre-wrap">        </span>filenames->InsertNextValue("A_<wbr>10_0001_0329.dcm"); </div><div><span class="m_3053382591066298988Apple-tab-span" style="white-space:pre-wrap">        </span>filenames->InsertNextValue("A_<wbr>10_0001_0330.dcm"); </div><div><span class="m_3053382591066298988Apple-tab-span" style="white-space:pre-wrap">        </span>filenames->InsertNextValue("A_<wbr>10_0001_0331.dcm"); </div><div><span class="m_3053382591066298988Apple-tab-span" style="white-space:pre-wrap">        </span>filenames->InsertNextValue("A_<wbr>10_0001_0332.dcm"); </div><div><span class="m_3053382591066298988Apple-tab-span" style="white-space:pre-wrap">        </span>filenames->InsertNextValue("A_<wbr>10_0001_0333.dcm"); </div><div><span class="m_3053382591066298988Apple-tab-span" style="white-space:pre-wrap">        </span>filenames->InsertNextValue("A_<wbr>10_0001_0334.dcm"); </div><div><span class="m_3053382591066298988Apple-tab-span" style="white-space:pre-wrap">        </span>filenames->InsertNextValue("A_<wbr>10_0001_0335.dcm"); </div><div><span class="m_3053382591066298988Apple-tab-span" style="white-space:pre-wrap">        </span>vtkSmartPointer <vtkDICOMFileSorter> sorter = vtkSmartPointer <vtkDICOMFileSorter>::New();</div><div><span class="m_3053382591066298988Apple-tab-span" style="white-space:pre-wrap">     </span>sorter->SetInputFileNames(<wbr>filenames);</div><div><span class="m_3053382591066298988Apple-tab-span" style="white-space:pre-wrap">        </span>sorter->Update();</div><div><br></div><div><span class="m_3053382591066298988Apple-tab-span" style="white-space:pre-wrap">      </span>// Get number of series </div><div><span class="m_3053382591066298988Apple-tab-span" style="white-space:pre-wrap">  </span>int numSeries = sorter->GetNumberOfSeries();<span class="m_3053382591066298988Apple-tab-span" style="white-space:pre-wrap">                   </span>//==> here I expect to get 2, but only 1 got</div><div>==============================<wbr>==========================</div><div><br></div><div>actually "A_10_0001_0325.dcm" should be seperate into another series, will any body help me out?</div><div>thanks in advance</div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"></div></div><br><br><span title="neteasefooter"><p> </p></span></blockquote></div><br></div>