Created
August 9, 2018 21:14
-
-
Save Kelvinrr/f76e71f50b526615e74a0d6bfb387a02 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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