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/02)

Reference

Table of Contents  ▸  List of Commands  ▸  Values Manipulation  ▸  rand◀  quantize_area    |    rand_sum  ▶

rand

Built-in command

Arguments:

Description:

Fill selected images with random values in the specified range.

If no [pdf] (probability density function) is specified, random values follow a uniform distribution.
Argument precision tells about the number of distinct values that can be generated when a [pdf] is specified.

Examples of use:

• Example #1

400,400,1,3 rand -10,10 +blur 10 sign[-1]

Command: 400,400,1,3 rand -10,10 +blur 10 sign[-1]
Command: 400,400,1,3 rand -10,10 +blur 10 sign[-1]

• Example #2

(8,2,1) 50,50 rand[-1] 0,255,[-2]

Command: (8,2,1) 50,50 rand[-1] 0,255,[-2]
Command: (8,2,1) 50,50 rand[-1] 0,255,[-2]

• Example #3

256 gaussian[-1] 30 line[-1] 47%,0,53%,0,1,0 500,500 rand[-1] 0,255,[-2] +histogram[-1] 256 display_graph[0,2] 640,480,3,0

Command: 256 gaussian[-1] 30 line[-1] 47%,0,53%,0,1,0 500,500 rand[-1] 0,255,[-2] +histogram[-1] 256 display_graph[0,2] 640,480,3,0
Command: 256 gaussian[-1] 30 line[-1] 47%,0,53%,0,1,0 500,500 rand[-1] 0,255,[-2] +histogram[-1] 256 display_graph[0,2] 640,480,3,0
Command: 256 gaussian[-1] 30 line[-1] 47%,0,53%,0,1,0 500,500 rand[-1] 0,255,[-2] +histogram[-1] 256 display_graph[0,2] 640,480,3,0
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.