From 4675f89bb7c17153c4e6e4fc0d513ce6224ce0c5 Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Sun, 15 Jan 2023 09:40:08 -0600 Subject: [PATCH] fix(api): add missing origin argument to noise sources --- api/onnx_web/image.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/onnx_web/image.py b/api/onnx_web/image.py index d0f96aee2..670642406 100644 --- a/api/onnx_web/image.py +++ b/api/onnx_web/image.py @@ -71,7 +71,7 @@ def noise_source_gaussian(source_image: Image, dims: Tuple[int, int], origin: Tu return noise -def noise_source_uniform(source_image: Image, dims: Tuple[int, int]) -> Tuple[float, float, float]: +def noise_source_uniform(source_image: Image, dims: Tuple[int, int], origin: Tuple[int, int]) -> Tuple[float, float, float]: width, height = dims size = width * height @@ -93,7 +93,7 @@ def noise_source_uniform(source_image: Image, dims: Tuple[int, int]) -> Tuple[fl return noise -def noise_source_normal(source_image: Image, dims: Tuple[int, int]) -> Tuple[float, float, float]: +def noise_source_normal(source_image: Image, dims: Tuple[int, int], origin: Tuple[int, int]) -> Tuple[float, float, float]: width, height = dims size = width * height @@ -115,7 +115,7 @@ def noise_source_normal(source_image: Image, dims: Tuple[int, int]) -> Tuple[flo return noise -def noise_source_histogram(source_image: Image, dims: Tuple[int, int]) -> Tuple[float, float, float]: +def noise_source_histogram(source_image: Image, dims: Tuple[int, int], origin: Tuple[int, int]) -> Tuple[float, float, float]: r, g, b = source_image.split() width, height = dims size = width * height