NVIDIA 2D Image And Signal Performance Primitives (NPP)
Version 11.8..*
|
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... |
|
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.
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.
pSrc1 | Source-Image Pointer. |
nSrc1Step | Source-Image Line Step. |
nConstant | host memory constant. |
pDst | Destination-Image Pointer. |
nDstStep | Destination-Image Line Step. |
oSizeROI | Region-of-Interest (ROI). |
nppStreamCtx | Application Managed Stream Context. |
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.
pSrc1 | Source-Image Pointer. |
nSrc1Step | Source-Image Line Step. |
nConstant | host memory constant. |
pDst | Destination-Image Pointer. |
nDstStep | Destination-Image Line Step. |
oSizeROI | Region-of-Interest (ROI). |
nppStreamCtx | Application Managed Stream Context. |
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.
pSrc1 | Source-Image Pointer. |
nSrc1Step | Source-Image Line Step. |
nConstant | host memory constant. |
pDst | Destination-Image Pointer. |
nDstStep | Destination-Image Line Step. |
oSizeROI | Region-of-Interest (ROI). |
nppStreamCtx | Application Managed Stream Context. |
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.
pSrc1 | Source-Image Pointer. |
nSrc1Step | Source-Image Line Step. |
pConstant | device memory constant. |
pDst | Destination-Image Pointer. |
nDstStep | Destination-Image Line Step. |
oSizeROI | Region-of-Interest (ROI). |
nppStreamCtx | Application Managed Stream Context. |
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.
pSrc1 | Source-Image Pointer. |
nSrc1Step | Source-Image Line Step. |
pConstant | device memory constant. |
pDst | Destination-Image Pointer. |
nDstStep | Destination-Image Line Step. |
oSizeROI | Region-of-Interest (ROI). |
nppStreamCtx | Application Managed Stream Context. |
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.
pSrc1 | Source-Image Pointer. |
nSrc1Step | Source-Image Line Step. |
pConstant | device memory constant. |
pDst | Destination-Image Pointer. |
nDstStep | Destination-Image Line Step. |
oSizeROI | Region-of-Interest (ROI). |
nppStreamCtx | Application Managed Stream Context. |