aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mean.py
diff options
context:
space:
mode:
Diffstat (limited to 'mean.py')
-rw-r--r--mean.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mean.py b/mean.py
index 6b09eda..9fbfc03 100644
--- a/mean.py
+++ b/mean.py
@@ -25,7 +25,7 @@ def convolve(img, kernel):
DEFAULT_RADIUS = 1
-def do(img_path, radius=DEFAULT_RADIUS, output_path=None):
+def mean(img_path, radius=DEFAULT_RADIUS, output_path=None):
img = cv2.imread(img_path, cv2.IMREAD_GRAYSCALE)
kernel = gen_kernel(radius)
output = convolve(img, kernel)
@@ -55,7 +55,7 @@ def _parse_args(args=sys.argv):
return parser.parse_args(args[1:])
def main(args=sys.argv):
- do(**vars(_parse_args(args)))
+ mean(**vars(_parse_args(args)))
if __name__ == '__main__':
main()