Method

VipsImagehist_find_ndim

Declaration [src]

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

Description [src]

Make a one, two or three dimensional histogram of a 1, 2 or 3 band image. Divide each axis into bins bins .. ie. output is 1 x bins, bins x bins, or bins x bins x bins bands. bins defaults to 10.

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

::: tip “Optional arguments” * bins: gint, number of bins to make on each axis

::: seealso vips_hist_find(), 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.