- std::string filename = GDCM_DATA_ROOT;
- filename += "/"; //doh!
- filename += gdcmDataImages[i];
+ std::string filename;
+ if (argc ==2)
+ {
+ filename = argv[1];
+ }
+ else
+ {
+ filename = GDCM_DATA_ROOT;
+ filename += "/"; //doh!
+ filename += gdcmDataImages[i];
+ }
+
+ std::cout << " ----------------------------------------------"
+ << "Begin with " << filename << std::endl;