Skip to content

Instantly share code, notes, and snippets.

@Kelvinrr
Created August 9, 2018 21:14
Show Gist options
  • Select an option

  • Save Kelvinrr/f76e71f50b526615e74a0d6bfb387a02 to your computer and use it in GitHub Desktop.

Select an option

Save Kelvinrr/f76e71f50b526615e74a0d6bfb387a02 to your computer and use it in GitHub Desktop.
cam2map_params1 = {
'from_' : img1,
'map' : 'equidistant.map',
'to' : img1proj
}
cam2map_params2 = {
'from_' : img2,
'map' : img1proj,
'to' : img2proj,
'matchmap' : 'yes'
}
try:
print('Running cam2map on {}'.format(img1))
cam2map(**cam2map_params1)
print('Running cam2map on {}'.format(img2))
cam2map(**cam2map_params2)
except ProcessError as e:
print('cam2map Error')
print("STDOUT:", e.stdout.decode('utf-8'))
print("STDERR:", e.stderr.decode('utf-8'))
args = ['deplaid=1','wnremove=1', 'autoradcorr=1', 'destreak=1']
try:
out1, err1 = run_davinci('thm_post_process.dv', img1proj, img1proj, args=args)
out2, err2 = run_davinci('thm_post_process.dv', img2proj, img2proj, args=args)
except Exception as e:
print(e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment