Class NPPNativeMethods.NPPi.AbsDiffConst
Determines absolute difference between each pixel of an image and a constant value.
Inheritance
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public static class AbsDiffConst
Methods
nppiAbsDiffC_16u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, UInt16)
One 16-bit unsigned short channel image absolute difference with constant.
Declaration
public static NppStatus nppiAbsDiffC_16u_C1R(CUdeviceptr pSrc1, int nSrc1Step, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, ushort nConstant)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source-Image Pointer. |
System.Int32 | nSrc1Step | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.UInt16 | nConstant | Constant. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiAbsDiffC_32f_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single)
One 32-bit floating point channel image absolute difference with constant.
Declaration
public static NppStatus nppiAbsDiffC_32f_C1R(CUdeviceptr pSrc1, int nSrc1Step, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nConstant)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source-Image Pointer. |
System.Int32 | nSrc1Step | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single | nConstant | Constant. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiAbsDiffC_8u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Byte)
One 8-bit unsigned char channel image absolute difference with constant.
Declaration
public static NppStatus nppiAbsDiffC_8u_C1R(CUdeviceptr pSrc1, int nSrc1Step, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, byte nConstant)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source-Image Pointer. |
System.Int32 | nSrc1Step | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Byte | nConstant | Constant. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |