xil_extrema(3)
NAME
xil_extrema − find maximum and minimum values of an image
SYNOPSIS
#include <xil/xil.h>
void xil_extrema (XilImage src,
float ∗max,
float ∗min);
DESCRIPTION
This function finds the maximum and minimum pixel values in each band of an image. src is the source image handle. max is a pointer to the floating-point array that holds the maximum value [0...nbands]. min is a pointer to the floating-point array that holds the minimum value [0...nbands].
ERRORS
For a complete list of XIL error messages by number, consult Appendix B of the XIL Programmer’s Guide.
EXAMPLES
Find the maximum and minimum pixel values in a 2-banded image:
XilImage src;
float max[2];
float min[2];
xil_extrema(src, max, min);
NOTES
For an n-band image, the arrays of floats for min, max must each be of size n, because each band is independently evaluated. If the maximum pointer is NULL, only the minimum is computed. If the minimum pointer is NULL, only the maximum is computed.
SEE ALSO
SunOS 5.6 — Last change: 15 June 1993