Transformations Collection

No.

name

source

category

structural

CV-HAZOP entry

note

parameters range

1

Gaussian Noise

imagenet-c

noise

Y

Observer, Quality

Selected

std: (0, 1.5)

2

Shot Noise

imagenet-c

noise

Y

Observer, Quality

Selected

rate (int): (1000, 1]

3

Impulse Noise

imagenet-c

noise

Y

Observer, Quality

Selected

amount: (0, 1)

4

Defocus Blur

imagenet-c

blur

Y

Observer, Focusing (Less)

Selected

radius(int): (1, 10); alias_blur: (0, 1)

5

Frosted Glass Blur

imagenet-c

blur

Y

Medium, Texture

Selected

sigma: (0, 5), max_delta (int):(1, 4) (this doesn’t matter that much), iterations=2

6

Motion Blur

imagenet-c

blur

Y

Observer, Focusing (Less)

Selected

radius(int): (1, 20), sigma: (1, 20)

7

Zoom Blur

imagenet-c

Not Applicable

8

Snow

imagenet-c

weather

Y

Medium, Texture

Selected

location: (0,1), scale: (0,1), zoom: (0, 4), snow_layer_threshold: (0,1), blur_radius (int): (1, 20), blur_sigma: (1, 20)

9

Frost

imagenet-c

weather

Y

Medium, Texture

Selected

scale: (0,1), constant: (0,1)

10

Fog

imagenet-c

weather

Y

Medium, Texture

Selected

scale: (1, 5), wibbledecay: (5, 1)

11

Brightness

imagenet-c

contrast/brightness

N

Medium, Transparency

Selected

constant: (0, 1)

12

Contrast

imagenet-c

contrast/brightness

N

Light Sources, Intensity

Selected

scale: (0, 1)

13

Elastic

imagenet-c

Not Applicable

14

Pixelate

imagenet-c

Not Applicable

15

JPEG

imagenet-c

digital categories

Y

Observer, Quantization/Sampling

Selected

quality(int): (1, 150)

16

Blur

albumentations

blur

Y

Observer, Focusing (Less)

Selected

blur_limit:(), in the function it has to be blur_limit=[3, 15] for it to work

17

CLAHE

albumentations

Not in any category

18

ChannelDropout

albumentations

no continuous range

19

ChannelShuffle

albumentations

no continuous range

20

ColorJitter

albumentations

contrast/brightness

N

Light Sources, Intensity + Spectrum; Medium, Transparency

Selected (combination)

brightness: (0,1), contrast: (0,1), saturation: (0,1), hue: (0,1), to disable set to 1, to use this range set to 0

21

Downscale

albumentations

digital categories

Y

Observer, Quantization/Sampling

Selected

scale_min=scale_max: (0,1), interpolation=0

22

Emboss

albumentations

Not in any category

23

Equalize

albumentations

no continuous range

24

FDA

albumentations

Not Applicable (uses reference image)

25

FancyPCA

albumentations

Not relevant (a transformation for NN training)

26

FromFloat

albumentations

no continuous range

27

GaussNoise

albumentations

same as No.1

28

GaussianBlur

albumentations

blur

Y

Observer, Focusing (Less)

Selected

kernel_size(int):[3, 20], sigma: [0, 5], they can’t both be 0

29

GlassBlur

albumentations

same as No.5

30

HistogramMatching

albumentations

Not Applicable (uses reference image)

31

HueSaturationValue?

albumentations

contrast/brightness

N

Light Sources, Spectrum

Selected (combination)?

hue_shift_limit:[-100,100], sat_shift_limit:[-100,100], val_shift_limit:[-100,100]

32

ISONoise

albumentations

noise

Y

Observer, Quality

Selected

color_shift=(0.01, 1) intensity=(0.1, 5)

33

ImageCompression

albumentations

digital categories

Y

Observer, Quantization/Sampling

Selected

compression_type should be ImageCompressionType.WEBP, otherwise it’s the same as JPEG, 0 <= quality_lower <= quality_upper <= 100 (int)

34

InvertImg

albumentations

no continuous range

35

MedianBlur

albumentations

blur

Y

Observer, Focusing (Less)

Selected

blur_limit (int): [3, 20]

36

MotionBlur

albumentations

same as No.6

37

MultiplicativeNoise

albumentations

description does not match the effect of the transformation

38

Normalize

albumentations

no continuous range

39

Posterize

albumentations

no continuous range

40

RGBShift

albumentations

contrast/brightness

N

Light Sources, Spectrum

Selected (combination)

r_shift_limit: [-100,100], g_shift_limit: [-100,100], b_shift_limit: [-100,100]

41

RandomBrightnessContrast

albumentations

contrast/brightness

N

Light Sources, Intensity; Medium, Transparency

Selected (combination)

brightness_limit: 1, contrast_limit: 1 (the function takes in only the upper limit)

42

RandomFog (not so good)?

albumentations

same as No.10

-8

43

RandomGamma

albumentations

contrast/brightness

N

Light Sources, Intensity

Selected

gamma_limit=(0, 300) (gamma can be negative but does not make much sense and sometimes there is zero division)

44

RandomShadow

albumentations

Not realistic

45

RandomRain

albumentations

weather

N

Medium, Transparency/Light Sources, Intensity

Selected

only ones that matter (I think): blur_value=7, brightness_coefficient=1

46

RandomSnow

albumentations

Not realistic

47

RandomSunFlare

albumentations

weather

N

Medium, Transparency/Light Sources, Intensity

Selected

flare_roi=(0, 0, 1, 0.5), angle_lower=0, angle_upper=1, num_flare_circles_lower=6, num_flare_circles_upper=10, src_radius=1500, src_color=(255, 255, 255) (the only param that kind of matters is src_radius, which is the size of the glare)

48

RandomToneCurve?

albumentations

contrast/brightness

N

Light Sources, Intensity

Selected?

scale: (0,1)

49

Sharpen

albumentations

Not in any category

50

Solarize

albumentations

Not relevant

51

Superpixels

albumentations

Not relevant

52

ToFloat

albumentations

no continuous range

53

ToGray

albumentations

no continuous range

54

ToSepia

albumentations

Not relevant

  • In total: 54 transformations; 49 unique ones; 45 relevant (correspond to CV-HAZOP); 40 applicable ones; 31 with continuous range; 29 realistic; 26 in the categories we selected

  • The two extra ones are: HueSaturationValue, RandomToneCurve (not sure about them)