def locateres(imfname, temfname, scrapfname): fn_str = make_fn_call('locateres', ['../screenshots/'+imfname, '../templates/'+temfname, '../temp/'+scrapfname]) cmd = MatlabCommandBuilder() cmd.inject(base_cmd).inject(fn_str) pretty_subprocess([matlab_bin, matlab_opts, '-r', cmd.cmd_string()], 'locateres.m')
def preprocess(infname, outfname): fn_str = make_fn_call('preprocess', ['../screenshots/'+infname, '../screenshots/'+outfname]) cmd = MatlabCommandBuilder() cmd.inject(base_cmd).inject(fn_str) pretty_subprocess([matlab_bin, matlab_opts, '-r', cmd.cmd_string()], 'preprocess.m')