Method

VipsImagespectrum

Declaration [src]

int
vips_spectrum (
  VipsImage* in,
  VipsImage** out,
  ...
)

Description [src]

Make a displayable (ie. 8-bit unsigned int) power spectrum.

If in is non-complex, it is transformed to Fourier space. Then the absolute value is passed through vips_scale() in log mode, and vips_wrap().

::: seealso vips_fwfft(), vips_scale(), vips_wrap().

Parameters

out VipsImage
 

Output image.

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

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.