Function

Vipscheck_matrix

Declaration [src]

int
vips_check_matrix (
  const char* domain,
  VipsImage* im,
  VipsImage** out
)

Description [src]

Matrix images must have width and height less than 100000 and have 1 band.

Return 0 if the image will pass as a matrix, or -1 and set an error message otherwise.

out is set to be im cast to double and stored in memory. Use VIPS_MATRIX() to address values in out.

You must unref out when you are done with it.

See also: VIPS_MATRIX(), vips_object_local()

Parameters

domain 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 VipsImage
 

Image to check.

 The data is owned by the caller of the function.
out VipsImage
 

Put image as in-memory doubles here.

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

Return value

Returns: int
 

0 if OK, -1 otherwise.