<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Hi John,<br>I'm applying what you wrote to m e yesterday. Thank you really for helping me.<br>Have a nice day<br><br>Regards<br>Syrine<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">De :</span></b> John Drescher &lt;drescherjm@gmail.com&gt;<br><b><span style="font-weight: bold;">À :</span></b> Syrine Sahmim &lt;syrine.sahmim@yahoo.fr&gt;<br><b><span style="font-weight: bold;">Cc :</span></b> insight-users@itk.org<br><b><span style="font-weight: bold;">Envoyé le :</span></b> Mardi, 4 Août 2009, 22h40mn 45s<br><b><span style="font-weight: bold;">Objet&nbsp;:</span></b> Re: Re : [Insight-users] Fwd:
 Re : Need to correct this example<br></font><br>On Tue, Aug 4, 2009 at 5:30 PM, Syrine Sahmim&lt;<a ymailto="mailto:syrine.sahmim@yahoo.fr" href="mailto:syrine.sahmim@yahoo.fr">syrine.sahmim@yahoo.fr</a>&gt; wrote:<br>&gt; Hi John,<br>&gt; it's me again<br>&gt; if i have a dicom series( a directory) how can i do to put it in command<br>&gt; argument .i want to read the serie of 3D dicom<br>&gt; i haven't just a file a have a directory<br>&gt;<br><br>In the original code you posted in this thread.<br><br>nameGenerator-&gt;SetDirectory( argv[1] );<br><br>This line tells me that the first argument is a folder. If you have<br>spaces in the path use quotes.<br><br>Something like<br><br><br>"C:\Dicom\Images\Case1"<br><br>would be fine for the first argument. That is after you fix your code<br>to remove the following lines:<br><br>&nbsp; argc = 2;<br>&nbsp; &nbsp; argv[1] = "dicom";<br>&nbsp; &nbsp; argv[2] = "dicomMRA.hdr";<br><br><br>Then you have to
 remember to pass the rest of the arguments.<br><br>In the following lines I believe you skipped argv[2]<br><br>&nbsp; std::string seriesIdentifier;<br><br>&nbsp; &nbsp; if( argc &gt; 3 ) // If no optional series identifier<br>&nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; seriesIdentifier = argv[3];<br>&nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; else<br>&nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; seriesIdentifier = seriesUID.begin()-&gt;c_str();<br>&nbsp; &nbsp; &nbsp; }<br><br>You probably want to remove this unless you store more than 1 series<br>in a folder and replace the above lines with just<br><br>&nbsp;  std::string seriesIdentifier;<br>&nbsp;  seriesIdentifier = seriesUID.begin()-&gt;c_str();<br><br><br>Then you used argv[3] and argv[4]<br><br>const double gaussianVariance = atof( argv[3] );<br>const unsigned int maxKernelWidth = atoi( argv[4] );<br><br>In this case you should probably change this to (if you got rid of<br>argv[3] in the step
 above for seriesIdentifier)<br><br>const double gaussianVariance = atof( argv[2] );<br>&nbsp; const unsigned int maxKernelWidth = atoi( argv[3] );<br><br>I hope this gets you on the right track. This is all the time I have<br>for this at the moment.<br><br>John<br></div></div></div><br>



      </body></html>