Hi. I am trying to read in a series of sample DICOM images using the sample program in InsightToolkit-3.10.0/Examples/IO/DicomSeriesReadSeriesWrite.cxx but I am not sure of the proper format for the string in the GDCMSeriesFileNames SetInputDirectory method.<br>
<br>With all of the code in the example the same, I would like to change the line:<br><br>namesGenerator->SetInputDirectory( argv[1] )<br><br>to a hard-coded directory, as in:<br><br>namesGeneratory->SetInputDirector( "~/Images/Test Images/John Doe/8675309" )<br>
<br>where the folder ~/Images/Test Images/John Doe/8675309/ contains the dicom series I want read in, but changing that line as I have above does not work. (I am using a linux platform) What is the proper format for this string?<br>
<br>Thanks very much,<br>MS<br>