Vips.Image.hist_find_ndim

### Method

# Vips Imagehist_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.

Optional arguments

- `bins`: `gint`, number of bins to make on each axis

See also

`vips_hist_find()`, `vips_hist_find_indexed()`.

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.