<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>If you feel like passing your arguments in a scripting language as opposed to the command line then SimpleITK would be an excellent chose for this.</div><div><br></div><div>There are pre-compiled built distributions for Python, Java and C#, while if R, Tcl, or ruby is preferred you will need to compile from source. More information can be found on the wiki about getting started:</div><div><br></div><div><a href="http://www.itk.org/Wiki/ITK_Release_4/SimpleITK/GettingStarted">http://www.itk.org/Wiki/ITK_Release_4/SimpleITK/GettingStarted</a></div><div><br></div><div>I don't specifically know what you need to do, but it likely can just be done in a couple lines of Python. I don't have an example to point you too, but as this is a common task, I could do that if it would be helpful.</div><div><br></div><div>Briefly something like this should work:</div><div><br></div><div><div>fnames = glob.glob("my*.ext")</div><div>img = sitk.ReadImage(fnames)</div><div>img.SetSpacing( [1,2,3] )</div><div>sitk.WriteImage( "out.mha", img )</div></div><div><br></div><div>Brad</div><div><br><div><div>On Jan 11, 2013, at 2:51 AM, Kulplex <<a href="mailto:kulplex@gmail.com">kulplex@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">Hello everyone,<br><br>I have been searching quite a bit and now I realized I should seek some support.<br>My goal is to find a tool for converting 2D images (tiff, jpg or else) to a 3D volume (VTK supported format). I found quite some threads and also a guy posting what seemed to be exactly what I was looking for <a href="https://sites.google.com/site/pierrefillard/coding-blog/createa3dvolumefromseveral2dimages" target="_blank" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">https://sites.google.com/site/pierrefillard/coding-blog/createa3dvolumefromseveral2dimages</a>. In fact, I was amazed and extremely happy; sadly, the SVN URL provided on the website doesn't work, for whatever reason.<br>
So now I am back from the start.<br><br>I was wondering if someone of you had, or knew where to find, a program (console) that either gets a list of images or the folder they are in and creates a 3D volume out of it. The program presented in the link above was actually really cool, for the fact that it could also convert 3D images to 4D ones.<br>
<br>Regards,<br><br>N.<br>
_______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-developers<br></blockquote></div><br></div></body></html>