[Insight-users] About SetFileName in for loop

Xiaopeng Yang yxp233 at postech.ac.kr
Tue Aug 3 04:52:23 EDT 2010


Hi ITK users,

 

In the fast marching level set method, I tried to program a simulation
process for changing parameter "sigma" to get different outputs. Thus I
tried for loop. The problem is how to save the different results in
different file names. I think I need to change the code of "SetFileName". If
I do not change it, then the later result will replace the previous result
automatically. Anyone has any good idea? 

 

for (double sigma = 1.0; sigma <=1.4; sigma += .1) {

 

...

 

writer->SetFileName( "D:/fast_marching_simulation/3D.dcm" );

 

...

 

}

 

Thank you very much!

 

Xiaopeng

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100803/9f0fe285/attachment-0001.htm>


More information about the Insight-users mailing list