Method
VipsImagepercent
Declaration [src]
int
vips_percent (
VipsImage* in,
double percent,
int* threshold,
...
)
Description [src]
vips_percent()
returns (through the threshold
parameter) the threshold
below which there are percent
values of in
. For example:
$ vips percent k2.jpg 90
214
Means that 90% of pixels in k2.jpg
have a value less than 214.
The function works for uchar and ushort images only. It can be used to threshold the scaled result of a filtering operation.
See also
This method is not directly available to language bindings.