Image Arithmetic And Logical Operations Functions
These functions can be found in the nppial library.
Linking to only the sub-libraries that you use can significantly save link time, application load time, and CUDA runtime startup time when using dynamic libraries.
Image Arithmetic Operations
AddC
Adds a constant value to each pixel of an image.
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.
Functions
-
NppStatus nppiAddC_Sfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
Image add constant, scale, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – host memory Constant pointer (must match source Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAddC_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image add constant, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – host memory Constant pointer (must match source Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAddC_ISfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
In place image add constant, scale, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_32F, NPP_64F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – host memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAddC_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image add constant then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_32F, NPP_64F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – host memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAddDeviceC_Sfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
Image add constant, scale, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAddDeviceC_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image add constant then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAddDeviceC_ISfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
In place image add constant, scale, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAddDeviceC_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image add constant then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
MulC
Multiplies each pixel of an image by 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.
Functions
-
NppStatus nppiMulC_Sfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
Image multiply constant, scale, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – host memory Constant pointer (must match source Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiMulC_Ctx(NppDataType eSrcType, NppiChannels eSrcChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image multiply constant, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcType – Image Data Type.
eSrcChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – host memory Constant pointer (must match source Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiMulC_ISfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
In place image multiply constant, scale, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – host memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiMulC_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image multiply constant then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – host memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiMulDeviceC_Sfs_Ctx(NppDataType eSrcType, NppiChannels eSrcChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
Image multiply constant, scale, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcType – Image Data Type.
eSrcChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiMulDeviceC_ISfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
In place image multiply constant, scale, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiMulDeviceC_Ctx(NppDataType eSrcType, NppiChannels eSrcChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image multiply constant, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcType – Image Data Type.
eSrcChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiMulDeviceC_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image multiply constant, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
MulCScale
Multiplies each pixel of an image by a constant value then scales the result by the maximum value for the data bit width.
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.
Functions
-
NppStatus nppiMulCScale_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image multiply by constant and scale by max bit width value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – host memory Constant pointer (must match source Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiMulCScale_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image multiply by constant and scale by max bit width value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – host memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiMulDeviceCScale_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image multiply by constant and scale by max bit width value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiMulDeviceCScale_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image multiply by constant and scale by max bit width value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
SubC
Subtracts a constant value from each pixel of an image.
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.
Functions
-
NppStatus nppiSubC_Sfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
Image subtract constant, scale, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – host memory Constant pointer (must match source Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiSubC_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image subtract constant then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – source Image Data Type.
eSrcDstChannels – source Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – host memory Constant pointer (must match source Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiSubC_ISfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
In place image subtract constant, scale, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – host memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiSubC_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image subtract constant then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – host memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiSubDeviceC_Sfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
Image subtract constant, scale, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiSubDeviceC_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image subtract constant then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiSubDeviceC_ISfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
In place image subtract constant, scale, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiSubDeviceC_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image subtract constant then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
DivC
Divides each pixel of an image by 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.
Functions
-
NppStatus nppiDivC_Sfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
Image divide by constant, scale, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – host memory Constant pointer (must match source Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiDivC_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image divide by constant then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – host memory Constant pointer (must match source Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiDivC_ISfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
In place image divide by constant, scale, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – host memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiDivC_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image divide by constant then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – host memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiDivDeviceC_Sfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
Image divide by constant, scale, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiDivDeviceC_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image divide by constant then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiDivDeviceC_ISfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
In place image divide by constant, scale, then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiDivDeviceC_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image divide by constant then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
AbsDiffC
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.
Functions
-
NppStatus nppiAbsDiffC_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image absolute difference with constant.
Supported data types include NPP_8U, NPP_16U, NPP_32S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – host memory Constant pointer (must match source Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAbsDiffC_Float_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image absolute difference with constant.
Supported data types include NPP_32F. Supported channel counts include NPP_CH_1.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – host memory Constant pointer (must match source Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAbsDiffC_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image absolute difference with constant.
Supported data types include NPP_8U, NPP_16U, NPP_32S. Supported channel counts include NPP_CH_1, NPP_CH_3. NPP_CH_4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – host memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAbsDiffC_I_Float_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place floating point image absolute difference with constant.
Supported data types include NPP_32F. Supported channel counts include NPP_CH_1.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – host memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAbsDiffDeviceC_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image absolute difference with constant.
Supported data types include NPP_8U, NPP_16U, NPP_32S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAbsDiffDeviceC_Float_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Floating point image absolute difference with constant.
Supported data types include NPP_32F. Supported channel counts include NPP_CH_1.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAbsDiffDeviceC_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image absolute difference with constant.
Supported data types include NPP_8U, NPP_16U, NPP_32S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAbsDiffDeviceC_I_Float_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place floating point image absolute difference with constant.
Supported data types include NPP_8F. Supported channel counts include NPP_CH_1.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – device memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
Add
Pixel by pixel addition of two images.
Functions
-
NppStatus nppiAdd_Sfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pSrc2, int nSrc2Step, void *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
Image addition, scale by \(2^(-nScaleFactor)\), then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAdd_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pSrc2, int nSrc2Step, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image addition then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAdd_ISfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
In place image addition, scale by \(2^(-nScaleFactor)\), then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAdd_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image addition then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
AddSquare
Pixel by pixel addition of squared pixels from source image to floating point pixel values of destination image.
Functions
-
NppStatus nppiAddSquare_IM_Ctx(NppDataType eSrcType, const void *pSrc, int nSrcStep, const Npp8u *pMask, int nMaskStep, Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image squared then added to in place floating point destination image using filter mask (updates destination when mask is non-zero).
Supported data types include NPP_8U, NPP_16U, NPP_32F. Supported channel counts include NPP_CH_1.
- Parameters
eSrcType – source Image Data Type.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pMask – Mask-Image Pointer.
nMaskStep – Mask-Image Line Step.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAddSquare_I_Ctx(NppDataType eSrcType, const void *pSrc, int nSrcStep, Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image squared then added to in place floating point destination image.
Supported data types include NPP_8U, NPP_16U, NPP_32F. Supported channel counts include NPP_CH_1.
- Parameters
eSrcType – source Image Data Type.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
AddProduct
Pixel by pixel addition of product of pixels from two source images to floating point pixel values of destination image.
Functions
-
NppStatus nppiAddProduct_IM_Ctx(NppDataType eSrcType, const void *pSrc1, int nSrc1Step, const void *pSrc2, int nSrc2Step, const Npp8u *pMask, int nMaskStep, Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image product added to in place floating point destination image using filter mask (updates destination when mask is non-zero).
Supported data types include NPP_8U, NPP_16U, NPP_32F. Supported channel counts include NPP_CH_1.
- Parameters
eSrcType – source Image Data Type.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pMask – Mask-Image Pointer.
nMaskStep – Mask-Image Line Step.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAddProduct_I_Ctx(NppDataType eSrcType, const void *pSrc1, int nSrc1Step, const void *pSrc2, int nSrc2Step, Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image product added to in place floating point destination image.
Supported data types include NPP_8U, NPP_16U, NPP_32F. Supported channel counts include NPP_CH_1.
- Parameters
eSrcType – source Image Data Type.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAddProduct16f_I_Ctx(const Npp16f *pSrc1, int nSrc1Step, const Npp16f *pSrc2, int nSrc2Step, Npp16f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
One 16-bit floating point channel image product added to in place floating point destination image.
Supported data types include NPP_16F. Supported channel counts include NPP_CH_1.
- Parameters
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
AddWeighted
Pixel by pixel addition of alpha weighted pixel values from a source image to floating point pixel values of destination image.
Functions
-
NppStatus nppiAddWeighted_IM_Ctx(NppDataType eSrcType, const void *pSrc, int nSrcStep, const Npp8u *pMask, int nMaskStep, Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, Npp32f nAlpha, NppStreamContext nppStreamCtx)
One alpha weighted image added to in place floating point destination image using filter mask (updates destination when mask is non-zero).
Supported data types include NPP_8U, NPP_16U, NPP_32F. Supported channel counts include NPP_CH_1.
- Parameters
eSrcType – source Image Data Type.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pMask – Mask-Image Pointer.
nMaskStep – Mask-Image Line Step.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nAlpha – Alpha weight to be applied to source image pixels (0.0F to 1.0F)
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAddWeighted_I_Ctx(NppDataType eSrcType, const void *pSrc, int nSrcStep, Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, Npp32f nAlpha, NppStreamContext nppStreamCtx)
One alpha weighted image added to in place floating point destination image.
Supported data types include NPP_8U, NPP_16U, NPP_32F. Supported channel counts include NPP_CH_1.
- Parameters
eSrcType – source Image Data Type.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nAlpha – Alpha weight to be applied to source image pixels (0.0F to 1.0F)
nppStreamCtx – Application Managed Stream Context.
- Returns
Mul
Pixel by pixel multiply of two images.
Functions
-
NppStatus nppiMul_Sfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pSrc2, int nSrc2Step, void *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
Image multiplication, scale by \(2^(-nScaleFactor)\), then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiMul_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pSrc2, int nSrc2Step, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image multiplication then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiMul_ISfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
In place image multiplication, scale by \(2^(-nScaleFactor)\), then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiMul_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image multiplication then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
MulScale
Pixel by pixel multiplies each pixel of two images then scales the result by the maximum value for the data bit width.
Functions
-
NppStatus nppiMulScale_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pSrc2, int nSrc2Step, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image multiplication then scale by maximum value for pixel bit width.
Supported data types include NPP_8U, NPP_16U. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiMulScale_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image multiply by constant and scale by max bit width value.
Supported data types include NPP_8U, NPP_16U. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
Sub
Pixel by pixel subtraction of two images.
Functions
-
NppStatus nppiSub_Sfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pSrc2, int nSrc2Step, void *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
Image subtraction, scale by \(2^(-nScaleFactor)\), then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiSub_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pSrc2, int nSrc2Step, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image subtraction then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiSub_ISfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
In place image subtraction, scale by \(2^(-nScaleFactor)\), then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiSub_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image subtraction then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
Div
Pixel by pixel division of two images.
Functions
-
NppStatus nppiDiv_Sfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pSrc2, int nSrc2Step, void *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
Image division, scale by \(2^(-nScaleFactor)\), then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiDiv_ISfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
In place image division, scale by \(2^(-nScaleFactor)\), then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiDiv_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pSrc2, int nSrc2Step, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image division.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiDiv_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image division.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pSrcDst – Destination-Image Pointer.
nSrcDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
Div_Round
Pixel by pixel division of two images using result rounding modes.
Functions
-
NppStatus nppiDiv_Round_Sfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pSrc2, int nSrc2Step, void *pDst, int nDstStep, NppiSize oSizeROI, NppRoundMode rndMode, int nScaleFactor, NppStreamContext nppStreamCtx)
Image division, scale by \(2^(-nScaleFactor)\), then round and clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
rndMode – Result Rounding mode to be used (NPP_RND_ZERO, NPP_RND_NEAR, or NP_RND_FINANCIAL)
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiDiv_Round_ISfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppRoundMode rndMode, int nScaleFactor, NppStreamContext nppStreamCtx)
In place image division, scale by \(2^(-nScaleFactor)\), then round and clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
rndMode – Result Rounding mode to be used (NPP_RND_ZERO, NPP_RND_NEAR, or NP_RND_FINANCIAL)
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
Abs
Absolute value of each pixel value in an image.
Functions
-
NppStatus nppiAbs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image integer absolute value.
Supported data types include NPP_16S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAbs_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image integer absolute value.
Supported data types include NPP_16S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAbsf_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image floating point absolute value.
Supported data types include NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAbsf_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image floating point absolute value.
Supported data types include NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
AbsDiff
Pixel by pixel absolute difference between two images.
Functions
-
NppStatus nppiAbsDiff_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pSrc2, int nSrc2Step, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Absolute difference of image1 minus image2.
Supported data types include NPP_8U, NPP_16U, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAbsDiff_Float_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pSrc2, int nSrc2Step, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Absolute difference of floating point image1 minus image2.
Supported data types include NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
Sqr
Square each pixel in an image.
Functions
-
NppStatus nppiSqr_Sfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
Image squared, scale by \(2^(-nScaleFactor)\), then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiSqr_ISfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
In place image squared, scale by \(2^(-nScaleFactor)\), then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiSqr_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image squared.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiSqr_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image squared.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
Sqrt
Pixel by pixel square root of each pixel in an image.
Functions
-
NppStatus nppiSqrt_Sfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
Image square root, scale by \(2^(-nScaleFactor)\), then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiSqrt_ISfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
In place image square root, scale by \(2^(-nScaleFactor)\), then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiSqrt_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image square root.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiSqrt_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image square root.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
Ln
Pixel by pixel natural logarithm of each pixel in an image.
Functions
-
NppStatus nppiLn_Sfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
Image natural logarithm, scale by \(2^(-nScaleFactor)\), then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiLn_ISfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
In place image natural logarithm, scale by \(2^(-nScaleFactor)\), then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiLn_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image natural logarithm then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiLn_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image natural logarithm.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
Exp
Exponential value of each pixel in an image.
Functions
-
NppStatus nppiExp_Sfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pDst, int nDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
Image exponential, scale by \(2^(-nScaleFactor)\), then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiExp_ISfs_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, int nScaleFactor, NppStreamContext nppStreamCtx)
In place image exponential, scale by \(2^(-nScaleFactor)\), then clamp to saturated value.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nScaleFactor – Integer Result Scaling.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiExp_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image exponential.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiExp_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image exponential.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Logical Operations
AndC
Pixel by pixel logical AND of an image with a constant.
Functions
-
NppStatus nppiAndC_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image logical AND with constant.
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pConstant – host memory Constant pointer (must match source Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAndC_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image AND with constant.
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – host memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
OrC
Pixel by pixel logical OR of an image with a constant.
Functions
-
NppStatus nppiOrC_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image logical OR with constant.
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pConstant – host memory Constant pointer (must match Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiOrC_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image logical OR with constant.
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – host memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
XorC
Pixel by pixel logical exclusive OR of an image with a constant.
Functions
-
NppStatus nppiXorC_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image logical exclusive OR with constant.
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pConstant – host memory Constant pointer (must match Image Data Type and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiXorC_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image logical exclusive OR with constant.
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – host memory Constant pointer (must match Image Data Type and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
RShiftC
Pixel by pixel right shift of an image by a constant value.
Functions
-
NppStatus nppiRShiftC_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const Npp32u *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image right shift by unsigned constant.
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pConstant – unsigned host memory Constant pointer (must match image data size and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiRShiftC_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const Npp32u *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image right shift by unsigned constant.
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – unsigned host memory Constant pointer (must match image data size and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
LShiftC
Pixel by pixel left shift of an image by a constant value.
Functions
-
NppStatus nppiLShiftC_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const Npp32u *pConstant, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image left shift by unsigned constant.
Supported data types include NPP_8U, NPP_16U, NPP_32S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pConstant – unsigned host memory Constant pointer (must match image data size and number of channels).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiLShiftC_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const Npp32u *pConstant, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image left shift by unsigned constant.
Supported data types include NPP_8U, NPP_16U, NPP_32S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pConstant – unsigned host memory Constant pointer (must match image data size and number of channels).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
And
Pixel by pixel logical and of images.
Functions
-
NppStatus nppiAnd_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pSrc2, int nSrc2Step, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image logical AND.
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAnd_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image logical AND.
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
Or
Pixel by pixel logical OR of images.
Functions
-
NppStatus nppiOr_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pSrc2, int nSrc2Step, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image logical OR.
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S.
Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiOr_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image logical OR.
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
Xor
Pixel by pixel logical exclusive OR of images.
Functions
-
NppStatus nppiXor_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pSrc2, int nSrc2Step, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image logical exclusive OR.
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiXor_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image logical exclusive OR.
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
Not
Pixel by pixel logical NOT of image.
Functions
-
NppStatus nppiNot_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image logical NOT.
Supported data types include NPP_8U. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiNot_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image logical NOT.
Supported data types include NPP_8U. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Alpha Composition Operations
AlphaCompC
Composite two images using constant alpha values.
Functions
-
NppStatus nppiAlphaCompC_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pAlpha1, const void *pSrc2, int nSrc2Step, const void *pAlpha2, void *pDst, int nDstStep, NppiSize oSizeROI, NppiAlphaOp eAlphaOp, NppStreamContext nppStreamCtx)
Image composition using constant alpha.
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32U, NPP_32S, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pAlpha1 – Image alpha opacity (0 - max channel pixel value).
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pAlpha2 – Image alpha opacity (0 - max channel pixel value).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
eAlphaOp – alpha-blending operation..
nppStreamCtx – Application Managed Stream Context.
- Returns
Premultiplies pixels of an image using a constant alpha value.
Functions
-
NppStatus nppiAlphaPremulC_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pAlpha1, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Image premultiplication using constant alpha.
Supported data types include NPP_8U, NPP_16U. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pAlpha1 – Image alpha opacity (0 - max channel pixel value).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAlphaPremulC_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pAlpha1, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
In place image premultiplication using constant alpha.
Supported data types include NPP_8U, NPP_16U. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pAlpha1 – Image alpha opacity (0 - max channel pixel value).
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
AlphaComp
Composite two images using alpha opacity values contained in each image.
Functions
-
NppStatus nppiAlphaComp_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pSrc2, int nSrc2Step, void *pDst, int nDstStep, NppiSize oSizeROI, NppiAlphaOp eAlphaOp, NppStreamContext nppStreamCtx)
Image composition using image alpha values (0 - max channel pixel value).
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_32U, NPP_32S, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pSrc2 – Source-Image Pointer.
nSrc2Step – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
eAlphaOp – alpha-blending operation..
nppStreamCtx – Application Managed Stream Context.
- Returns
Premultiplies image pixels by image alpha opacity values.
Functions
-
NppStatus nppiAlphaPremul_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Four channel premultiplication with pixel alpha (0 - max channel pixel value).
Supported data types include NPP_8U, NPP_16U. Supported channel counts include NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – Source-Image Pointer.
nSrc1Step – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAlphaPremul_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Four channel in place image premultiplication with pixel alpha (0 - max channel pixel value).
Supported data types include NPP_8U, NPP_16U. Supported channel counts include NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns