Worked like a charm, thanks! On Thursday, July 14, 2016 at 4:03:28 PM UTC+2, Jordi Inglada wrote: > > Darell van der Voort <[email protected] <javascript:>> wrote: > > > > Thanks for the info! > > However I cannot seem to get it to work in my batch file commands. I use > the following line: > > > > call ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=1 > %appfolder%/otbcli_MeanShiftSmoothing -in .... > > > > But 'ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS' is then not recognized as an > internal or external command. I've tried different combinations, but non > seem to recognize the ITK variable. > > What am I missing? Thanks! > > > > I didn't understand you were working on Windows. Maybe you have to set the > variable first and run the app after: > > set ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=1 > call %appfolder%/otbcli_MeanShiftSmoothing -in .... > > But I don't use Windows, so I don't know if this will work. > > You may also do this [1]: > > setlocal & set ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=1 & call MyScript.bat > & endlocal > > Cheers, > > Jordi > > [1] > http://stackoverflow.com/questions/20566698/how-to-call-a-bat-file-and-set-local-environment-variables-in-a-single-line-on > > > > Kind regards, > > Darell > > > > How do I get the batch command to recognize the ITK variable? > > > > On Thursday, July 14, 2016 at 3:03:16 PM UTC+2, Jordi Inglada wrote: > > > > Hi Darell, > > > > The ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS environment variable can be > used to set the maximum number of threads that an OTB application will use. > You can therefore use : > > > > ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=1 otbcli_MeanShiftSmoothing -in > ... > > > > or export the variable before running the application. > > > > Jordi > > > > Darell van der Voort <[email protected]> wrote: > > > > > > Hello, > > > > > > I was wondering if it possible to turn of the multi-threading of the > LSMSS smoothing (step 1)? Reason is that other steps are not multi-threaded > and I would like to assign individual processing chains to a > > single > > > core. > > > > > > Thanks! > > > > > > Kind regards, > > > Darell > > > > > > > > > -- > > > > > > -- >
-- -- 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
