Class NPPNativeMethods.NPPi.GradientColorToGray
RGB Color to Gray Gradient conversion using user selected gradient distance method.
Inheritance
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public static class GradientColorToGray
Methods
nppiGradientColorToGray_16s_C3C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, NppiNorm)
3 channel 16-bit signed packed RGB to 1 channel 16-bit signed packed Gray Gradient conversion.
Declaration
public static NppStatus nppiGradientColorToGray_16s_C3C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, NppiNorm eNorm)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
NppiNorm | eNorm | Gradient distance method to use. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiGradientColorToGray_16u_C3C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, NppiNorm)
3 channel 16-bit unsigned packed RGB to 1 channel 16-bit unsigned packed Gray Gradient conversion.
Declaration
public static NppStatus nppiGradientColorToGray_16u_C3C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, NppiNorm eNorm)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
NppiNorm | eNorm | Gradient distance method to use. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiGradientColorToGray_32f_C3C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, NppiNorm)
3 channel 32-bit floating point packed RGB to 1 channel 32-bit floating point packed Gray Gradient conversion.
Declaration
public static NppStatus nppiGradientColorToGray_32f_C3C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, NppiNorm eNorm)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
NppiNorm | eNorm | Gradient distance method to use. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiGradientColorToGray_8u_C3C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, NppiNorm)
3 channel 8-bit unsigned packed RGB to 1 channel 8-bit unsigned packed Gray Gradient conversion.
Declaration
public static NppStatus nppiGradientColorToGray_8u_C3C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, NppiNorm eNorm)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
NppiNorm | eNorm | Gradient distance method to use. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |