Constructor

VipsImagemask_ideal_band

Declaration [src]

int
vips_mask_ideal_band (
  VipsImage** out,
  int width,
  int height,
  double frequency_cutoff_x,
  double frequency_cutoff_y,
  double radius,
  ...
)

Description [src]

Make an ideal band-pass or band-reject filter, that is, one with a sharp cutoff around the point frequency_cutoff_x, frequency_cutoff_y, of size radius.

::: 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_x double
 

Position of band.

frequency_cutoff_y double
 

Position of band.

radius double
 

Size of band.

... none
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.