How about something like:

for tif in directory/*.tif ; do
  out=$tif-out.tif
  otbcli_MeanShiftSmoothing -in $tif -fout $out -spatialr x -ranger y 
-maxiter z
done



On Sunday, May 21, 2017 at 11:25:56 AM UTC-4, Flint Freakwood wrote:
>
> Hey there! I want to smooth multiple *.tif-files and would like to do it 
> as a batch process so I don't have to smooth every picture by hand. The 
> command line input I begin with looks like this:
>
> otbcli_MeanShiftSmoothing -in Input.tif -fout Output.tif -spatialr x 
> -ranger y -maxiter z
>
> How do I go about processing the whole folder or every tif-file in the 
> folder?
>
> Thanks in advance :)
>

-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to otb-users@googlegroups.com
To unsubscribe from this group, send email to
otb-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to otb-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to