Class NPPNativeMethods.NPPi.ColorTwist
Perform color twist pixel processing. Color twist consists of applying the following formula to each image pixel using coefficients from the user supplied color twist host matrix array as follows where dst[x] and src[x] represent destination pixel and source pixel channel or plane x.
dst[0] = aTwist[0][0] * src[0] + aTwist[0][1] * src[1] + aTwist[0][2] * src[2] + aTwist[0][3]
dst[1] = aTwist[1][0] * src[0] + aTwist[1][1] * src[1] + aTwist[1][2] * src[2] + aTwist[1][3]
dst[2] = aTwist[2][0] * src[0] + aTwist[2][1] * src[1] + aTwist[2][2] * src[2] + aTwist[2][3]
Inheritance
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public static class ColorTwist
Methods
nppiColorTwist_32f_AC4IR(CUdeviceptr, Int32, NppiSize, Single[,])
4 channel 32-bit floating point in place color twist, not affecting Alpha. An input color twist matrix with floating-point coefficient values is applied with in ROI. Alpha channel is the last channel and is not processed.
Declaration
public static NppStatus nppiColorTwist_32f_AC4IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | in place packed pixel format image pointer. |
System.Int32 | nSrcDstStep | in place packed pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist_32f_AC4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])
4 channel 32-bit floating point color twist, not affecting Alpha. An input color twist matrix with floating-point coefficient values is applied with in ROI. Alpha channel is the last channel and is not processed.
Declaration
public static NppStatus nppiColorTwist_32f_AC4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float[, ] aTwist)
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). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist_32f_C3IR(CUdeviceptr, Int32, NppiSize, Single[,])
3 channel 32-bit floating point in place color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public static NppStatus nppiColorTwist_32f_C3IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | in place packed pixel format image pointer. |
System.Int32 | nSrcDstStep | in place packed pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist_32f_C3R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])
3 channel 32-bit floating point color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public static NppStatus nppiColorTwist_32f_C3R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float[, ] aTwist)
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). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist_32f_C4IR(CUdeviceptr, Int32, NppiSize, Single[,])
4 channel 32-bit floating point in place color twist, not affecting Alpha. An input color twist matrix with floating-point coefficient values is applied with in ROI. Alpha channel is the last channel and is not modified.
Declaration
public static NppStatus nppiColorTwist_32f_C4IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | in place packed pixel format image pointer. |
System.Int32 | nSrcDstStep | in place packed pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist_32f_C4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])
4 channel 32-bit floating point color twist, with alpha copy. An input color twist matrix with floating-point coefficient values is applied with in ROI. Alpha channel is the last channel and is copied unmodified from the source pixel to the destination pixel.
Declaration
public static NppStatus nppiColorTwist_32f_C4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float[, ] aTwist)
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). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist_32f_IP3R(CUdeviceptr[], Int32, NppiSize, Single[,])
3 channel 32-bit floating point planar in place color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public static NppStatus nppiColorTwist_32f_IP3R(CUdeviceptr[] pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr[] | pSrcDst | in place planar pixel format image pointer array, one pointer per plane. |
System.Int32 | nSrcDstStep | in place planar pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist_32f_P3R(CUdeviceptr[], Int32, CUdeviceptr[], Int32, NppiSize, Single[,])
3 channel 32-bit floating point planar color twist. An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public static NppStatus nppiColorTwist_32f_P3R(CUdeviceptr[] pSrc, int nSrcStep, CUdeviceptr[] pDst, int nDstStep, NppiSize oSizeROI, float[, ] aTwist)
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). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist_32fC_C4IR(CUdeviceptr, Int32, NppiSize, Single[,], Single[])
4 channel 32-bit floating point in place color twist with 4x4 matrix and an additional constant vector addition. An input 4x4 color twist matrix with floating-point coefficient values with an additional constant vector addition is applied within ROI. For this particular version of the function the result is generated as shown below. \code dst[0] = aTwist[0][0] /// src[0] + aTwist[0][1] /// src[1] + aTwist[0][2] /// src[2] + aTwist[0][3] /// src[3] + aConstants[0] dst[1] = aTwist[1][0] /// src[0] + aTwist[1][1] /// src[1] + aTwist[1][2] /// src[2] + aTwist[1][3] /// src[3] + aConstants[1] dst[2] = aTwist[2][0] /// src[0] + aTwist[2][1] /// src[1] + aTwist[2][2] /// src[2] + aTwist[2][3] /// src[3] + aConstants[2] dst[3] = aTwist[3][0] /// src[0] + aTwist[3][1] /// src[1] + aTwist[3][2] /// src[2] + aTwist[3][3] /// src[3] + aConstants[3] \endcode
Declaration
public static NppStatus nppiColorTwist_32fC_C4IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist, float[] aConstants)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | in place packed pixel format image pointer. |
System.Int32 | nSrcDstStep | in place packed pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
System.Single[] | aConstants | fixed size array of constant values, one per channel.. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist_32fC_C4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,], Single[])
4 channel 32-bit floating point color twist with 4x4 matrix and constant vector addition. An input 4x4 color twist matrix with floating-point coefficient values with an additional constant vector addition is applied within ROI. For this particular version of the function the result is generated as shown below. \code dst[0] = aTwist[0][0] /// src[0] + aTwist[0][1] /// src[1] + aTwist[0][2] /// src[2] + aTwist[0][3] /// src[3] + aConstants[0] dst[1] = aTwist[1][0] /// src[0] + aTwist[1][1] /// src[1] + aTwist[1][2] /// src[2] + aTwist[1][3] /// src[3] + aConstants[1] dst[2] = aTwist[2][0] /// src[0] + aTwist[2][1] /// src[1] + aTwist[2][2] /// src[2] + aTwist[2][3] /// src[3] + aConstants[2] dst[3] = aTwist[3][0] /// src[0] + aTwist[3][1] /// src[1] + aTwist[3][2] /// src[2] + aTwist[3][3] /// src[3] + aConstants[3] \endcode
Declaration
public static NppStatus nppiColorTwist_32fC_C4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float[, ] aTwist, float[] aConstants)
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). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
System.Single[] | aConstants | fixed size array of constant values, one per channel.. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_16s_AC4IR(CUdeviceptr, Int32, NppiSize, Single[,])
4 channel 16-bit signed in place color twist, not affecting Alpha. An input color twist matrix with floating-point coefficient values is applied with in ROI. Alpha channel is the last channel and is not processed.
Declaration
public static NppStatus nppiColorTwist32f_16s_AC4IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | in place packed pixel format image pointer. |
System.Int32 | nSrcDstStep | in place packed pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_16s_AC4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])
4 channel 16-bit signed color twist, not affecting Alpha. An input color twist matrix with floating-point coefficient values is applied with in ROI. Alpha channel is the last channel and is not processed.
Declaration
public static NppStatus nppiColorTwist32f_16s_AC4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float[, ] aTwist)
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). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_16s_C3IR(CUdeviceptr, Int32, NppiSize, Single[,])
3 channel 16-bit signed in place color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public static NppStatus nppiColorTwist32f_16s_C3IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | in place packed pixel format image pointer. |
System.Int32 | nSrcDstStep | in place packed pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_16s_C3R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])
3 channel 16-bit signed color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public static NppStatus nppiColorTwist32f_16s_C3R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float[, ] aTwist)
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). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_16s_IP3R(CUdeviceptr[], Int32, NppiSize, Single[,])
3 channel 16-bit signed planar in place color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public static NppStatus nppiColorTwist32f_16s_IP3R(CUdeviceptr[] pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr[] | pSrcDst | in place planar pixel format image pointer array, one pointer per plane. |
System.Int32 | nSrcDstStep | in place planar pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_16s_P3R(CUdeviceptr[], Int32, CUdeviceptr[], Int32, NppiSize, Single[,])
3 channel 16-bit signed planar color twist. An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public static NppStatus nppiColorTwist32f_16s_P3R(CUdeviceptr[] pSrc, int nSrcStep, CUdeviceptr[] pDst, int nDstStep, NppiSize oSizeROI, float[, ] aTwist)
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). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_16u_AC4IR(CUdeviceptr, Int32, NppiSize, Single[,])
4 channel 16-bit unsigned in place color twist, not affecting Alpha. An input color twist matrix with floating-point coefficient values is applied with in ROI. Alpha channel is the last channel and is not processed.
Declaration
public static NppStatus nppiColorTwist32f_16u_AC4IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | in place packed pixel format image pointer. |
System.Int32 | nSrcDstStep | in place packed pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_16u_AC4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])
4 channel 16-bit unsigned color twist, not affecting Alpha. An input color twist matrix with floating-point coefficient values is applied with in ROI. Alpha channel is the last channel and is not processed.
Declaration
public static NppStatus nppiColorTwist32f_16u_AC4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float[, ] aTwist)
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). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_16u_C3IR(CUdeviceptr, Int32, NppiSize, Single[,])
3 channel 16-bit unsigned in place color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public static NppStatus nppiColorTwist32f_16u_C3IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | in place packed pixel format image pointer. |
System.Int32 | nSrcDstStep | in place packed pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_16u_C3R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])
3 channel 16-bit unsigned color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public static NppStatus nppiColorTwist32f_16u_C3R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float[, ] aTwist)
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). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_16u_IP3R(CUdeviceptr[], Int32, NppiSize, Single[,])
3 channel 16-bit unsigned planar in place color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public static NppStatus nppiColorTwist32f_16u_IP3R(CUdeviceptr[] pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr[] | pSrcDst | in place planar pixel format image pointer array, one pointer per plane. |
System.Int32 | nSrcDstStep | in place planar pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_16u_P3R(CUdeviceptr[], Int32, CUdeviceptr[], Int32, NppiSize, Single[,])
3 channel 16-bit unsigned planar color twist. An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public static NppStatus nppiColorTwist32f_16u_P3R(CUdeviceptr[] pSrc, int nSrcStep, CUdeviceptr[] pDst, int nDstStep, NppiSize oSizeROI, float[, ] aTwist)
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). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_8s_AC4IR(CUdeviceptr, Int32, NppiSize, Single[,])
4 channel 8-bit signed in place color twist, not affecting Alpha. An input color twist matrix with floating-point coefficient values is applied with in ROI. Alpha channel is the last channel and is not processed.
Declaration
public static NppStatus nppiColorTwist32f_8s_AC4IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | in place packed pixel format image pointer. |
System.Int32 | nSrcDstStep | in place packed pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_8s_AC4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])
4 channel 8-bit signed color twist, not affecting Alpha. An input color twist matrix with floating-point coefficient values is applied with in ROI. Alpha channel is the last channel and is not processed.
Declaration
public static NppStatus nppiColorTwist32f_8s_AC4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float[, ] aTwist)
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). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_8s_C3IR(CUdeviceptr, Int32, NppiSize, Single[,])
3 channel 8-bit signed in place color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public static NppStatus nppiColorTwist32f_8s_C3IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | in place packed pixel format image pointer. |
System.Int32 | nSrcDstStep | in place packed pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_8s_C3R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])
3 channel 8-bit signed color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public static NppStatus nppiColorTwist32f_8s_C3R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float[, ] aTwist)
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). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_8s_C4IR(CUdeviceptr, Int32, NppiSize, Single[,])
4 channel 8-bit signed in place color twist, not affecting Alpha. An input color twist matrix with floating-point coefficient values is applied with in ROI. Alpha channel is the last channel and is unmodified.
Declaration
public static NppStatus nppiColorTwist32f_8s_C4IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | in place packed pixel format image pointer. |
System.Int32 | nSrcDstStep | in place packed pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_8s_C4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])
4 channel 8-bit signed color twist, with alpha copy. An input color twist matrix with floating-point coefficient values is applied with in ROI. Alpha channel is the last channel and is copied unmodified from the source pixel to the destination pixel.
Declaration
public static NppStatus nppiColorTwist32f_8s_C4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float[, ] aTwist)
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). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_8s_IP3R(CUdeviceptr[], Int32, NppiSize, Single[,])
3 channel 8-bit signed planar in place color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public static NppStatus nppiColorTwist32f_8s_IP3R(CUdeviceptr[] pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr[] | pSrcDst | in place planar pixel format image pointer array, one pointer per plane. |
System.Int32 | nSrcDstStep | in place planar pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_8s_P3R(CUdeviceptr[], Int32, CUdeviceptr[], Int32, NppiSize, Single[,])
3 channel 8-bit signed planar color twist. An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public static NppStatus nppiColorTwist32f_8s_P3R(CUdeviceptr[] pSrc, int nSrcStep, CUdeviceptr[] pDst, int nDstStep, NppiSize oSizeROI, float[, ] aTwist)
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). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_8u_AC4IR(CUdeviceptr, Int32, NppiSize, Single[,])
4 channel 8-bit unsigned in place color twist, not affecting Alpha. An input color twist matrix with floating-point coefficient values is applied with in ROI. Alpha channel is the last channel and is not processed.
Declaration
public static NppStatus nppiColorTwist32f_8u_AC4IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | in place packed pixel format image pointer. |
System.Int32 | nSrcDstStep | in place packed pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_8u_C3IR(CUdeviceptr, Int32, NppiSize, Single[,])
3 channel 8-bit unsigned in place color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public static NppStatus nppiColorTwist32f_8u_C3IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | in place packed pixel format image pointer. |
System.Int32 | nSrcDstStep | in place packed pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_8u_C4IR(CUdeviceptr, Int32, NppiSize, Single[,])
4 channel 8-bit unsigned in place color twist, not affecting Alpha. An input color twist matrix with floating-point coefficient values is applied with in ROI. Alpha channel is the last channel and is unmodified.
Declaration
public static NppStatus nppiColorTwist32f_8u_C4IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | in place packed pixel format image pointer. |
System.Int32 | nSrcDstStep | in place packed pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_8u_C4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])
4 channel 8-bit unsigned color twist, with alpha copy. An input color twist matrix with floating-point coefficient values is applied with in ROI. Alpha channel is the last channel and is copied unmodified from the source pixel to the destination pixel.
Declaration
public static NppStatus nppiColorTwist32f_8u_C4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float[, ] aTwist)
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). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32f_8u_IP3R(CUdeviceptr[], Int32, NppiSize, Single[,])
3 channel 8-bit unsigned planar in place color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Declaration
public static NppStatus nppiColorTwist32f_8u_IP3R(CUdeviceptr[] pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr[] | pSrcDst | in place planar pixel format image pointer array, one pointer per plane. |
System.Int32 | nSrcDstStep | in place planar pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32fC_8u_C4IR(CUdeviceptr, Int32, NppiSize, Single[,], Single[])
4 channel 8-bit unsigned in place color twist with 4x4 matrix and an additional constant vector addition. An input 4x4 color twist matrix with floating-point coefficient values with an additional constant vector addition is applied within ROI. For this particular version of the function the result is generated as shown below. \code dst[0] = aTwist[0][0] /// src[0] + aTwist[0][1] /// src[1] + aTwist[0][2] /// src[2] + aTwist[0][3] /// src[3] + aConstants[0] dst[1] = aTwist[1][0] /// src[0] + aTwist[1][1] /// src[1] + aTwist[1][2] /// src[2] + aTwist[1][3] /// src[3] + aConstants[1] dst[2] = aTwist[2][0] /// src[0] + aTwist[2][1] /// src[1] + aTwist[2][2] /// src[2] + aTwist[2][3] /// src[3] + aConstants[2] dst[3] = aTwist[3][0] /// src[0] + aTwist[3][1] /// src[1] + aTwist[3][2] /// src[2] + aTwist[3][3] /// src[3] + aConstants[3] \endcode
Declaration
public static NppStatus nppiColorTwist32fC_8u_C4IR(CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float[, ] aTwist, float[] aConstants)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrcDst | in place packed pixel format image pointer. |
System.Int32 | nSrcDstStep | in place packed pixel format image line step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
System.Single[] | aConstants | fixed size array of constant values, one per channel.. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiColorTwist32fC_8u_C4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,], Single[])
4 channel 8-bit unsigned color twist with 4x4 matrix and constant vector addition. An input 4x4 color twist matrix with floating-point coefficient values with an additional constant vector addition is applied within ROI. For this particular version of the function the result is generated as shown below. \code dst[0] = aTwist[0][0] /// src[0] + aTwist[0][1] /// src[1] + aTwist[0][2] /// src[2] + aTwist[0][3] /// src[3] + aConstants[0] dst[1] = aTwist[1][0] /// src[0] + aTwist[1][1] /// src[1] + aTwist[1][2] /// src[2] + aTwist[1][3] /// src[3] + aConstants[1] dst[2] = aTwist[2][0] /// src[0] + aTwist[2][1] /// src[1] + aTwist[2][2] /// src[2] + aTwist[2][3] /// src[3] + aConstants[2] dst[3] = aTwist[3][0] /// src[0] + aTwist[3][1] /// src[1] + aTwist[3][2] /// src[2] + aTwist[3][3] /// src[3] + aConstants[3] \endcode
Declaration
public static NppStatus nppiColorTwist32fC_8u_C4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float[, ] aTwist, float[] aConstants)
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). |
System.Single[,] | aTwist | The color twist matrix with floating-point coefficient values. |
System.Single[] | aConstants | fixed size array of constant values, one per channel.. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |