Show / Hide Table of Contents

    Class NPPNativeMethods.NPPi.MemSet

    Set methods for images of various types. Images are passed to these primitives via a pointer to the image data (first pixel in the ROI) and a step-width, i.e. the number of bytes between successive lines. The size of the area to be set (region-of-interest, ROI) is specified via a Size struct.

    In addition to the image data and ROI, all methods have a parameter to specify the value being set. In case of single channel images this is a single value, in case of multi-channel, an array of values is passed.

    Inheritance
    System.Object
    NPPNativeMethods.NPPi.MemSet
    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 MemSet

    Methods

    nppiSet_16s_AC4MR(Int16[], CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)

    Masked 4 channel 16-bit image set method, not affecting Alpha channel. For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

    Declaration
    public static NppStatus nppiSet_16s_AC4MR(short[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.Int16[] aValues

    Three-channel array containing the pixel-value to be set.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    Pointer to the mask image. This is a single channel 8-bit unsigned int image.

    System.Int32 nMaskStep

    Number of bytes between line starts of successive lines in the mask image.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiSet_16s_AC4R(Int16[], CUdeviceptr, Int32, NppiSize)

    4 channel 16-bit image set method, not affecting Alpha channel. For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

    Declaration
    public static NppStatus nppiSet_16s_AC4R(short[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Int16[] aValues

    Three-channel array containing the pixel-value to be set.

    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

    nppiSet_16s_C1MR(Int16, CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)

    Masked 16-bit image set.

    Declaration
    public static NppStatus nppiSet_16s_C1MR(short nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.Int16 nValue

    New pixel value.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    Pointer to the mask image. This is a single channel 8-bit unsigned int image.

    System.Int32 nMaskStep

    Number of bytes between line starts of successive lines in the mask image.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiSet_16s_C1R(Int16, CUdeviceptr, Int32, NppiSize)

    16-bit image set.

    Declaration
    public static NppStatus nppiSet_16s_C1R(short nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Int16 nValue

    New pixel value.

    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

    nppiSet_16s_C2R(Int16[], CUdeviceptr, Int32, NppiSize)

    2 channel 16-bit image set.

    Declaration
    public static NppStatus nppiSet_16s_C2R(short[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Int16[] aValues

    New pixel value.

    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

    nppiSet_16s_C3CR(Int16, CUdeviceptr, Int32, NppiSize)

    3 channel 16-bit unsigned image set affecting only single channel. For RGB images, this method allows setting of a single of the three (RGB) values without changing the contents of the other three channels. The channel is selected via the pDst pointer. The pointer needs to point to the actual first value to be set, e.g. in order to set the R-channel (first channel), one would pass pDst unmodified, since its value actually points to the r channel. If one wanted to modify the B channel (second channel), one would pass pDst + 2 to the function.

    Declaration
    public static NppStatus nppiSet_16s_C3CR(short nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Int16 nValue

    The pixel-value to be set.

    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

    nppiSet_16s_C3MR(Int16[], CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)

    Masked 3 channel 16-bit image set.

    Declaration
    public static NppStatus nppiSet_16s_C3MR(short[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.Int16[] aValue

    The pixel-value to be set.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    \ref mask_image_pointer.

    System.Int32 nMaskStep

    \ref mask_image_line_step.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiSet_16s_C3R(Int16[], CUdeviceptr, Int32, NppiSize)

    3 channel 16-bit image set.

    Declaration
    public static NppStatus nppiSet_16s_C3R(short[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Int16[] aValue

    The pixel-value to be set.

    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

    nppiSet_16s_C4CR(Int16, CUdeviceptr, Int32, NppiSize)

    4 channel 16-bit unsigned image set affecting only single channel. For RGBA images, this method allows setting of a single of the four (RGBA) values without changing the contents of the other three channels. The channel is selected via the pDst pointer. The pointer needs to point to the actual first value to be set, e.g. in order to set the R-channel (first channel), one would pass pDst unmodified, since its value actually points to the r channel. If one wanted to modify the B channel (second channel), one would pass pDst + 2 to the function.

    Declaration
    public static NppStatus nppiSet_16s_C4CR(short nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Int16 nValue

    The pixel-value to be set.

    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

    nppiSet_16s_C4MR(Int16[], CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)

    Masked 4 channel 16-bit image set.

    Declaration
    public static NppStatus nppiSet_16s_C4MR(short[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.Int16[] aValues

    New pixel value.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    Pointer to the mask image. This is a single channel 8-bit unsigned int image.

    System.Int32 nMaskStep

    Number of bytes between line starts of successive lines in the mask image.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiSet_16s_C4R(Int16[], CUdeviceptr, Int32, NppiSize)

    4 channel 16-bit image set.

    Declaration
    public static NppStatus nppiSet_16s_C4R(short[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Int16[] aValues

    New pixel value.

    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

    nppiSet_16sc_AC4R(Npp16sc[], CUdeviceptr, Int32, NppiSize)

    16-bit complex integer four-channel image set ignoring alpha.

    Declaration
    public static NppStatus nppiSet_16sc_AC4R(Npp16sc[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    Npp16sc[] aValue

    New pixel value.

    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

    nppiSet_16sc_C1R(Npp16sc, CUdeviceptr, Int32, NppiSize)

    16-bit complex integer image set.

    Declaration
    public static NppStatus nppiSet_16sc_C1R(Npp16sc oValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    Npp16sc oValue

    New pixel value.

    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

    nppiSet_16sc_C2R(Npp16sc[], CUdeviceptr, Int32, NppiSize)

    16-bit complex integer two-channel image set.

    Declaration
    public static NppStatus nppiSet_16sc_C2R(Npp16sc[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    Npp16sc[] aValue

    New pixel value.

    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

    nppiSet_16sc_C3R(Npp16sc[], CUdeviceptr, Int32, NppiSize)

    16-bit complex integer three-channel image set.

    Declaration
    public static NppStatus nppiSet_16sc_C3R(Npp16sc[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    Npp16sc[] aValue

    New pixel value.

    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

    nppiSet_16sc_C4R(Npp16sc[], CUdeviceptr, Int32, NppiSize)

    16-bit complex integer four-channel image set.

    Declaration
    public static NppStatus nppiSet_16sc_C4R(Npp16sc[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    Npp16sc[] aValue

    New pixel value.

    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

    nppiSet_16u_AC4MR(UInt16[], CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)

    Masked 4 channel 16-bit unsigned image set method, not affecting Alpha channel. For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

    Declaration
    public static NppStatus nppiSet_16u_AC4MR(ushort[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.UInt16[] aValues

    Three-channel array containing the pixel-value to be set.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    Pointer to the mask image. This is a single channel 8-bit unsigned int image.

    System.Int32 nMaskStep

    Number of bytes between line starts of successive lines in the mask image.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiSet_16u_AC4R(UInt16[], CUdeviceptr, Int32, NppiSize)

    4 channel 16-bit unsigned image set method, not affecting Alpha channel. For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

    Declaration
    public static NppStatus nppiSet_16u_AC4R(ushort[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.UInt16[] aValues

    Three-channel array containing the pixel-value to be set.

    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

    nppiSet_16u_C1MR(UInt16, CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)

    Masked 16-bit unsigned image set.

    Declaration
    public static NppStatus nppiSet_16u_C1MR(ushort nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.UInt16 nValue

    New pixel value.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    Pointer to the mask image. This is a single channel 8-bit unsigned int image.

    System.Int32 nMaskStep

    Number of bytes between line starts of successive lines in the mask image.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiSet_16u_C1R(UInt16, CUdeviceptr, Int32, NppiSize)

    16-bit unsigned image set.

    Declaration
    public static NppStatus nppiSet_16u_C1R(ushort nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.UInt16 nValue

    New pixel value.

    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

    nppiSet_16u_C2R(UInt16[], CUdeviceptr, Int32, NppiSize)

    2 channel 16-bit unsigned image set.

    Declaration
    public static NppStatus nppiSet_16u_C2R(ushort[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.UInt16[] aValues

    New pixel value.

    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

    nppiSet_16u_C3CR(UInt16, CUdeviceptr, Int32, NppiSize)

    3 channel 16-bit unsigned image set affecting only single channel.

    Declaration
    public static NppStatus nppiSet_16u_C3CR(ushort nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.UInt16 nValue

    The pixel-value to be set.

    CUdeviceptr pDst

    \ref select_destination_pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiSet_16u_C3MR(UInt16[], CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)

    Masked 3 channel 16-bit unsigned image set.

    Declaration
    public static NppStatus nppiSet_16u_C3MR(ushort[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.UInt16[] aValue

    The pixel-value to be set.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    \ref mask_image_pointer.

    System.Int32 nMaskStep

    \ref mask_image_line_step.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiSet_16u_C3R(UInt16[], CUdeviceptr, Int32, NppiSize)

    3 channel 16-bit unsigned image set.

    Declaration
    public static NppStatus nppiSet_16u_C3R(ushort[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.UInt16[] aValue

    The pixel-value to be set.

    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

    nppiSet_16u_C4CR(UInt16, CUdeviceptr, Int32, NppiSize)

    4 channel 16-bit unsigned image set affecting only single channel. For RGBA images, this method allows setting of a single of the four (RGBA) values without changing the contents of the other three channels. The channel is selected via the pDst pointer. The pointer needs to point to the actual first value to be set, e.g. in order to set the R-channel (first channel), one would pass pDst unmodified, since its value actually points to the r channel. If one wanted to modify the B channel (second channel), one would pass pDst + 2 to the function.

    Declaration
    public static NppStatus nppiSet_16u_C4CR(ushort nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.UInt16 nValue

    The pixel-value to be set.

    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

    nppiSet_16u_C4MR(UInt16[], CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)

    Masked 4 channel 16-bit unsigned image set.

    Declaration
    public static NppStatus nppiSet_16u_C4MR(ushort[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.UInt16[] aValues

    New pixel value.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    Pointer to the mask image. This is a single channel 8-bit unsigned int image.

    System.Int32 nMaskStep

    Number of bytes between line starts of successive lines in the mask image.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiSet_16u_C4R(UInt16[], CUdeviceptr, Int32, NppiSize)

    4 channel 16-bit unsigned image set.

    Declaration
    public static NppStatus nppiSet_16u_C4R(ushort[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.UInt16[] aValues

    New pixel value.

    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

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

    Masked 4 channel 32-bit floating point image set method, not affecting Alpha channel. For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

    Declaration
    public static NppStatus nppiSet_32f_AC4MR(float[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.Single[] aValues

    Three-channel array containing the pixel-value to be set.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    Pointer to the mask image. This is a single channel 8-bit unsigned int image.

    System.Int32 nMaskStep

    Number of bytes between line starts of successive lines in the mask image.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

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

    4 channel 32-bit floating point image set method, not affecting Alpha channel. For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

    Declaration
    public static NppStatus nppiSet_32f_AC4R(float[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Single[] aValues

    Three-channel array containing the pixel-value to be set.

    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

    nppiSet_32f_C1MR(Single, CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)

    Masked 32-bit floating point image set.

    Declaration
    public static NppStatus nppiSet_32f_C1MR(float nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.Single nValue

    New pixel value.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    Pointer to the mask image. This is a single channel 8-bit unsigned int image.

    System.Int32 nMaskStep

    Number of bytes between line starts of successive lines in the mask image.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiSet_32f_C1R(Single, CUdeviceptr, Int32, NppiSize)

    32-bit floating point image set.

    Declaration
    public static NppStatus nppiSet_32f_C1R(float nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Single nValue

    New pixel value.

    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

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

    2 channel 32-bit floating point image set.

    Declaration
    public static NppStatus nppiSet_32f_C2R(float[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Single[] aValue

    The pixel-value to be set.

    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

    nppiSet_32f_C3CR(Single, CUdeviceptr, Int32, NppiSize)

    3 channel 32-bit floating point image set affecting only single channel. For RGB images, this method allows setting of a single of the three (RGB) values without changing the contents of the other three channels. The channel is selected via the pDst pointer. The pointer needs to point to the actual first value to be set, e.g. in order to set the R-channel (first channel), one would pass pDst unmodified, since its value actually points to the r channel. If one wanted to modify the B channel (second channel), one would pass pDst + 2 to the function.

    Declaration
    public static NppStatus nppiSet_32f_C3CR(float aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Single aValue

    The pixel-value to be set.

    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

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

    Masked 3 channel 32-bit floating point image set.

    Declaration
    public static NppStatus nppiSet_32f_C3MR(float[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.Single[] aValue

    The pixel-value to be set.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    \ref mask_image_pointer.

    System.Int32 nMaskStep

    \ref mask_image_line_step.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

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

    3 channel 32-bit floating point image set.

    Declaration
    public static NppStatus nppiSet_32f_C3R(float[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Single[] aValue

    The pixel-value to be set.

    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

    nppiSet_32f_C4CR(Single, CUdeviceptr, Int32, NppiSize)

    4 channel 32-bit floating point image set affecting only single channel. For RGBA images, this method allows setting of a single of the four (RGBA) values without changing the contents of the other three channels. The channel is selected via the pDst pointer. The pointer needs to point to the actual first value to be set, e.g. in order to set the R-channel (first channel), one would pass pDst unmodified, since its value actually points to the r channel. If one wanted to modify the B channel (second channel), one would pass pDst + 2 to the function.

    Declaration
    public static NppStatus nppiSet_32f_C4CR(float nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Single nValue

    The pixel-value to be set.

    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

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

    Masked 4 channel 32-bit floating point image set.

    Declaration
    public static NppStatus nppiSet_32f_C4MR(float[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.Single[] aValues

    New pixel value.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    Pointer to the mask image. This is a single channel 8-bit unsigned int image.

    System.Int32 nMaskStep

    Number of bytes between line starts of successive lines in the mask image.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

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

    4 channel 32-bit floating point image set.

    Declaration
    public static NppStatus nppiSet_32f_C4R(float[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Single[] aValues

    New pixel value.

    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

    nppiSet_32fc_AC4R(Npp32fc[], CUdeviceptr, Int32, NppiSize)

    32-bit complex four-channel image set ignoring alpha.

    Declaration
    public static NppStatus nppiSet_32fc_AC4R(Npp32fc[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    Npp32fc[] aValue

    New pixel value.

    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

    nppiSet_32fc_C1R(Npp32fc, CUdeviceptr, Int32, NppiSize)

    Single channel 32-bit complex image set.

    Declaration
    public static NppStatus nppiSet_32fc_C1R(Npp32fc oValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    Npp32fc oValue

    The pixel-value to be set.

    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

    nppiSet_32fc_C2R(Npp32fc[], CUdeviceptr, Int32, NppiSize)

    Two channel 32-bit complex image set.

    Declaration
    public static NppStatus nppiSet_32fc_C2R(Npp32fc[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    Npp32fc[] aValue

    The pixel-value to be set.

    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

    nppiSet_32fc_C3R(Npp32fc[], CUdeviceptr, Int32, NppiSize)

    Three channel 32-bit complex image set.

    Declaration
    public static NppStatus nppiSet_32fc_C3R(Npp32fc[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    Npp32fc[] aValue

    The pixel-value to be set.

    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

    nppiSet_32fc_C4R(Npp32fc[], CUdeviceptr, Int32, NppiSize)

    Four channel 32-bit complex image set.

    Declaration
    public static NppStatus nppiSet_32fc_C4R(Npp32fc[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    Npp32fc[] aValue

    The pixel-value to be set.

    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

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

    Masked 4 channel 16-bit image set method, not affecting Alpha channel. For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

    Declaration
    public static NppStatus nppiSet_32s_AC4MR(int[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.Int32[] aValues

    Three-channel array containing the pixel-value to be set.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    Pointer to the mask image. This is a single channel 8-bit unsigned int image.

    System.Int32 nMaskStep

    Number of bytes between line starts of successive lines in the mask image.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

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

    4 channel 16-bit image set method, not affecting Alpha channel. For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

    Declaration
    public static NppStatus nppiSet_32s_AC4R(int[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Int32[] aValues

    Three-channel array containing the pixel-value to be set.

    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

    nppiSet_32s_C1MR(Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)

    Masked 32-bit image set.

    Declaration
    public static NppStatus nppiSet_32s_C1MR(int nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.Int32 nValue

    New pixel value.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    Pointer to the mask image. This is a single channel 8-bit unsigned int image.

    System.Int32 nMaskStep

    Number of bytes between line starts of successive lines in the mask image.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiSet_32s_C1R(Int32, CUdeviceptr, Int32, NppiSize)

    32-bit image set.

    Declaration
    public static NppStatus nppiSet_32s_C1R(int nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Int32 nValue

    New pixel value.

    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

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

    2 channel 32-bit image set.

    Declaration
    public static NppStatus nppiSet_32s_C2R(int[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Int32[] aValue

    The pixel-value to be set.

    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

    nppiSet_32s_C3CR(Int32, CUdeviceptr, Int32, NppiSize)

    3 channel 32-bit signed image set affecting only single channel. For RGB images, this method allows setting of a single of the three (RGB) values without changing the contents of the other three channels. The channel is selected via the pDst pointer. The pointer needs to point to the actual first value to be set, e.g. in order to set the R-channel (first channel), one would pass pDst unmodified, since its value actually points to the r channel. If one wanted to modify the B channel (second channel), one would pass pDst + 2 to the function.

    Declaration
    public static NppStatus nppiSet_32s_C3CR(int nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Int32 nValue

    The pixel-value to be set.

    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

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

    Masked 3 channel 32-bit image set.

    Declaration
    public static NppStatus nppiSet_32s_C3MR(int[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.Int32[] aValue

    The pixel-value to be set.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    \ref mask_image_pointer.

    System.Int32 nMaskStep

    \ref mask_image_line_step.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

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

    3 channel 32-bit image set.

    Declaration
    public static NppStatus nppiSet_32s_C3R(int[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Int32[] aValue

    The pixel-value to be set.

    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

    nppiSet_32s_C4CR(Int32, CUdeviceptr, Int32, NppiSize)

    4 channel 32-bit unsigned image set affecting only single channel. For RGBA images, this method allows setting of a single of the four (RGBA) values without changing the contents of the other three channels. The channel is selected via the pDst pointer. The pointer needs to point to the actual first value to be set, e.g. in order to set the R-channel (first channel), one would pass pDst unmodified, since its value actually points to the r channel. If one wanted to modify the B channel (second channel), one would pass pDst + 2 to the function.

    Declaration
    public static NppStatus nppiSet_32s_C4CR(int nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Int32 nValue

    The pixel-value to be set.

    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

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

    Masked 4 channel 32-bit image set.

    Declaration
    public static NppStatus nppiSet_32s_C4MR(int[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.Int32[] aValues

    New pixel value.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    Pointer to the mask image. This is a single channel 8-bit unsigned int image.

    System.Int32 nMaskStep

    Number of bytes between line starts of successive lines in the mask image.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

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

    4 channel 32-bit image set.

    Declaration
    public static NppStatus nppiSet_32s_C4R(int[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Int32[] aValues

    New pixel value.

    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

    nppiSet_32sc_AC4R(Npp32sc[], CUdeviceptr, Int32, NppiSize)

    32-bit complex integer four-channel image set ignoring alpha.

    Declaration
    public static NppStatus nppiSet_32sc_AC4R(Npp32sc[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    Npp32sc[] aValue

    New pixel value.

    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

    nppiSet_32sc_C1R(Npp32sc, CUdeviceptr, Int32, NppiSize)

    Single channel 32-bit complex integer image set.

    Declaration
    public static NppStatus nppiSet_32sc_C1R(Npp32sc oValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    Npp32sc oValue

    The pixel-value to be set.

    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

    nppiSet_32sc_C2R(Npp32sc[], CUdeviceptr, Int32, NppiSize)

    Two channel 32-bit complex integer image set.

    Declaration
    public static NppStatus nppiSet_32sc_C2R(Npp32sc[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    Npp32sc[] aValue

    The pixel-value to be set.

    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

    nppiSet_32sc_C3R(Npp32sc[], CUdeviceptr, Int32, NppiSize)

    Three channel 32-bit complex integer image set.

    Declaration
    public static NppStatus nppiSet_32sc_C3R(Npp32sc[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    Npp32sc[] aValue

    The pixel-value to be set.

    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

    nppiSet_32sc_C4R(Npp32sc[], CUdeviceptr, Int32, NppiSize)

    Four channel 32-bit complex integer image set.

    Declaration
    public static NppStatus nppiSet_32sc_C4R(Npp32sc[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    Npp32sc[] aValue

    The pixel-value to be set.

    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

    nppiSet_32u_AC4R(UInt32[], CUdeviceptr, Int32, NppiSize)

    4 channel 32-bit unsigned image set method, not affecting Alpha channel.

    Declaration
    public static NppStatus nppiSet_32u_AC4R(uint[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.UInt32[] aValue

    The pixel-value to be set.

    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

    nppiSet_32u_C1R(UInt32, CUdeviceptr, Int32, NppiSize)

    32-bit unsigned image set.

    Declaration
    public static NppStatus nppiSet_32u_C1R(uint nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.UInt32 nValue

    The pixel-value to be set.

    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

    nppiSet_32u_C2R(UInt32[], CUdeviceptr, Int32, NppiSize)

    2 channel 32-bit unsigned image set.

    Declaration
    public static NppStatus nppiSet_32u_C2R(uint[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.UInt32[] aValue

    The pixel-value to be set.

    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

    nppiSet_32u_C3R(UInt32[], CUdeviceptr, Int32, NppiSize)

    3 channel 32-bit unsigned image set.

    Declaration
    public static NppStatus nppiSet_32u_C3R(uint[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.UInt32[] aValue

    The pixel-value to be set.

    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

    nppiSet_32u_C4R(UInt32[], CUdeviceptr, Int32, NppiSize)

    4 channel 32-bit unsigned image set.

    Declaration
    public static NppStatus nppiSet_32u_C4R(uint[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.UInt32[] aValue

    The pixel-value to be set.

    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

    nppiSet_8s_AC4R(SByte[], CUdeviceptr, Int32, NppiSize)

    8-bit four-channel image set ignoring alpha channel.

    Declaration
    public static NppStatus nppiSet_8s_AC4R(sbyte[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.SByte[] aValue

    The pixel value to be set.

    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

    nppiSet_8s_C1R(SByte, CUdeviceptr, Int32, NppiSize)

    8-bit image set.

    Declaration
    public static NppStatus nppiSet_8s_C1R(sbyte nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.SByte nValue

    The pixel value to be set.

    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

    nppiSet_8s_C2R(SByte[], CUdeviceptr, Int32, NppiSize)

    8-bit two-channel image set.

    Declaration
    public static NppStatus nppiSet_8s_C2R(sbyte[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.SByte[] aValue

    The pixel value to be set.

    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

    nppiSet_8s_C3R(SByte[], CUdeviceptr, Int32, NppiSize)

    8-bit three-channel image set.

    Declaration
    public static NppStatus nppiSet_8s_C3R(sbyte[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.SByte[] aValue

    The pixel value to be set.

    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

    nppiSet_8s_C4R(SByte[], CUdeviceptr, Int32, NppiSize)

    8-bit four-channel image set.

    Declaration
    public static NppStatus nppiSet_8s_C4R(sbyte[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.SByte[] aValue

    The pixel value to be set.

    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

    nppiSet_8u_AC4MR(Byte[], CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)

    Masked 4 channel 8-bit unsigned image set method, not affecting Alpha channel. For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

    Declaration
    public static NppStatus nppiSet_8u_AC4MR(byte[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.Byte[] aValues

    Three-channel array containing the pixel-value to be set.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    Pointer to the mask image. This is a single channel 8-bit unsigned int image.

    System.Int32 nMaskStep

    Number of bytes between line starts of successive lines in the mask image.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiSet_8u_AC4R(Byte[], CUdeviceptr, Int32, NppiSize)

    4 channel 8-bit unsigned image set method, not affecting Alpha channel. For RGBA images, this method allows setting of the RGB values without changing the contents of the alpha-channel (fourth channel).

    Declaration
    public static NppStatus nppiSet_8u_AC4R(byte[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Byte[] aValues

    Three-channel array containing the pixel-value to be set.

    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

    nppiSet_8u_C1MR(Byte, CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)

    Masked 8-bit unsigned image set. The 8-bit mask image affects setting of the respective pixels in the destination image. If the mask value is zero (0) the pixel is not set, if the mask is non-zero, the corresponding destination pixel is set to specified value.

    Declaration
    public static NppStatus nppiSet_8u_C1MR(byte nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.Byte nValue

    The pixel value to be set.

    CUdeviceptr pDst

    Pointer Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    Pointer to the mask image. This is a single channel 8-bit unsigned int image.

    System.Int32 nMaskStep

    Number of bytes between line starts of successive lines in the mask image.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiSet_8u_C1R(Byte, CUdeviceptr, Int32, NppiSize)

    8-bit unsigned image set.

    Declaration
    public static NppStatus nppiSet_8u_C1R(byte nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Byte nValue

    The pixel value to be set.

    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

    nppiSet_8u_C2R(Byte[], CUdeviceptr, Int32, NppiSize)

    2 channel 8-bit unsigned image set.

    Declaration
    public static NppStatus nppiSet_8u_C2R(byte[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Byte[] aValue

    The pixel value to be set.

    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

    nppiSet_8u_C3CR(Byte, CUdeviceptr, Int32, NppiSize)

    3 channel 8-bit unsigned image set affecting only single channel.

    Declaration
    public static NppStatus nppiSet_8u_C3CR(byte nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Byte nValue

    The pixel-value to be set.

    CUdeviceptr pDst

    \ref select_destination_pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiSet_8u_C3MR(Byte[], CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)

    Masked 3 channel 8-bit unsigned image set.

    Declaration
    public static NppStatus nppiSet_8u_C3MR(byte[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.Byte[] aValue

    The pixel-value to be set.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    \ref mask_image_pointer.

    System.Int32 nMaskStep

    \ref mask_image_line_step.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiSet_8u_C3R(Byte[], CUdeviceptr, Int32, NppiSize)

    3 channel 8-bit unsigned image set.

    Declaration
    public static NppStatus nppiSet_8u_C3R(byte[] aValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Byte[] aValue

    The pixel value to be set.

    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

    nppiSet_8u_C4CR(Byte, CUdeviceptr, Int32, NppiSize)

    4 channel 8-bit unsigned image set affecting only single channel. For RGBA images, this method allows setting of a single of the four (RGBA) values without changing the contents of the other three channels. The channel is selected via the pDst pointer. The pointer needs to point to the actual first value to be set, e.g. in order to set the R-channel (first channel), one would pass pDst unmodified, since its value actually points to the r channel. If one wanted to modify the B channel (second channel), one would pass pDst + 2 to the function.

    Declaration
    public static NppStatus nppiSet_8u_C4CR(byte nValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Byte nValue

    The pixel-value to be set.

    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

    nppiSet_8u_C4MR(Byte[], CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)

    Masked 4 channel 8-bit unsigned image set.

    Declaration
    public static NppStatus nppiSet_8u_C4MR(byte[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pMask, int nMaskStep)
    Parameters
    Type Name Description
    System.Byte[] aValues

    Four-channel array containing the pixel-value to be set.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    CUdeviceptr pMask

    Pointer to the mask image. This is a single channel 8-bit unsigned int image.

    System.Int32 nMaskStep

    Number of bytes between line starts of successive lines in the mask image.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiSet_8u_C4R(Byte[], CUdeviceptr, Int32, NppiSize)

    4 channel 8-bit unsigned image set.

    Declaration
    public static NppStatus nppiSet_8u_C4R(byte[] aValues, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    System.Byte[] aValues

    Four-channel array containing the pixel-value to be set.

    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

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