Method

VipsImagehist_find

Declaration [src]

int
vips_hist_find (
  VipsImage* in,
  VipsImage** out,
  ...
)

Description [src]

Find the histogram of in. Find the histogram for band band (producing a one-band histogram), or for all bands (producing an n-band histogram) if band is -1.

char and uchar images are cast to uchar before histogramming, all other image types are cast to ushort.

::: tip “Optional arguments” * band: gint, band to equalise

::: seealso vips_hist_find_ndim(), vips_hist_find_indexed().

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

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.