noisy(image, ratio, seed=None)
Generates a noisy image by adding random noise to the content_image
Source code in src/artificial_artwork/image/image_operations.py
120 121 122 123 124 125 126 127 128 129 130 131 132 | |
subtract(image, array)
Normalize the input image.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image |
NDArray
|
[description] |
required |
Raises:
| Type | Description |
|---|---|
ShapeMissmatchError
|
in case of ValueError due to numpy broadcasting failing |
Returns:
| Name | Type | Description |
|---|---|---|
NDArray |
NDArray
|
[description] |
Source code in src/artificial_artwork/image/image_operations.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | |