NVIDIA 2D Image And Signal Performance Primitives (NPP)  Version 11.7.1.*
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
Extract Channel Copy

The channel extract primitives copy a single color channel from a multi-channel source image to singl-channel destination image. More...

Functions

NppStatus nppiCopy_8u_C3C1R_Ctx (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Three-channel to single-channel 8-bit unsigned image copy. More...
 
NppStatus nppiCopy_8u_C3C1R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 
NppStatus nppiCopy_8u_C4C1R_Ctx (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four-channel to single-channel 8-bit unsigned image copy. More...
 
NppStatus nppiCopy_8u_C4C1R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI)
 
NppStatus nppiCopy_16s_C3C1R_Ctx (const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Three-channel to single-channel 16-bit signed image copy. More...
 
NppStatus nppiCopy_16s_C3C1R (const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI)
 
NppStatus nppiCopy_16s_C4C1R_Ctx (const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four-channel to single-channel 16-bit signed image copy. More...
 
NppStatus nppiCopy_16s_C4C1R (const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI)
 
NppStatus nppiCopy_16u_C3C1R_Ctx (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Three-channel to single-channel 16-bit unsigned image copy. More...
 
NppStatus nppiCopy_16u_C3C1R (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI)
 
NppStatus nppiCopy_16u_C4C1R_Ctx (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four-channel to single-channel 16-bit unsigned image copy. More...
 
NppStatus nppiCopy_16u_C4C1R (const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI)
 
NppStatus nppiCopy_32s_C3C1R_Ctx (const Npp32s *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Three-channel to single-channel 32-bit signed image copy. More...
 
NppStatus nppiCopy_32s_C3C1R (const Npp32s *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, NppiSize oSizeROI)
 
NppStatus nppiCopy_32s_C4C1R_Ctx (const Npp32s *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four-channel to single-channel 32-bit signed image copy. More...
 
NppStatus nppiCopy_32s_C4C1R (const Npp32s *pSrc, int nSrcStep, Npp32s *pDst, int nDstStep, NppiSize oSizeROI)
 
NppStatus nppiCopy_32f_C2C1R_Ctx (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Two-channel to single-channel 32-bit float image copy. More...
 
NppStatus nppiCopy_32f_C2C1R (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 
NppStatus nppiCopy_32f_C3C1R_Ctx (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Three-channel to single-channel 32-bit float image copy. More...
 
NppStatus nppiCopy_32f_C3C1R (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 
NppStatus nppiCopy_32f_C4C1R_Ctx (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
 Four-channel to single-channel 32-bit float image copy. More...
 
NppStatus nppiCopy_32f_C4C1R (const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI)
 

Detailed Description

The channel extract primitives copy a single color channel from a multi-channel source image to singl-channel destination image.

The channel is selected by adjusting the source image pointer to point to the desired color channel (see Channel-of-Interest API).

Common parameters for nppiCopy_CXC1 functions include:

Parameters
pSrcSelect-Channel Source-Image Pointer.
nSrcStepSource-Image Line Step.
pDstDestination-Image Pointer.
nDstStepDestination-Image Line Step.
oSizeROIRegion-of-Interest (ROI).
nppStreamCtxApplication Managed Stream Context.
Returns
Image Data Related Error Codes, ROI Related Error Codes

Function Documentation

NppStatus nppiCopy_16s_C3C1R ( const Npp16s pSrc,
int  nSrcStep,
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiCopy_16s_C3C1R_Ctx ( const Npp16s pSrc,
int  nSrcStep,
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Three-channel to single-channel 16-bit signed image copy.

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

NppStatus nppiCopy_16s_C4C1R ( const Npp16s pSrc,
int  nSrcStep,
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiCopy_16s_C4C1R_Ctx ( const Npp16s pSrc,
int  nSrcStep,
Npp16s pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four-channel to single-channel 16-bit signed image copy.

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

NppStatus nppiCopy_16u_C3C1R ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiCopy_16u_C3C1R_Ctx ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Three-channel to single-channel 16-bit unsigned image copy.

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

NppStatus nppiCopy_16u_C4C1R ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiCopy_16u_C4C1R_Ctx ( const Npp16u pSrc,
int  nSrcStep,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four-channel to single-channel 16-bit unsigned image copy.

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

NppStatus nppiCopy_32f_C2C1R ( const Npp32f pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiCopy_32f_C2C1R_Ctx ( const Npp32f pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Two-channel to single-channel 32-bit float image copy.

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

NppStatus nppiCopy_32f_C3C1R ( const Npp32f pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiCopy_32f_C3C1R_Ctx ( const Npp32f pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Three-channel to single-channel 32-bit float image copy.

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

NppStatus nppiCopy_32f_C4C1R ( const Npp32f pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiCopy_32f_C4C1R_Ctx ( const Npp32f pSrc,
int  nSrcStep,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four-channel to single-channel 32-bit float image copy.

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

NppStatus nppiCopy_32s_C3C1R ( const Npp32s pSrc,
int  nSrcStep,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiCopy_32s_C3C1R_Ctx ( const Npp32s pSrc,
int  nSrcStep,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Three-channel to single-channel 32-bit signed image copy.

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

NppStatus nppiCopy_32s_C4C1R ( const Npp32s pSrc,
int  nSrcStep,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiCopy_32s_C4C1R_Ctx ( const Npp32s pSrc,
int  nSrcStep,
Npp32s pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four-channel to single-channel 32-bit signed image copy.

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

NppStatus nppiCopy_8u_C3C1R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiCopy_8u_C3C1R_Ctx ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Three-channel to single-channel 8-bit unsigned image copy.

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

NppStatus nppiCopy_8u_C4C1R ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI 
)
NppStatus nppiCopy_8u_C4C1R_Ctx ( const Npp8u pSrc,
int  nSrcStep,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
NppStreamContext  nppStreamCtx 
)

Four-channel to single-channel 8-bit unsigned image copy.

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


Copyright © 2009-2022 NVIDIA CORPORATION AND AFFILIATES