<div dir="ltr">Hi James,<div><br></div><div>In the code you sent in your email, there are single backslashes after "C:" and "temp".  I tried on my computer with proper slashes, and sorter->GetNumberOfSeries() returns 1.</div><div><br></div><div> - David</div><div><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 21, 2017 at 11:53 PM, 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello David,<br>
<br>
thank you very much for your reply, yes, the image result you attached is<br>
right.<br>
but in my code, I fail to  GetNumberOfSeries,  it return 0, below is my<br>
code:<br>
==============================<wbr>=====<br>
        vtkSmartPointer<<wbr>vtkStringArray> filenames =<br>
vtkSmartPointer<<wbr>vtkStringArray>::New();<br>
        filenames->InsertNextValue("C:<wbr>\temp\Data_Fail_to_Read_A\\1-<wbr>286.dcm");<br>
        filenames->InsertNextValue("C:<wbr>\temp\Data_Fail_to_Read_A\\1-<wbr>287.dcm");<br>
        filenames->InsertNextValue("C:<wbr>\temp\Data_Fail_to_Read_A\\1-<wbr>288.dcm");<br>
        filenames->InsertNextValue("C:<wbr>\temp\Data_Fail_to_Read_A\\1-<wbr>289.dcm");<br>
        filenames->InsertNextValue("C:<wbr>\temp\Data_Fail_to_Read_A\\1-<wbr>290.dcm");<br>
        filenames->InsertNextValue("C:<wbr>\temp\Data_Fail_to_Read_A\\1-<wbr>291.dcm");<br>
        filenames->InsertNextValue("C:<wbr>\temp\Data_Fail_to_Read_A\\1-<wbr>292.dcm");<br>
        vtkSmartPointer <vtkDICOMFileSorter> sorter = vtkSmartPointer<br>
<vtkDICOMFileSorter>::New();<br>
        sorter->SetInputFileNames(<wbr>filenames);<br>
        sorter->Update();<br>
        *int ns = sorter->GetNumberOfSeries();*    // here ns returns 0, which<br>
should not be.<br>
==============================<wbr>=====<br>
<br>
and I don't know why sorter->GetNumberOfSeries() returns 0?<br>
<br>
Best Regards<br>
James<br><div class="gmail-HOEnZb"><div class="gmail-h5"><br>
</div></div></blockquote></div><br></div></div></div>