Constructor

VipsImagemask_ideal_ring

Declaration [src]

int
vips_mask_ideal_ring (
  VipsImage** out,
  int width,
  int height,
  double frequency_cutoff,
  double ringwidth,
  ...
)

Description [src]

Make an ideal ring-pass or ring-reject filter, that is, one with a sharp ring positioned at frequency_cutoff of width width, where frequency_cutoff and width are expressed as the range 0 - 1.

::: 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.

frequency_cutoff double
 

Threshold at which filter ends.

ringwidth double
 

Ring width.

... none
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.