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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes

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
Returns

Image Data Related Error Codes, ROI Related Error Codes