Woolz Image Processing  Version 1.7.5
AlgRange

Files

file  AlgRange.c
 Provides functions for computing the range of values within a given array.
 

Functions

AlgError AlgRange1D (int datASz, double *datA, double *dstMin, double *dstMax)
 Computes the range of the given data, ie it's minimum and maximum values. More...
 
AlgError AlgRangeIdx1D (double *datA, int idxASz, int *idxA, double *dstMin, double *dstMax)
 Computes the range of the given indexed data, ie it's minimum and maximum values. More...
 

Detailed Description

Function Documentation

AlgError AlgRange1D ( int  datASz,
double *  datA,
double *  dstMin,
double *  dstMax 
)

Computes the range of the given data, ie it's minimum and maximum values.

Returns
Error code.
Parameters
datASzNumber of elements in given data array.
datAData array to examine for minimum and maximum values.
dstMinDestination ptr for minimum value, may be NULL.
dstMaxDestination ptr for maximum value, may be NULL.

References ALG_ERR_FUNC, and ALG_ERR_NONE.

AlgError AlgRangeIdx1D ( double *  datA,
int  idxASz,
int *  idxA,
double *  dstMin,
double *  dstMax 
)

Computes the range of the given indexed data, ie it's minimum and maximum values.

Returns
Error code.
Parameters
datAData array to examine for minimum and maximum values.
idxASzNumber of elements in given index array.
idxAIndex array with indicies into the data buffer for the values to examine.
dstMinDestination ptr for minimum value, may be NULL.
dstMaxDestination ptr for maximum value, may be NULL.

References ALG_ERR_FUNC, and ALG_ERR_NONE.