Ah, right.&nbsp; Thanks, it works perfectly now!<br><br><div class="gmail_quote">2008/12/30 Mathieu Malaterre <span dir="ltr">&lt;<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>&gt;</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 &lt;<a href="mailto:mcstrother@gmail.com">mcstrother@gmail.com</a>&gt; wrote:<br>
&gt; Hi. &nbsp;I am trying to read in a series of sample DICOM images using the sample<br>
&gt; program in InsightToolkit-3.10.0/Examples/IO/DicomSeriesReadSeriesWrite.cxx<br>
&gt; but I am not sure of the proper format for the string in the<br>
&gt; GDCMSeriesFileNames SetInputDirectory method.<br>
&gt;<br>
&gt; With all of the code in the example the same, I would like to change the<br>
&gt; line:<br>
&gt;<br>
&gt; namesGenerator-&gt;SetInputDirectory( argv[1] )<br>
&gt;<br>
&gt; to a hard-coded directory, as in:<br>
&gt;<br>
&gt; namesGeneratory-&gt;SetInputDirector( &quot;~/Images/Test Images/John Doe/8675309&quot; )<br>
&gt;<br>
&gt; where the folder ~/Images/Test Images/John Doe/8675309/ &nbsp;contains the dicom<br>
&gt; series I want read in, but changing that line as I have above does not<br>
&gt; work. &nbsp;(I am using a linux platform) &nbsp;What is the proper format for this<br>
&gt; string?<br>
<br>
</div></div>Replace &quot;~&quot; by the value returned by &quot;env $HOME&quot;, 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>