G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing

Reference

# noise

Built-in command

## Arguments:

• amplitude>=0[%],_noise_type

## Description:

Add random noise to selected images.

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

noise_type=0.

## Examples of use:

### • Example #1

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

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
G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing