Reference

Table of Contents  ▸  List of Commands  ▸  Values Manipulation  ▸  noise◀  negate    |    noise_perlin  ▶

noise

Built-in command

Arguments:

Description:

Add random noise to selected images.

noise_type can be { 0=gaussian | 1=uniform | 2=salt&pepper | 3=poisson | 4=rice }.

Default values:

noise_type=0.

Examples of use:

• Example #1

$ gmic image.jpg +noise[0] 50,0 +noise[0] 50,1 +noise[0] 10,2 cut 0,255

Command: image.jpg +noise[0] 50,0 +noise[0] 50,1 +noise[0] 10,2 cut 0,255
Command: image.jpg +noise[0] 50,0 +noise[0] 50,1 +noise[0] 10,2 cut 0,255
Command: image.jpg +noise[0] 50,0 +noise[0] 50,1 +noise[0] 10,2 cut 0,255
Command: image.jpg +noise[0] 50,0 +noise[0] 50,1 +noise[0] 10,2 cut 0,255

• Example #2

$ gmic 300,300,1,3 [0] noise[0] 20,0 noise[1] 20,1 +histogram 100 display_graph[-2,-1] 400,300,3

Command: 300,300,1,3 [0] noise[0] 20,0 noise[1] 20,1 +histogram 100 display_graph[-2,-1] 400,300,3
Command: 300,300,1,3 [0] noise[0] 20,0 noise[1] 20,1 +histogram 100 display_graph[-2,-1] 400,300,3
Command: 300,300,1,3 [0] noise[0] 20,0 noise[1] 20,1 +histogram 100 display_graph[-2,-1] 400,300,3
Command: 300,300,1,3 [0] noise[0] 20,0 noise[1] 20,1 +histogram 100 display_graph[-2,-1] 400,300,3