---
name: "im_fractsurf"
section: "3"
platform: "linux"
package: "libvips-dev"
version: "7.20.7-1+b3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/im_fractsurf"
---

# im\_fractsurf(3)

creates a fractal surface

## 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)

## COPYRIGHT

N. Dessipris,

## AUTHOR

N. Dessipris - 06/07/1990
