im_minpos_vec(3)

im_minpos_vec3

Find highest or lowest pixel values

Part of im_maxpos_vec(3).

Usage

#include <vips/vips.h>

int im_maxpos_vec( IMAGE *im, int *xpos, int *ypos, double *maxima, int n );
int im_minpos_vec( IMAGE *im, int *xpos, int *ypos, double *minima, int n );

Overview

im_maxpos_vec(3) fills the arrays xpos and ypos with the x and y coordinates of the n pixels in the image im which have the highest values. It writes those values (at double-precsion) into the corresponding elements in the array maxima.

If there is a draw for the nth pixel, then which of the drawing pixels is used is not defined.

im_minpos_vec(3) performs the same operation, looking for the lowest valued pixels.

Return value

The functions returns 0 on success and -1 on error.

Releases

Unchanged in 2 releases since Debian 5.0 (Lenny).

  1. 5.0–6.0

Author

Tom Vajzovic

From libvips-dev 7.20.7-1+b3 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.