def startElastix(self, cmdLineArguments):
self.addLog("Register volumes...")
import subprocess
executableFilePath = os.path.join(self.getElastixBinDir(),self.elastixFilename)
logging.info("Register volumes using: "+executableFilePath+": "+repr(cmdLineArguments))
if subprocess.mswindows:
return subprocess.Popen([executableFilePath] + cmdLineArguments, env=self.getElastixEnv(),
stdout=subprocess.PIPE, universal_newlines=True, startupinfo=self.getStartupInfo())
else:
return subprocess.Popen([executableFilePath] + cmdLineArguments, env=self.getElastixEnv(),
stdout=subprocess.PIPE, universal_newlines=True)
评论列表
文章目录