Fixed shebangs, added error checking

This commit is contained in:
Moshe Kaplan
2013-03-06 01:41:02 -05:00
parent c0ba0c9099
commit bd042d9cc3
48 changed files with 310 additions and 129 deletions

View File

@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python
'''
Coherence-enhancing filtering example
@@ -40,8 +40,10 @@ def coherence_filter(img, sigma = 11, str_sigma = 11, blend = 0.5, iter_n = 4):
if __name__ == '__main__':
import sys
try: fn = sys.argv[1]
except: fn = '../cpp/baboon.jpg'
try:
fn = sys.argv[1]
except:
fn = '../cpp/baboon.jpg'
src = cv2.imread(fn)