MinMaxIndx

Minimum and maximum with index

Synopsis

FwStatus   fwsMinMaxIndx_8u ( const Fw8u * pSrcint lenFw8u * pMinint * pMinIndxFw8u * pMaxint * pMaxIndx );
FwStatus   fwsMinMaxIndx_16u ( const Fw16u * pSrcint lenFw16u * pMinint * pMinIndxFw16u * pMaxint * pMaxIndx );
FwStatus   fwsMinMaxIndx_16s ( const Fw16s * pSrcint lenFw16s * pMinint * pMinIndxFw16s * pMaxint * pMaxIndx );
FwStatus   fwsMinMaxIndx_32u ( const Fw32u * pSrcint lenFw32u * pMinint * pMinIndxFw32u * pMaxint * pMaxIndx );
FwStatus   fwsMinMaxIndx_32s ( const Fw32s * pSrcint lenFw32s * pMinint * pMinIndxFw32s * pMaxint * pMaxIndx );
FwStatus   fwsMinMaxIndx_32f ( const Fw32f * pSrcint lenFw32f * pMinint * pMinIndxFw32f * pMaxint * pMaxIndx );
FwStatus   fwsMinMaxIndx_64f ( const Fw64f * pSrcint lenFw64f * pMinint * pMinIndxFw64f * pMaxint * 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.