Show / Hide Table of Contents

    Class NPPNativeMethods.NPPi.ColorProcessing

    Color manipuliation functions.

    Inheritance
    System.Object
    NPPNativeMethods.NPPi.ColorProcessing
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: ManagedCuda.NPP
    Assembly: NPP.dll
    Syntax
    public static class ColorProcessing

    Methods

    nppiColorTwist_32f_C1IR(CUdeviceptr, Int32, NppiSize, Single[,])

    1 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_C1IR(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_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])

    1 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_C1R(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_C2IR(CUdeviceptr, Int32, NppiSize, Single[,])

    2 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_C2IR(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_C2R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])

    2 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_C2R(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_C1IR(CUdeviceptr, Int32, NppiSize, Single[,])

    1 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_C1IR(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_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])

    1 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_C1R(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_C2IR(CUdeviceptr, Int32, NppiSize, Single[,])

    2 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_C2IR(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_C2R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])

    2 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_C2R(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_C1IR(CUdeviceptr, Int32, NppiSize, Single[,])

    1 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_C1IR(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_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])

    1 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_C1R(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_C2IR(CUdeviceptr, Int32, NppiSize, Single[,])

    2 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_C2IR(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_C2R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])

    2 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_C2R(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_C1IR(CUdeviceptr, Int32, NppiSize, Single[,])

    1 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_C1IR(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_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])

    1 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_C1R(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_C2IR(CUdeviceptr, Int32, NppiSize, Single[,])

    2 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_C2IR(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_C2R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])

    2 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_C2R(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_AC4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])

    4 channel 8-bit unsigned color twist, not affecting Alpha. An input color twist matrix with floating-point pixel values is applied with in ROI. Alpha channel is the last channel and is not processed.

    Declaration
    public static NppStatus nppiColorTwist32f_8u_AC4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float[, ] twist)
    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[,] twist

    The color twist matrix with floating-point pixel values.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiColorTwist32f_8u_C1IR(CUdeviceptr, Int32, NppiSize, Single[,])

    1 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_C1IR(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_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])

    1 channel 8-bit unsigned color twist.

    An input color twist matrix with floating-point coefficient values is applied within ROI.

    Declaration
    public static NppStatus nppiColorTwist32f_8u_C1R(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_C2IR(CUdeviceptr, Int32, NppiSize, Single[,])

    2 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_C2IR(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_C2R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])

    2 channel 8-bit unsigned color twist.

    An input color twist matrix with floating-point coefficient values is applied within ROI.

    Declaration
    public static NppStatus nppiColorTwist32f_8u_C2R(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_C3R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single[,])

    3 channel 8-bit unsigned color twist.

    An input color twist matrix with floating-point pixel values is applied within ROI.

    Declaration
    public static NppStatus nppiColorTwist32f_8u_C3R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float[, ] twist)
    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[,] twist

    The color twist matrix with floating-point pixel values [3,4].

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiColorTwist32f_8u_P3R(CUdeviceptr[], Int32, CUdeviceptr[], Int32, NppiSize, Single[,])

    3 channel planar 8-bit unsigned color twist. An input color twist matrix with floating-point pixel values is applied within ROI.

    Declaration
    public static NppStatus nppiColorTwist32f_8u_P3R(CUdeviceptr[] pSrc, int nSrcStep, CUdeviceptr[] pDst, int nDstStep, NppiSize oSizeROI, float[, ] twist)
    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[,] twist

    The color twist matrix with floating-point pixel values.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiLUT_Linear_8u_AC4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr[], CUdeviceptr[], Int32[])

    4 channel 8-bit unsigned look-up-table color conversion, not affecting Alpha. The LUT is derived from a set of user defined mapping points through linear interpolation. Alpha channel is the last channel and is not processed.

    Declaration
    public static NppStatus nppiLUT_Linear_8u_AC4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr[] pValues, CUdeviceptr[] pLevels, int[] nLevels)
    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).

    CUdeviceptr[] pValues

    Double pointer to an [3] of arrays of user defined OUTPUT

    CUdeviceptr[] pLevels

    Double pointer to an [3] of arrays of user defined INPUT

    System.Int32[] nLevels

    A [3] array of user defined input/output mapping points

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError - #NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2.

    nppiLUT_Linear_8u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr, CUdeviceptr, Int32)

    8-bit unsigned look-up-table color conversion. The LUT is derived from a set of user defined mapping points through linear interpolation.

    Declaration
    public static NppStatus nppiLUT_Linear_8u_C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pValues, CUdeviceptr pLevels, int nLevels)
    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).

    CUdeviceptr pValues

    Pointer to an array of user defined OUTPUT values

    CUdeviceptr pLevels

    Pointer to an array of user defined INPUT values

    System.Int32 nLevels

    Number of user defined input/output mapping points (levels)

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError - #NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2.

    nppiLUT_Linear_8u_C3R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr[], CUdeviceptr[], Int32[])

    3 channel 8-bit unsigned look-up-table color conversion.

    The LUT is derived from a set of user defined mapping points through linear interpolation.

    Declaration
    public static NppStatus nppiLUT_Linear_8u_C3R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr[] pValues, CUdeviceptr[] pLevels, int[] nLevels)
    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).

    CUdeviceptr[] pValues

    Double pointer to an [3] of arrays of user defined OUTPUT

    CUdeviceptr[] pLevels

    Double pointer to an [3] of arrays of user defined INPUT

    System.Int32[] nLevels

    A [3] array of user defined input/output mapping points

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError - #NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2.

    nppiLUT_Linear_8u_C4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr[], CUdeviceptr[], Int32[])

    4 channel 8-bit unsigned look-up-table color conversion.

    The LUT is derived from a set of user defined mapping points through linear interpolation.

    As of the 5.0 release of NPP, the pValues and pLevels pointers need to be host memory pointers to arrays of device memory pointers.

    Declaration
    public static NppStatus nppiLUT_Linear_8u_C4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr[] pValues, CUdeviceptr[] pLevels, int[] nLevels)
    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).

    CUdeviceptr[] pValues

    Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.

    CUdeviceptr[] pLevels

    Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.

    System.Int32[] nLevels

    Host pointer to an array of 4 user defined input/output mapping points, one per color CHANNEL.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError - #NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX