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

A Full-Featured Open-Source Framework for Image Processing



Latest stable version: 3.4.3        Current pre-release: 3.5.0 (2024/12/18)

Reference

Table of Contents  ▸  List of Commands  ▸  Mathematical Operators  ▸  mul◀  mmul    |    neq  ▶

mul

Built-in command

Arguments:

Description:

Multiply selected images by specified value, image or mathematical expression, or compute the pointwise product of selected images.

(equivalent to shortcut command *).

See also:

add, sub, div.

Examples of use:

• Example #1

image.jpg +mul 2 cut 0,255

Command: image.jpg +mul 2 cut 0,255
Command: image.jpg +mul 2 cut 0,255

• Example #2

image.jpg (1,2,3,4,5,6,7,8) ri[-1] [0] mul[0] [-1]

Command: image.jpg (1,2,3,4,5,6,7,8) ri[-1] [0] mul[0] [-1]
Command: image.jpg (1,2,3,4,5,6,7,8) ri[-1] [0] mul[0] [-1]

• Example #3

image.jpg mul '1-3*abs(x/w-0.5)' cut 0,255

Command: image.jpg mul '1-3*abs(x/w-0.5)' cut 0,255

• Example #4

image.jpg +luminance negate[-1] +mul

Command: image.jpg +luminance negate[-1] +mul
Command: image.jpg +luminance negate[-1] +mul
Command: image.jpg +luminance negate[-1] +mul
G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing

G'MIC is an open-source software distributed under the CeCILL free software licenses (LGPL-like and/or
GPL-compatible). Copyrights (C) Since July 2008, David Tschumperlé - GREYC UMR CNRS 6072, Image Team.