im_fractsurf

Langue: en

Version: 169992 (fedora - 06/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

im_fractsurf - creates a fractal surface

SYNOPSIS

#include <vips/vips.h>

int im_fractsurf(in, frdim, size)
IMAGE *in;
double frdim;
int size;

DESCRIPTION

im_fractsurf creates a fracta surface. The program initially creates a gaussian noise image (im_gausnoise(3)) of sizes size x size. The image is then filtered (im_flt_image_freq(3)) in order to force the power spectrum to decay according to the desired fractal dimension frdim. The result is a one band float image and should be scaled for display.

RETURN VALUE

The function returns 0 on success and -1 on error.

SEE ALSO

im_flt_image_freq(3), im_gausnoise(3)
N. Dessipris,

AUTHOR

N. Dessipris - 06/07/1990