Ah, right. Thanks, it works perfectly now!<br><br><div class="gmail_quote">2008/12/30 Mathieu Malaterre <span dir="ltr"><<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Tue, Dec 30, 2008 at 9:37 PM, Marshall Strother <<a href="mailto:mcstrother@gmail.com">mcstrother@gmail.com</a>> wrote:<br>
> Hi. I am trying to read in a series of sample DICOM images using the sample<br>
> program in InsightToolkit-3.10.0/Examples/IO/DicomSeriesReadSeriesWrite.cxx<br>
> but I am not sure of the proper format for the string in the<br>
> GDCMSeriesFileNames SetInputDirectory method.<br>
><br>
> With all of the code in the example the same, I would like to change the<br>
> 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<br>
> series I want read in, but changing that line as I have above does not<br>
> work. (I am using a linux platform) What is the proper format for this<br>
> string?<br>
<br>
</div></div>Replace "~" by the value returned by "env $HOME", simply type that in<br>
you shell. ~ is simply a shortcut you can use from the shell<br>
<br>
--<br>
<font color="#888888">Mathieu<br>
</font></blockquote></div><br><br>