Constructor

VipsImagemask_fractal

Declaration [src]

int
vips_mask_fractal (
  VipsImage** out,
  int width,
  int height,
  double fractal_dimension,
  ...
)

Description [src]

This operation should be used to create fractal images by filtering the power spectrum of Gaussian white noise.

See vips_gaussnoise().

::: tip “Optional arguments” * nodc: gboolean, don’t set the DC pixel * reject: gboolean, invert the filter sense * optical: gboolean, coordinates in optical space * uchar: gboolean, output a uchar image

::: seealso vips_mask_ideal().

Parameters

out VipsImage
 

Output image.

 The argument will be set by the function.
 The called function takes ownership of the data, and is responsible for freeing it.
width int
 

Image size.

height int
 

Image size.

fractal_dimension double
 

Fractal dimension.

... none
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.