Method

VipsImagemeasure

Declaration [src]

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

Description [src]

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.

::: tip “Optional arguments” * left: gint, area of image containing chart * top: gint, area of image containing chart * width: gint, area of image containing chart * height: gint, area of image containing chart

::: seealso vips_avg(), vips_deviate().

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.

... none
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.