aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/gaussian.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-08-29 03:47:44 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-08-29 03:47:44 +0300
commit1f13a4984ff3255c1c6eba9d97bbae97c4c25e59 (patch)
tree481bdd4fcccd47373e6b78c9b490948a7eefcc93 /gaussian.py
parentadd README (diff)
downloadfilters-1f13a4984ff3255c1c6eba9d97bbae97c4c25e59.tar.gz
filters-1f13a4984ff3255c1c6eba9d97bbae97c4c25e59.zip
fix Pylint warnings
Diffstat (limited to 'gaussian.py')
-rw-r--r--gaussian.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gaussian.py b/gaussian.py
index 743b70d..2e5ad90 100644
--- a/gaussian.py
+++ b/gaussian.py
@@ -31,8 +31,8 @@ def convolve(img, kernel):
DEFAULT_SIGMA = 1.
DEFAULT_RADIUS = 1
-def do(img_path, radius=DEFAULT_RADIUS, sigma=DEFAULT_SIGMA,
- output_path=None):
+def gaussian(img_path, radius=DEFAULT_RADIUS, sigma=DEFAULT_SIGMA,
+ output_path=None):
img = cv2.imread(img_path, cv2.IMREAD_GRAYSCALE)
kernel = gen_kernel(radius, sigma)
@@ -65,7 +65,7 @@ def _parse_args(args=sys.argv):
return parser.parse_args(args[1:])
def main(args=sys.argv):
- do(**vars(_parse_args(args)))
+ gaussian(**vars(_parse_args(args)))
if __name__ == '__main__':
main()