Function

Vipscheck_hist

Declaration [src]

int
vips_check_hist (
  const char* domain,
  VipsImage* im
)

Description [src]

Histogram images must have width or height 1, and must not have more than 65536 elements. Return 0 if the image will pass as a histogram, or -1 and set an error message otherwise.

See also

vips_error().

Parameters

domain

Type: const char*

The originating domain for the error message.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
im

Type: VipsImage

Image to check.

The data is owned by the caller of the function.

Return value

Type: int

0 if OK, -1 otherwise.