Method

VipsImagemeasure

Declaration [src]

int
vips_measure (
  VipsImage* in,
  VipsImage** out,
  int h,
  int v,
  ...
)

Description [src]

Optional arguments:

  • left: area of image containing chart
  • top: area of image containing chart
  • width: area of image containing chart
  • height: area of image containing chart

Analyse a grid of colour patches, producing an array of patch averages. The mask has a row for each measured patch and a column for each image band. The operations issues a warning if any patch has a deviation more than 20% of the mean. Only the central 50% of each patch is averaged.

If the chart does not fill the whole image, use the optional left, top, width, height arguments to indicate the position of the chart.

See also: vips_avg(), vips_deviate().

This method is not directly available to language bindings.

Parameters

out VipsImage
 

Array of measurements.

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

Patches across chart.

v int
 

Patches down chart.

...
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.