<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, <br>when i debug the previous program after doing changements i get other errors like Unhandled exception at 0x1022fb10 (msvcr80d.dll) in serie.exe: 0xC0000005: Access violation reading location 0x00000000.<br>what does it mean<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 <drescherjm@gmail.com><br><b><span style="font-weight: bold;">À :</span></b> Syrine Sahmim <syrine.sahmim@yahoo.fr><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 :</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<<a ymailto="mailto:syrine.sahmim@yahoo.fr" href="mailto:syrine.sahmim@yahoo.fr">syrine.sahmim@yahoo.fr</a>> wrote:<br>> Hi John,<br>> it's me again<br>> if i have a dicom series( a directory) how can i do to put it in command<br>> argument .i want to read the serie of 3D dicom<br>> i haven't just a file a have a directory<br>><br><br>In the original code you posted in this thread.<br><br>nameGenerator->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> argc = 2;<br>
argv[1] = "dicom";<br> 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> std::string seriesIdentifier;<br><br> if( argc > 3 ) // If no optional series identifier<br> {<br> seriesIdentifier = argv[3];<br> }<br> else<br> {<br> seriesIdentifier = seriesUID.begin()->c_str();<br> }<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> std::string seriesIdentifier;<br> seriesIdentifier = seriesUID.begin()->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> 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>