Class NPPNativeMethods.NPPi.AbsDiff
Pixel by pixel absolute difference between two images.
Inheritance
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public static class AbsDiff
Methods
nppiAbsDiff_16u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize)
One 16-bit unsigned short channel absolute difference of image1 minus image2.
Declaration
public static NppStatus nppiAbsDiff_16u_C1R(CUdeviceptr pSrc1, int nSrc1Step, CUdeviceptr pSrc2, int nSrc2Step, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source-Image Pointer. |
System.Int32 | nSrc1Step | Source-Image Line Step. |
CUdeviceptr | pSrc2 | Source-Image Pointer. |
System.Int32 | nSrc2Step | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiAbsDiff_32f_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize)
One 32-bit floating point channel absolute difference of image1 minus image2.
Declaration
public static NppStatus nppiAbsDiff_32f_C1R(CUdeviceptr pSrc1, int nSrc1Step, CUdeviceptr pSrc2, int nSrc2Step, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source-Image Pointer. |
System.Int32 | nSrc1Step | Source-Image Line Step. |
CUdeviceptr | pSrc2 | Source-Image Pointer. |
System.Int32 | nSrc2Step | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiAbsDiff_8u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize)
One 8-bit unsigned char channel absolute difference of image1 minus image2.
Declaration
public static NppStatus nppiAbsDiff_8u_C1R(CUdeviceptr pSrc1, int nSrc1Step, CUdeviceptr pSrc2, int nSrc2Step, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source-Image Pointer. |
System.Int32 | nSrc1Step | Source-Image Line Step. |
CUdeviceptr | pSrc2 | Source-Image Pointer. |
System.Int32 | nSrc2Step | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiAbsDiff_8u_C3R(CUdeviceptr, Int32, CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize)
Three 8-bit unsigned char channels absolute difference of image1 minus image2.
Declaration
public static NppStatus nppiAbsDiff_8u_C3R(CUdeviceptr pSrc1, int nSrc1Step, CUdeviceptr pSrc2, int nSrc2Step, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source-Image Pointer. |
System.Int32 | nSrc1Step | Source-Image Line Step. |
CUdeviceptr | pSrc2 | Source-Image Pointer. |
System.Int32 | nSrc2Step | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiAbsDiff_8u_C4R(CUdeviceptr, Int32, CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize)
Four 8-bit unsigned char channels absolute difference of image1 minus image2.
Declaration
public static NppStatus nppiAbsDiff_8u_C4R(CUdeviceptr pSrc1, int nSrc1Step, CUdeviceptr pSrc2, int nSrc2Step, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc1 | Source-Image Pointer. |
System.Int32 | nSrc1Step | Source-Image Line Step. |
CUdeviceptr | pSrc2 | Source-Image Pointer. |
System.Int32 | nSrc2Step | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |