<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<link href="chrome://translator/skin/floatingPanel.css"
type="text/css" rel="stylesheet">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
are the thresholds the same for all input images? Assuming that, you
could do in a shell (i.e. where you usually execute filter6)<br>
<br>
for i in inputfile*; do; ./filter6 $i ${i/input/output}
lower-threshold upper-threshold; done<br>
<br>
Here the shell is doing the loop for you - no need to implement it
in your application.<br>
<br>
Christina<br>
<br>
<br>
Am 13.06.2012 16:19, schrieb Luke Hetrick:
<blockquote
cite="mid:CAHLNSx49GuzDre5NMYSbYAv66sBAz9kEZ+qhF4jn1vhT376yTg@mail.gmail.com"
type="cite">Hello,<br>
<br>
I am running on a linux system. What I am really looking to do
is run an exectuable file that I created in ITK over a large data
set of pictures that are numbered from *22 to *680. THe executable
I wrote is just a simple threshold filter that takes the following
arguments when called:<br>
<br>
./filter6
inputfile outputfile lower-threshol upper-threshold<br>
<br>
and what I was hoping to do was have it loop through the images I
have running the same lower/upper-threshold values by just opening
inputfile022 to outputfile22 then opening inputfile23 and writing
to outputfile23...and so on. I have experience with C++ and Linux
but I am still a novice when it comes to most coding as you can
see. <br>
<br>
Thank you for your help,<br>
Luke H<br>
<br>
<div class="gmail_quote">On Wed, Jun 13, 2012 at 3:32 AM, Chr.
Rossmanith <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:cr@neuro.ma.uni-heidelberg.de" target="_blank">cr@neuro.ma.uni-heidelberg.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hi,<br>
<br>
what is your OS? Sounds like you are looking for a loop:<br>
<br>
for i in [input file pattern]; do [YourAppName] $i `basename
$i [extension]`_proc.[extension]; done<br>
<br>
where you would have to replace [input file pattern],
[YourAppName] and [extension] appropriately.<br>
<br>
Christina<br>
--<br>
<span
style="font-size:10pt;font-family:"Arial","sans-serif""
lang="EN-GB">Dept. of Neurology</span> <br>
<span
style="font-size:10pt;font-family:"Arial","sans-serif""
lang="EN-GB">University Medical Center Mannheim<br>
<br>
<br>
</span>Am 12.06.2012 23:45, schrieb Luke Hetrick:
<blockquote type="cite">
<div>
<div class="h5">Hey everyone,<br>
<br>
I have a collection of roughly around 500 images
and there is a lot of noise in the pictures that I can
easily remove using the itkThresholdImageFilter. My
question is, is there a way I can make the filter
operate on the entire set of images instead of doing
it a single image at a time? At the moment, the
arguments I pass into the program that filters the
image is just the filename, the output file name, the
lower threshold, and the upper threshold. And this
works great for a single image but I would hate to do
this 500 times to clean up my data. Does anyone have
an idea that I could try out?<br>
<br>
Thanks so much for your help and time,<br>
Luke H<br>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_____________________________________
Powered by <a moz-do-not-send="true" href="http://www.kitware.com" target="_blank">www.kitware.com</a>
Visit other Kitware open-source projects at
<a moz-do-not-send="true" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>
Kitware offers ITK Training Courses, for more information visit:
<a moz-do-not-send="true" href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a>
Please keep messages on-topic and check the ITK FAQ at:
<a moz-do-not-send="true" href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a moz-do-not-send="true" href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</blockquote>
<br>
<div style="bottom: auto; left: 759px; right: auto; top: 328px;
display: none;" class="translator-theme-default"
id="translator-floating-panel">
<div title="Zum übersetzen klicken"
id="translator-floating-panel-button"></div>
</div>
</body>
</html>