Method

VipsImageextract_band

Declaration [src]

int
vips_extract_band (
  VipsImage* in,
  VipsImage** out,
  int band,
  ...
)

Description [src]

Optional arguments:

  • n: number of bands to extract

Extract a band or bands from an image. Extracting out of range is an error.

See also: vips_extract_area().

This method is not directly available to language bindings.

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.
band int
 

Band to extract.

...
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.