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.1.5

Reference

Table of Contents  ▸  List of Commands  ▸  Values Manipulation  ▸  set◀  roundify    |    threshold  ▶

set

Built-in command

Arguments:

Description:

Set pixel value in selected images, at specified coordinates.

(equivalent to shortcut command =).


If specified coordinates are outside the image bounds, no action is performed.

Default values:

x=y=z=c=0.

Examples of use:

• Example #1

$ gmic 2,2 set 1,0,0 set 2,1,0 set 3,0,1 set 4,1,1

Command: 2,2 set 1,0,0 set 2,1,0 set 3,0,1 set 4,1,1

• Example #2

$ gmic image.jpg repeat 10000 { set 255,{u(100)}%,{u(100)}%,0,{u(100)}% }

Command: image.jpg repeat 10000 { set 255,{u(100)}%,{u(100)}%,0,{u(100)}% }
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.