NVIDIA Performance Primitives (NPP)  Version 9.1

Primitives for computing the maximal value and its indices (X and Y coordinates) of an image. More...

MaxIndx

If there are several maxima in the selected region of interest, the function returns one on the top leftmost position.

The scratch buffer is required by the functions.

Common parameters for nppiMaxIndx functions include:

Parameters
pSrcSource-Image Pointer.
nSrcStepSource-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
pDeviceBufferPointer to the required device memory allocation, Scratch Buffer and Host Pointer Use nppiMaxIndxGetBufferHostSize_XX_XXX to determine the minium number of bytes required.
pMaxPointer to the computed max result.
pIndexXPointer to the X coordinate of the image max value.
pIndexYPpointer to the Y coordinate of the image max value.
Returns
Image Data Related Error Codes, ROI Related Error Codes
NppStatus nppiMaxIndx_8u_C1R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u *pMax, int *pIndexX, int *pIndexY)
 One-channel 8-bit unsigned image MaxIndx. More...
 
NppStatus nppiMaxIndx_16u_C1R (const Npp16u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp16u *pMax, int *pIndexX, int *pIndexY)
 One-channel 16-bit unsigned image MaxIndx. More...
 
NppStatus nppiMaxIndx_16s_C1R (const Npp16s *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp16s *pMax, int *pIndexX, int *pIndexY)
 One-channel 16-bit signed image MaxIndx. More...
 
NppStatus nppiMaxIndx_32f_C1R (const Npp32f *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp32f *pMax, int *pIndexX, int *pIndexY)
 One-channel 32-bit floating point image MaxIndx. More...
 
NppStatus nppiMaxIndx_8u_C3R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u aMax[3], int aIndexX[3], int aIndexY[3])
 Three-channel 8-bit unsigned image MaxIndx. More...
 
NppStatus nppiMaxIndx_16u_C3R (const Npp16u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp16u aMax[3], int aIndexX[3], int aIndexY[3])
 Three-channel 16-bit unsigned image MaxIndx. More...
 
NppStatus nppiMaxIndx_16s_C3R (const Npp16s *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp16s aMax[3], int aIndexX[3], int aIndexY[3])
 Three-channel 16-bit signed image MaxIndx. More...
 
NppStatus nppiMaxIndx_32f_C3R (const Npp32f *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp32f aMax[3], int aIndexX[3], int aIndexY[3])
 Three-channel 32-bit floating point image MaxIndx. More...
 
NppStatus nppiMaxIndx_8u_C4R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u aMax[4], int aIndexX[4], int aIndexY[4])
 Four-channel 8-bit unsigned image MaxIndx. More...
 
NppStatus nppiMaxIndx_16u_C4R (const Npp16u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp16u aMax[4], int aIndexX[4], int aIndexY[4])
 Four-channel 16-bit unsigned image MaxIndx. More...
 
NppStatus nppiMaxIndx_16s_C4R (const Npp16s *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp16s aMax[4], int aIndexX[4], int aIndexY[4])
 Four-channel 16-bit signed image MaxIndx. More...
 
NppStatus nppiMaxIndx_32f_C4R (const Npp32f *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp32f aMax[4], int aIndexX[4], int aIndexY[4])
 Four-channel 32-bit floating point image MaxIndx. More...
 
NppStatus nppiMaxIndx_8u_AC4R (const Npp8u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp8u aMax[3], int aIndexX[3], int aIndexY[3])
 Four-channel 8-bit unsigned image MaxIndx ignoring alpha channel. More...
 
NppStatus nppiMaxIndx_16u_AC4R (const Npp16u *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp16u aMax[3], int aIndexX[3], int aIndexY[3])
 Four-channel 16-bit unsigned image MaxIndx ignoring alpha channel. More...
 
NppStatus nppiMaxIndx_16s_AC4R (const Npp16s *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp16s aMax[3], int aIndexX[3], int aIndexY[3])
 Four-channel 16-bit signed image MaxIndx ignoring alpha channel. More...
 
NppStatus nppiMaxIndx_32f_AC4R (const Npp32f *pSrc, int nSrcStep, NppiSize oSizeROI, Npp8u *pDeviceBuffer, Npp32f aMax[3], int aIndexX[3], int aIndexY[3])
 Four-channel 32-bit floating point image MaxIndx ignoring alpha channel. More...
 

MaxIndxGetBufferHostSize

Companion primitives for computing the device buffer size (in bytes) required by the MaxIndx primitives.

NppStatus nppiMaxIndxGetBufferHostSize_8u_C1R (NppiSize oSizeROI, int *hpBufferSize)
 Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_8u_C1R. More...
 
NppStatus nppiMaxIndxGetBufferHostSize_16u_C1R (NppiSize oSizeROI, int *hpBufferSize)
 Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_16u_C1R. More...
 
NppStatus nppiMaxIndxGetBufferHostSize_16s_C1R (NppiSize oSizeROI, int *hpBufferSize)
 Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_16s_C1R. More...
 
NppStatus nppiMaxIndxGetBufferHostSize_32f_C1R (NppiSize oSizeROI, int *hpBufferSize)
 Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_32f_C1R. More...
 
NppStatus nppiMaxIndxGetBufferHostSize_8u_C3R (NppiSize oSizeROI, int *hpBufferSize)
 Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_8u_C3R. More...
 
NppStatus nppiMaxIndxGetBufferHostSize_16u_C3R (NppiSize oSizeROI, int *hpBufferSize)
 Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_16u_C3R. More...
 
NppStatus nppiMaxIndxGetBufferHostSize_16s_C3R (NppiSize oSizeROI, int *hpBufferSize)
 Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_16s_C3R. More...
 
NppStatus nppiMaxIndxGetBufferHostSize_32f_C3R (NppiSize oSizeROI, int *hpBufferSize)
 Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_32f_C3R. More...
 
NppStatus nppiMaxIndxGetBufferHostSize_8u_C4R (NppiSize oSizeROI, int *hpBufferSize)
 Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_8u_C4R. More...
 
NppStatus nppiMaxIndxGetBufferHostSize_16u_C4R (NppiSize oSizeROI, int *hpBufferSize)
 Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_16u_C4R. More...
 
NppStatus nppiMaxIndxGetBufferHostSize_16s_C4R (NppiSize oSizeROI, int *hpBufferSize)
 Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_16s_C4R. More...
 
NppStatus nppiMaxIndxGetBufferHostSize_32f_C4R (NppiSize oSizeROI, int *hpBufferSize)
 Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_32f_C4R. More...
 
NppStatus nppiMaxIndxGetBufferHostSize_8u_AC4R (NppiSize oSizeROI, int *hpBufferSize)
 Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_8u_AC4R. More...
 
NppStatus nppiMaxIndxGetBufferHostSize_16u_AC4R (NppiSize oSizeROI, int *hpBufferSize)
 Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_8u_AC4R. More...
 
NppStatus nppiMaxIndxGetBufferHostSize_16s_AC4R (NppiSize oSizeROI, int *hpBufferSize)
 Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_16u_AC4R. More...
 
NppStatus nppiMaxIndxGetBufferHostSize_32f_AC4R (NppiSize oSizeROI, int *hpBufferSize)
 Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_32f_AC4R. More...
 

Detailed Description

Primitives for computing the maximal value and its indices (X and Y coordinates) of an image.

Function Documentation

NppStatus nppiMaxIndx_16s_AC4R ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp16s  aMax[3],
int  aIndexX[3],
int  aIndexY[3] 
)

Four-channel 16-bit signed image MaxIndx ignoring alpha channel.

For common parameter descriptions, see Common parameters for nppiMaxIndx functions.

NppStatus nppiMaxIndx_16s_C1R ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp16s pMax,
int *  pIndexX,
int *  pIndexY 
)

One-channel 16-bit signed image MaxIndx.

For common parameter descriptions, see Common parameters for nppiMaxIndx functions.

NppStatus nppiMaxIndx_16s_C3R ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp16s  aMax[3],
int  aIndexX[3],
int  aIndexY[3] 
)

Three-channel 16-bit signed image MaxIndx.

For common parameter descriptions, see Common parameters for nppiMaxIndx functions.

NppStatus nppiMaxIndx_16s_C4R ( const Npp16s pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp16s  aMax[4],
int  aIndexX[4],
int  aIndexY[4] 
)

Four-channel 16-bit signed image MaxIndx.

For common parameter descriptions, see Common parameters for nppiMaxIndx functions.

NppStatus nppiMaxIndx_16u_AC4R ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp16u  aMax[3],
int  aIndexX[3],
int  aIndexY[3] 
)

Four-channel 16-bit unsigned image MaxIndx ignoring alpha channel.

For common parameter descriptions, see Common parameters for nppiMaxIndx functions.

NppStatus nppiMaxIndx_16u_C1R ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp16u pMax,
int *  pIndexX,
int *  pIndexY 
)

One-channel 16-bit unsigned image MaxIndx.

For common parameter descriptions, see Common parameters for nppiMaxIndx functions.

NppStatus nppiMaxIndx_16u_C3R ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp16u  aMax[3],
int  aIndexX[3],
int  aIndexY[3] 
)

Three-channel 16-bit unsigned image MaxIndx.

For common parameter descriptions, see Common parameters for nppiMaxIndx functions.

NppStatus nppiMaxIndx_16u_C4R ( const Npp16u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp16u  aMax[4],
int  aIndexX[4],
int  aIndexY[4] 
)

Four-channel 16-bit unsigned image MaxIndx.

For common parameter descriptions, see Common parameters for nppiMaxIndx functions.

NppStatus nppiMaxIndx_32f_AC4R ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp32f  aMax[3],
int  aIndexX[3],
int  aIndexY[3] 
)

Four-channel 32-bit floating point image MaxIndx ignoring alpha channel.

For common parameter descriptions, see Common parameters for nppiMaxIndx functions.

NppStatus nppiMaxIndx_32f_C1R ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp32f pMax,
int *  pIndexX,
int *  pIndexY 
)

One-channel 32-bit floating point image MaxIndx.

For common parameter descriptions, see Common parameters for nppiMaxIndx functions.

NppStatus nppiMaxIndx_32f_C3R ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp32f  aMax[3],
int  aIndexX[3],
int  aIndexY[3] 
)

Three-channel 32-bit floating point image MaxIndx.

For common parameter descriptions, see Common parameters for nppiMaxIndx functions.

NppStatus nppiMaxIndx_32f_C4R ( const Npp32f pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp32f  aMax[4],
int  aIndexX[4],
int  aIndexY[4] 
)

Four-channel 32-bit floating point image MaxIndx.

For common parameter descriptions, see Common parameters for nppiMaxIndx functions.

NppStatus nppiMaxIndx_8u_AC4R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u  aMax[3],
int  aIndexX[3],
int  aIndexY[3] 
)

Four-channel 8-bit unsigned image MaxIndx ignoring alpha channel.

For common parameter descriptions, see Common parameters for nppiMaxIndx functions.

NppStatus nppiMaxIndx_8u_C1R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u pMax,
int *  pIndexX,
int *  pIndexY 
)

One-channel 8-bit unsigned image MaxIndx.

For common parameter descriptions, see Common parameters for nppiMaxIndx functions.

NppStatus nppiMaxIndx_8u_C3R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u  aMax[3],
int  aIndexX[3],
int  aIndexY[3] 
)

Three-channel 8-bit unsigned image MaxIndx.

For common parameter descriptions, see Common parameters for nppiMaxIndx functions.

NppStatus nppiMaxIndx_8u_C4R ( const Npp8u pSrc,
int  nSrcStep,
NppiSize  oSizeROI,
Npp8u pDeviceBuffer,
Npp8u  aMax[4],
int  aIndexX[4],
int  aIndexY[4] 
)

Four-channel 8-bit unsigned image MaxIndx.

For common parameter descriptions, see Common parameters for nppiMaxIndx functions.

NppStatus nppiMaxIndxGetBufferHostSize_16s_AC4R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_16u_AC4R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiMaxIndxGetBufferHostSize_16s_C1R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_16s_C1R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiMaxIndxGetBufferHostSize_16s_C3R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_16s_C3R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiMaxIndxGetBufferHostSize_16s_C4R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_16s_C4R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiMaxIndxGetBufferHostSize_16u_AC4R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_8u_AC4R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiMaxIndxGetBufferHostSize_16u_C1R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_16u_C1R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiMaxIndxGetBufferHostSize_16u_C3R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_16u_C3R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiMaxIndxGetBufferHostSize_16u_C4R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_16u_C4R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiMaxIndxGetBufferHostSize_32f_AC4R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_32f_AC4R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiMaxIndxGetBufferHostSize_32f_C1R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_32f_C1R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiMaxIndxGetBufferHostSize_32f_C3R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_32f_C3R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiMaxIndxGetBufferHostSize_32f_C4R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_32f_C4R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiMaxIndxGetBufferHostSize_8u_AC4R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_8u_AC4R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiMaxIndxGetBufferHostSize_8u_C1R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_8u_C1R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiMaxIndxGetBufferHostSize_8u_C3R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_8u_C3R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.

NppStatus nppiMaxIndxGetBufferHostSize_8u_C4R ( NppiSize  oSizeROI,
int *  hpBufferSize 
)

Computes the dvice scratch buffer size (in bytes) for nppiMaxIndx_8u_C4R.

For common parameter descriptions, see CommonGetBufferHostSizeParameters.


Copyright © 2009-2017 NVIDIA Corporation