Skip to content

Commit

Permalink
fix(api): add missing origin argument to noise sources
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jan 15, 2023
1 parent 0ed11af commit 4675f89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/onnx_web/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 4675f89

Please sign in to comment.