Method

VipsImageprofile

Declaration [src]

int
vips_profile (
  VipsImage* in,
  VipsImage** columns,
  VipsImage** rows,
  ...
)

Description [src]

vips_profile() searches inward from the edge of in and finds the first non-zero pixel. Pixels in columns have the distance from the top edge to the first non-zero pixel in that column, rows has the distance from the left edge to the first non-zero pixel in that row.

::: seealso vips_project(), vips_hist_find().

Parameters

columns VipsImage
 

Distances from top edge.

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

Distances from left edge.

 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.