<div dir="ltr">Hi Zarko,<div><br></div><div>After calling reader->SetDesiredStackID() and reader->UpdateInformation(), you can call reader->GetFileIndexArray()->GetNumberOfValues() to get the number of slices in the stack.</div><div><br></div><div> - David<br><div class="gmail_extra"><br></div></div></div>