blur
Blur
¶
Bases: ImageOnlyAlbumentation
Blur the image with a randomly-sized kernel
Parameters:
Name | Type | Description | Default |
---|---|---|---|
inputs
|
Union[str, Iterable[str]]
|
Key(s) of images to be modified. |
required |
outputs
|
Union[str, Iterable[str]]
|
Key(s) into which to write the modified images. |
required |
mode
|
Union[None, str, Iterable[str]]
|
What mode(s) to execute this Op in. For example, "train", "eval", "test", or "infer". To execute regardless of mode, pass None. To execute in all modes except for a particular one, you can pass an argument like "!infer" or "!train". |
None
|
ds_id
|
Union[None, str, Iterable[str]]
|
What dataset id(s) to execute this Op in. To execute regardless of ds_id, pass None. To execute in all ds_ids except for a particular one, you can pass an argument like "!ds1". |
None
|
blur_limit
|
Union[int, Tuple[int, int]]
|
maximum kernel size for blurring the input image. Should be in range [3, inf). |
7
|
advanced
|
bool
|
Implements AdvancedBlur. Only when 'advanced' is set to True, parameters 'sigmaX_limit', 'sigmaY_limit', 'rotate_limit', 'beta_limit' and 'noise_limit' are used. |
False
|
sigmaX_limit
|
Union[float, Tuple[float, float]]
|
Gaussian kernel standard deviation. Must be in range [0, inf). Used only when 'advanced' is True. |
(0.2, 1.0)
|
sigmaY_limit
|
Union[float, Tuple[float, float]]
|
Gaussian kernel standard deviation. Must be in range [0, inf). Used only when 'advanced' is True. |
(0.2, 1.0)
|
rotate_limit
|
Union[int, Tuple[int, int]]
|
Range from which a random angle used to rotate Gaussian kernel is picked. If limit is a single int an angle is picked from (-rotate_limit, rotate_limit). Used only when 'advanced' is True. |
90
|
beta_limit
|
Union[float, Tuple[float, float]]
|
Distribution shape parameter, 1 is the normal distribution. Values below 1.0 make distribution tails heavier than normal, values above 1.0 make it lighter than normal. Used only when 'advanced' is True. |
(0.5, 8.0)
|
noise_limit
|
Union[float, Tuple[float, float]]
|
Multiplicative factor that control strength of kernel noise. Must be positive and preferably centered around 1.0. If set single value noise_limit will be in range (0, noise_limit). Used only when 'advanced' is True |
(0.9, 1.1)
|
Image types
uint8, float32