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

Determines absolute difference between each pixel of an image and a constant value. More...

Functions

NppStatus nppiAbsDiffC_8u_C1R_Ctx (const Npp8u *pSrc1, int nSrc1Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, Npp8u nConstant, NppStreamContext nppStreamCtx)
 One 8-bit unsigned char channel image absolute difference with constant. More...
 
NppStatus nppiAbsDiffC_8u_C1R (const Npp8u *pSrc1, int nSrc1Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, Npp8u nConstant)
 
NppStatus nppiAbsDiffDeviceC_8u_C1R_Ctx (const Npp8u *pSrc1, int nSrc1Step, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, Npp8u *pConstant, NppStreamContext nppStreamCtx)
 One 8-bit unsigned char channel image absolute difference with constant. More...
 
NppStatus nppiAbsDiffC_16u_C1R_Ctx (const Npp16u *pSrc1, int nSrc1Step, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, Npp16u nConstant, NppStreamContext nppStreamCtx)
 One 16-bit unsigned short channel image absolute difference with constant. More...
 
NppStatus nppiAbsDiffC_16u_C1R (const Npp16u *pSrc1, int nSrc1Step, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, Npp16u nConstant)
 
NppStatus nppiAbsDiffDeviceC_16u_C1R_Ctx (const Npp16u *pSrc1, int nSrc1Step, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, Npp16u *pConstant, NppStreamContext nppStreamCtx)
 One 16-bit unsigned short channel image absolute difference with constant. More...
 
NppStatus nppiAbsDiffC_32f_C1R_Ctx (const Npp32f *pSrc1, int nSrc1Step, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, Npp32f nConstant, NppStreamContext nppStreamCtx)
 One 32-bit floating point channel image absolute difference with constant. More...
 
NppStatus nppiAbsDiffC_32f_C1R (const Npp32f *pSrc1, int nSrc1Step, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, Npp32f nConstant)
 
NppStatus nppiAbsDiffDeviceC_32f_C1R_Ctx (const Npp32f *pSrc1, int nSrc1Step, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, Npp32f *pConstant, NppStreamContext nppStreamCtx)
 One 32-bit floating point channel image absolute difference with constant. More...
 

Detailed Description

Determines absolute difference between each pixel of an image and a constant value.

Note: If you use one of the device constant versions of these functions and the function called immediately preceeding that function generates that device constant you MUST either call cudaStreamSynchronize() or cudaDeviceSynchronize() before calling the device constant function.

Function Documentation

NppStatus nppiAbsDiffC_16u_C1R ( const Npp16u pSrc1,
int  nSrc1Step,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
Npp16u  nConstant 
)
NppStatus nppiAbsDiffC_16u_C1R_Ctx ( const Npp16u pSrc1,
int  nSrc1Step,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
Npp16u  nConstant,
NppStreamContext  nppStreamCtx 
)

One 16-bit unsigned short channel image absolute difference with constant.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
nConstanthost memory constant.
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
NppStatus nppiAbsDiffC_32f_C1R ( const Npp32f pSrc1,
int  nSrc1Step,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI,
Npp32f  nConstant 
)
NppStatus nppiAbsDiffC_32f_C1R_Ctx ( const Npp32f pSrc1,
int  nSrc1Step,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI,
Npp32f  nConstant,
NppStreamContext  nppStreamCtx 
)

One 32-bit floating point channel image absolute difference with constant.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
nConstanthost memory constant.
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
NppStatus nppiAbsDiffC_8u_C1R ( const Npp8u pSrc1,
int  nSrc1Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
Npp8u  nConstant 
)
NppStatus nppiAbsDiffC_8u_C1R_Ctx ( const Npp8u pSrc1,
int  nSrc1Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
Npp8u  nConstant,
NppStreamContext  nppStreamCtx 
)

One 8-bit unsigned char channel image absolute difference with constant.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
nConstanthost memory constant.
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
NppStatus nppiAbsDiffDeviceC_16u_C1R_Ctx ( const Npp16u pSrc1,
int  nSrc1Step,
Npp16u pDst,
int  nDstStep,
NppiSize  oSizeROI,
Npp16u pConstant,
NppStreamContext  nppStreamCtx 
)

One 16-bit unsigned short channel image absolute difference with constant.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
pConstantdevice memory constant.
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
NppStatus nppiAbsDiffDeviceC_32f_C1R_Ctx ( const Npp32f pSrc1,
int  nSrc1Step,
Npp32f pDst,
int  nDstStep,
NppiSize  oSizeROI,
Npp32f pConstant,
NppStreamContext  nppStreamCtx 
)

One 32-bit floating point channel image absolute difference with constant.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
pConstantdevice memory constant.
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
NppStatus nppiAbsDiffDeviceC_8u_C1R_Ctx ( const Npp8u pSrc1,
int  nSrc1Step,
Npp8u pDst,
int  nDstStep,
NppiSize  oSizeROI,
Npp8u pConstant,
NppStreamContext  nppStreamCtx 
)

One 8-bit unsigned char channel image absolute difference with constant.

Parameters
pSrc1Source-Image Pointer.
nSrc1StepSource-Image Line Step.
pConstantdevice memory constant.
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

Copyright © 2009-2022 NVIDIA CORPORATION AND AFFILIATES