gnoise

From DavinciWiki
Jump to: navigation, search


64-bit SafeYes

Description

Generate a cube of mutually exclusive planes of noise.

Arguments and Return Values

Arguments: Three integers designating array size and a seed

Return Value: A numeric array of specified size filled with random noise

Usage

Syntax: gnoise([x = INT] [, y = INT] [, z = INT] [, seed = INT])

The gnoise() function generates Z mutually exclusive planes of uniformly distributed noise. For each X,Y location, exactly 1 pixel along the Z axis is set to a value of 1, producing images of random noise with a frequency of 1/Z. The value seed can be specified to seed the random number generator, to produce reproducible random numbers. The default dimensions are 512x512x10.

Examples

dv> a = gnoise(20,20,20)   
20x20x20 array of byte, bsq format [8,000 bytes]
dv> a = gnoise()
512x512x10 array of byte, bsq format [2,621,440 bytes]

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 04-28-2016

Personal tools