Method

VipsImagehist_find_ndim

Declaration [src]

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

Description [src]

Optional arguments

  • bins: number of bins to make on each axis

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.

This method is not directly available to language bindings.

Parameters

out

Type: VipsImage

Output image.

The argument will be set by the function.
The caller of the method takes ownership of the returned data, and is responsible for freeing it.
...

Type: 

NULL-terminated list of optional named arguments.

Return value

Type: int

0 on success, -1 on error.