Method
VipsImagesmartcrop
Declaration [src]
int
vips_smartcrop (
VipsImage* in,
VipsImage** out,
int width,
int height,
...
)
Description [src]
Optional arguments:
interesting
:VipsInteresting
to use to find interesting areas (default: #VIPS_INTERESTING_ATTENTION)
Crop an image down to a specified width and height by removing boring parts.
Use interesting
to pick the method vips uses to decide which bits of the
image should be kept.
You can test xoffset / yoffset on out
to find the location of the crop
within the input image.
See also: vips_extract_area().
This method is not directly available to language bindings. |
Parameters
out |
VipsImage |
Output image. |
|
The argument will be set by the function. | |
The instance takes ownership of the data, and is responsible for freeing it. | |
width |
int |
Width of area to extract. |
|
height |
int |
Height of area to extract. |
|
... |
|
|