I forgot to mention: it’s working if I launch my software on a folder containing directly the disoms.
If I launch my app with childFolder has the directory, the series is read (I have the series UID). If I launch my app with parentFolder, I expected to have the same result, but I have nothing (except the warning telling me that no series were found).
I did the test with and without SetRecursive call and the same results as above appear.
I use this example as starting point.
This is the simple code I use to test:
int main(int argc, char const *argv)
if (argc < 2)
std::cout << “Usage: " << argv << " dicom_path” << std::endl;
itk::GDCMSeriesFileNames::Pointer nameGenerator = itk::GDCMSeriesFileNames::New();
std::vector<std::string> seriesUID = nameGenerator->GetSeriesUIDs();
for (auto & uid : seriesUID)
std::cout << uid << std::endl;