y5gfunc.filter.noise¶
noise
¶
Functions:
| Name | Description |
|---|---|
add_noise |
Add Gaussian noise to a video clip using NumPy. |
add_noise
¶
Add Gaussian noise to a video clip using NumPy.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
VideoNode
|
The input video clip. |
required |
|
Union[int, float] | list[Union[int, float]]
|
Noise strength defined as the standard deviation of the AWGN component, implying \(Noise \sim \mathcal{N}(0, \sigma^2)\) on a \(0\text{-}255\) scale. |
5
|
Returns:
| Type | Description |
|---|---|
VideoNode
|
A new clip with the added noise. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If sigma values are not positive |
ValueError
|
If sigma is not a single value or the length of sigma list does not match the number of planes in the clip. |