Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ xil_extrema(3) — Solaris 2.4 x86 SDK

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

xil_create(3)

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 bacnd 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 array of floats for min, max must 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

xil_create(3). 
 
 
 

SunOS   —  Last change: 15 June 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026