Reference

Table of Contents  ▸  List of Commands  ▸  Values Manipulation  ▸  quantize◀  polar2complex    |    quantize_area  ▶

quantize

Arguments:

Description:

Quantize selected images.

Default values:

keep_values=1 and quantization_type=0.

Examples of use:

• Example #1

$ gmic image.jpg luminance +quantize 3
Command: image.jpg luminance +quantize 3
Command: image.jpg luminance +quantize 3

• Example #2

$ gmic 200,200,1,1,'cos(x/10)*sin(y/10)' +quantize[0] 6 +quantize[0] 4 +quantize[0] 3 +quantize[0] 2
Command: 200,200,1,1,'cos(x/10)*sin(y/10)' +quantize[0] 6 +quantize[0] 4 +quantize[0] 3 +quantize[0] 2
Command: 200,200,1,1,'cos(x/10)*sin(y/10)' +quantize[0] 6 +quantize[0] 4 +quantize[0] 3 +quantize[0] 2
Command: 200,200,1,1,'cos(x/10)*sin(y/10)' +quantize[0] 6 +quantize[0] 4 +quantize[0] 3 +quantize[0] 2
Command: 200,200,1,1,'cos(x/10)*sin(y/10)' +quantize[0] 6 +quantize[0] 4 +quantize[0] 3 +quantize[0] 2
Command: 200,200,1,1,'cos(x/10)*sin(y/10)' +quantize[0] 6 +quantize[0] 4 +quantize[0] 3 +quantize[0] 2