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  ▸  fill◀  equalize    |    index  ▶

fill

Built-in command

Arguments:

Description:

Fill selected images with values read from the specified value list, existing image

or mathematical expression. Single quotes may be omitted in formula.

(equivalent to shortcut command f).

This command has a tutorial page.

Examples of use:

• Example #1

$ gmic 4,4 fill 1,2,3,4,5,6,7

Command: 4,4 fill 1,2,3,4,5,6,7

• Example #2

$ gmic 4,4 (1,2,3,4,5,6,7) fill[-2] [-1]

Command: 4,4 (1,2,3,4,5,6,7) fill[-2] [-1]
Command: 4,4 (1,2,3,4,5,6,7) fill[-2] [-1]

• Example #3

$ gmic 400,400,1,3 fill "X=x-w/2; Y=y-h/2; R=sqrt(X^2+Y^2); a=atan2(Y,X); if(R<=180,255*abs(cos(c+200*(x/w-0.5)*(y/h-0.5))),850*(a%(0.1*(c+1))))"

Command: 400,400,1,3 fill "X=x-w/2; Y=y-h/2; R=sqrt(X^2+Y^2); a=atan2(Y,X); if(R<=180,255*abs(cos(c+200*(x/w-0.5)*(y/h-0.5))),850*(a%(0.1*(c+1))))"
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.