Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
l = s->GetNextSingleSerieUIDFileSet();
}
std::cout << " ----------------------------------------End Recap"
l = s->GetNextSingleSerieUIDFileSet();
}
std::cout << " ----------------------------------------End Recap"
//---------------------------------------------------------
s->OrderFileList(l); // sort the list (and compute ZSpacing !)
//---------------------------------------------------------
//---------------------------------------------------------
s->OrderFileList(l); // sort the list (and compute ZSpacing !)
//---------------------------------------------------------
zspacing = s->GetZSpacing();
// Just to show : GetZSpacing from a GDCM_NAME_SPACE::SerieHelper is right
std::cout << "GetZSpacing() of sorted SingleSerieUIDFileSet "
<< "from GDCM_NAME_SPACE::SerieHelper: " << zspacing << std::endl;
std::cout << " ('-1' means all the files have the same position)" << std::endl;
zspacing = s->GetZSpacing();
// Just to show : GetZSpacing from a GDCM_NAME_SPACE::SerieHelper is right
std::cout << "GetZSpacing() of sorted SingleSerieUIDFileSet "
<< "from GDCM_NAME_SPACE::SerieHelper: " << zspacing << std::endl;
std::cout << " ('-1' means all the files have the same position)" << std::endl;
for (std::vector<GDCM_NAME_SPACE::File* >::iterator it2 = l->begin();
it2 != l->end();
++it2)
{
// Just to show : GetZSpacing from a GDCM_NAME_SPACE::File may be different
std::cout << (*it2)->GetFileName() << " --> GetZSpacing() from GDCM_NAME_SPACE::File : "
for (std::vector<GDCM_NAME_SPACE::File* >::iterator it2 = l->begin();
it2 != l->end();
++it2)
{
// Just to show : GetZSpacing from a GDCM_NAME_SPACE::File may be different
std::cout << (*it2)->GetFileName() << " --> GetZSpacing() from GDCM_NAME_SPACE::File : "
<< std::endl;
s->Print(); // Prints all the Single SerieUID File Sets (sorted or not)
std::cout << " -------------------------------------------- Finish printing"
<< std::endl;
s->Print(); // Prints all the Single SerieUID File Sets (sorted or not)
std::cout << " -------------------------------------------- Finish printing"