MinMaxIndx

Minimum and maximum with index

Synopsis

FwStatus   fwsMinMaxIndx_8u ( const Fw8u * pSrc, int len, Fw8u * pMin, int * pMinIndx, Fw8u * pMax, int * pMaxIndx );
FwStatus   fwsMinMaxIndx_16u ( const Fw16u * pSrc, int len, Fw16u * pMin, int * pMinIndx, Fw16u * pMax, int * pMaxIndx );
FwStatus   fwsMinMaxIndx_16s ( const Fw16s * pSrc, int len, Fw16s * pMin, int * pMinIndx, Fw16s * pMax, int * pMaxIndx );
FwStatus   fwsMinMaxIndx_32u ( const Fw32u * pSrc, int len, Fw32u * pMin, int * pMinIndx, Fw32u * pMax, int * pMaxIndx );
FwStatus   fwsMinMaxIndx_32s ( const Fw32s * pSrc, int len, Fw32s * pMin, int * pMinIndx, Fw32s * pMax, int * pMaxIndx );
FwStatus   fwsMinMaxIndx_32f ( const Fw32f * pSrc, int len, Fw32f * pMin, int * pMinIndx, Fw32f * pMax, int * pMaxIndx );
FwStatus   fwsMinMaxIndx_64f ( const Fw64f * pSrc, int len, Fw64f * pMin, int * pMinIndx, Fw64f * pMax, int * pMaxIndx );

Parameters

len   Specifies the number of elements in a buffer.
pMax   Pointer to the destination buffer that contains the maximum value in the source buffer.
pMaxIndx   Pointer to the destination buffer that contains the index of the maximum value in the source vector.
pMin   Pointer to the destination buffer that contains the minimum value in the source buffer.
pMinIndx   Pointer to the destination buffer that contains the index of the minimum value in the source buffer.
pSrc   Pointer to a source buffer.

Description

These functions step through vector elements in a source buffer, find the minimum and maximum values and the corresponding indices.

The minimum value, the maximum value, and the indices are written locations specified by pointers.