Show / Hide Table of Contents

    Class NPPImage_8uC4

    Inheritance
    System.Object
    NPPImageBase
    NPPImage_8uC4
    Implements
    System.IDisposable
    Inherited Members
    NPPImageBase._devPtr
    NPPImageBase._devPtrRoi
    NPPImageBase._sizeOriginal
    NPPImageBase._sizeRoi
    NPPImageBase._pointRoi
    NPPImageBase._pitch
    NPPImageBase._channels
    NPPImageBase._typeSize
    NPPImageBase.res
    NPPImageBase.status
    NPPImageBase.disposed
    NPPImageBase._isOwner
    NPPImageBase.Dispose()
    NPPImageBase.Dispose(Boolean)
    NPPImageBase.CopyToDevice(IntPtr, SizeT)
    NPPImageBase.CopyToDevice<T>(CudaPitchedDeviceVariable<T>)
    NPPImageBase.CopyToDevice(NPPImageBase)
    NPPImageBase.CopyToDevice<T>(CudaDeviceVariable<T>)
    NPPImageBase.CopyToDevice(CUdeviceptr)
    NPPImageBase.CopyToDevice(CUdeviceptr, SizeT)
    NPPImageBase.CopyToHost(IntPtr, SizeT)
    NPPImageBase.CopyToDevice(Array, SizeT)
    NPPImageBase.CopyToHost(Array, SizeT)
    NPPImageBase.CopyToDevice(IntPtr)
    NPPImageBase.CopyToHost(IntPtr)
    NPPImageBase.CopyToDevice(Array)
    NPPImageBase.CopyToHost<T>(T[])
    NPPImageBase.CopyToDevice(Bitmap)
    NPPImageBase.CopyToHost(Bitmap)
    NPPImageBase.CopyToDeviceRoi(IntPtr, SizeT, NppiRect)
    NPPImageBase.CopyToDeviceRoi<T>(CudaPitchedDeviceVariable<T>, NppiRect)
    NPPImageBase.CopyToDeviceRoi(NPPImageBase)
    NPPImageBase.CopyToDeviceRoi<T>(CudaDeviceVariable<T>, NppiRect)
    NPPImageBase.CopyToDeviceRoi(CUdeviceptr, NppiRect)
    NPPImageBase.CopyToDeviceRoi(CUdeviceptr, SizeT, NppiRect)
    NPPImageBase.CopyToHostRoi(IntPtr, SizeT, NppiRect)
    NPPImageBase.CopyToDeviceRoi(Array, SizeT, NppiRect)
    NPPImageBase.CopyToHostRoi(Array, SizeT, NppiRect)
    NPPImageBase.CopyToDeviceRoi(IntPtr, NppiRect)
    NPPImageBase.CopyToHostRoi(IntPtr, NppiRect)
    NPPImageBase.CopyToDeviceRoi(Array, NppiRect)
    NPPImageBase.CopyToHostRoi<T>(T[], NppiRect)
    NPPImageBase.CopyToDeviceRoi(Bitmap, NppiRect)
    NPPImageBase.CopyToHostRoi(Bitmap, NppiRect)
    NPPImageBase.AsyncCopyToDevice(CUdeviceptr, CUstream)
    NPPImageBase.AsyncCopyToDevice<T>(CudaDeviceVariable<T>, CUstream)
    NPPImageBase.AsyncCopyToDevice<T>(CudaPitchedDeviceVariable<T>, CUstream)
    NPPImageBase.AsyncCopyToDevice(NPPImageBase, CUstream)
    NPPImageBase.Size
    NPPImageBase.SizeRoi
    NPPImageBase.PointRoi
    NPPImageBase.DevicePointer
    NPPImageBase.DevicePointerRoi
    NPPImageBase.Width
    NPPImageBase.WidthInBytes
    NPPImageBase.Height
    NPPImageBase.WidthRoi
    NPPImageBase.WidthRoiInBytes
    NPPImageBase.HeightRoi
    NPPImageBase.Pitch
    NPPImageBase.TotalSizeInBytes
    NPPImageBase.Channels
    NPPImageBase.SetRoi(NppiRect)
    NPPImageBase.SetRoi(Int32, Int32, Int32, Int32)
    NPPImageBase.ResetRoi()
    NPPImageBase.GetResizeRect(Double, Double, Double, Double, InterpolationMode)
    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 class NPPImage_8uC4 : NPPImageBase, IDisposable

    Constructors

    | Improve this Doc View Source

    NPPImage_8uC4(CUdeviceptr, NppiSize, Int32)

    Creates a new NPPImage from allocated device ptr.

    Declaration
    public NPPImage_8uC4(CUdeviceptr devPtr, NppiSize size, int pitch)
    Parameters
    Type Name Description
    CUdeviceptr devPtr

    Already allocated device ptr.

    NppiSize size

    Image size

    System.Int32 pitch

    Pitch / Line step

    | Improve this Doc View Source

    NPPImage_8uC4(CUdeviceptr, NppiSize, Int32, Boolean)

    Creates a new NPPImage from allocated device ptr.

    Declaration
    public NPPImage_8uC4(CUdeviceptr devPtr, NppiSize size, int pitch, bool isOwner)
    Parameters
    Type Name Description
    CUdeviceptr devPtr

    Already allocated device ptr.

    NppiSize size

    Image size

    System.Int32 pitch

    Pitch / Line step

    System.Boolean isOwner

    If TRUE, devPtr is freed when disposing

    | Improve this Doc View Source

    NPPImage_8uC4(CUdeviceptr, Int32, Int32, Int32)

    Creates a new NPPImage from allocated device ptr. Does not take ownership of decPtr.

    Declaration
    public NPPImage_8uC4(CUdeviceptr devPtr, int width, int height, int pitch)
    Parameters
    Type Name Description
    CUdeviceptr devPtr

    Already allocated device ptr.

    System.Int32 width

    Image width in pixels

    System.Int32 height

    Image height in pixels

    System.Int32 pitch

    Pitch / Line step

    | Improve this Doc View Source

    NPPImage_8uC4(CUdeviceptr, Int32, Int32, Int32, Boolean)

    Creates a new NPPImage from allocated device ptr.

    Declaration
    public NPPImage_8uC4(CUdeviceptr devPtr, int width, int height, int pitch, bool isOwner)
    Parameters
    Type Name Description
    CUdeviceptr devPtr

    Already allocated device ptr.

    System.Int32 width

    Image width in pixels

    System.Int32 height

    Image height in pixels

    System.Int32 pitch

    Pitch / Line step

    System.Boolean isOwner

    If TRUE, devPtr is freed when disposing

    | Improve this Doc View Source

    NPPImage_8uC4(CudaPitchedDeviceVariable<uchar4>)

    Creates a new NPPImage from allocated device ptr.

    Declaration
    public NPPImage_8uC4(CudaPitchedDeviceVariable<uchar4> devPtr)
    Parameters
    Type Name Description
    CudaPitchedDeviceVariable<uchar4> devPtr

    Already allocated device ptr.

    | Improve this Doc View Source

    NPPImage_8uC4(CudaPitchedDeviceVariable<uchar4>, Boolean)

    Creates a new NPPImage from allocated device ptr.

    Declaration
    public NPPImage_8uC4(CudaPitchedDeviceVariable<uchar4> devPtr, bool isOwner)
    Parameters
    Type Name Description
    CudaPitchedDeviceVariable<uchar4> devPtr

    Already allocated device ptr.

    System.Boolean isOwner

    If TRUE, devPtr is freed when disposing

    | Improve this Doc View Source

    NPPImage_8uC4(NPPImageBase)

    Creates a new NPPImage from allocated device ptr. Does not take ownership of inner image device pointer.

    Declaration
    public NPPImage_8uC4(NPPImageBase image)
    Parameters
    Type Name Description
    NPPImageBase image

    NPP image

    | Improve this Doc View Source

    NPPImage_8uC4(NppiSize)

    Allocates new memory on device using NPP-Api.

    Declaration
    public NPPImage_8uC4(NppiSize size)
    Parameters
    Type Name Description
    NppiSize size

    Image size

    | Improve this Doc View Source

    NPPImage_8uC4(Int32, Int32)

    Allocates new memory on device using NPP-Api.

    Declaration
    public NPPImage_8uC4(int nWidthPixels, int nHeightPixels)
    Parameters
    Type Name Description
    System.Int32 nWidthPixels

    Image width in pixels

    System.Int32 nHeightPixels

    Image height in pixels

    Methods

    | Improve this Doc View Source

    AbsDiff(NPPImage_8uC4, NPPImage_8uC4)

    Absolute difference of this minus src2.

    Declaration
    public void AbsDiff(NPPImage_8uC4 src2, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    Add(NPPImage_8uC4, NPPImage_8uC4, Int32)

    Image addition, scale by 2^(-nScaleFactor), then clamp to saturated value.

    Declaration
    public void Add(NPPImage_8uC4 src2, NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    Add(NPPImage_8uC4, Int32)

    In place image addition, scale by 2^(-nScaleFactor), then clamp to saturated value.

    Declaration
    public void Add(NPPImage_8uC4 src2, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    Add(Byte[], NPPImage_8uC4, Int32)

    Add constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.

    Declaration
    public void Add(byte[] nConstant, NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Values to add

    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    Add(Byte[], Int32)

    Add constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.

    Declaration
    public void Add(byte[] nConstant, int nScaleFactor)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Values to add

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    AddA(NPPImage_8uC4, NPPImage_8uC4, Int32)

    Image addition, scale by 2^(-nScaleFactor), then clamp to saturated value. Unmodified Alpha.

    Declaration
    public void AddA(NPPImage_8uC4 src2, NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    AddA(NPPImage_8uC4, Int32)

    In place image addition, scale by 2^(-nScaleFactor), then clamp to saturated value. Unmodified Alpha.

    Declaration
    public void AddA(NPPImage_8uC4 src2, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    AddA(Byte[], NPPImage_8uC4, Int32)

    Add constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Unmodified Alpha.

    Declaration
    public void AddA(byte[] nConstant, NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Values to add

    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    AddA(Byte[], Int32)

    Add constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace. Unmodified Alpha.

    Declaration
    public void AddA(byte[] nConstant, int nScaleFactor)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Values to add

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    ADotProdGetBufferHostSize()

    Device scratch buffer size (in bytes) for nppiDotProd_8u64f_C4R. Ignoring alpha channel.

    Declaration
    public int ADotProdGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    ADotProduct(NPPImage_8uC4, CudaDeviceVariable<Double>)

    Four-channel 8-bit unsigned image DotProd. Buffer is internally allocated and freed. Ignoring alpha channel.

    Declaration
    public void ADotProduct(NPPImage_8uC4 src2, CudaDeviceVariable<double> pDp)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    CudaDeviceVariable<System.Double> pDp

    Pointer to the computed dot product of the two images. (3 * sizeof(double))

    | Improve this Doc View Source

    ADotProduct(NPPImage_8uC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    Four-channel 8-bit unsigned image DotProd. Ignoring alpha channel.

    Declaration
    public void ADotProduct(NPPImage_8uC4 src2, CudaDeviceVariable<double> pDp, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    CudaDeviceVariable<System.Double> pDp

    Pointer to the computed dot product of the two images. (3 * sizeof(double))

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at ADotProdGetBufferHostSize()

    | Improve this Doc View Source

    AlphaComp(NPPImage_8uC4, NPPImage_8uC4, NppiAlphaOp)

    Four 8-bit unsigned char channel image composition using image alpha values (0 - max channel pixel value).

    Declaration
    public void AlphaComp(NPPImage_8uC4 src2, NPPImage_8uC4 dest, NppiAlphaOp nppAlphaOp)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    NppiAlphaOp nppAlphaOp

    alpha compositing operation

    | Improve this Doc View Source

    AlphaComp(Byte, NPPImage_8uC4, Byte, NPPImage_8uC4, NppiAlphaOp)

    Image composition using constant alpha.

    Declaration
    public void AlphaComp(byte alpha1, NPPImage_8uC4 src2, byte alpha2, NPPImage_8uC4 dest, NppiAlphaOp nppAlphaOp)
    Parameters
    Type Name Description
    System.Byte alpha1

    constant alpha for this image

    NPPImage_8uC4 src2

    2nd source image

    System.Byte alpha2

    constant alpha for src2

    NPPImage_8uC4 dest

    Destination image

    NppiAlphaOp nppAlphaOp

    alpha compositing operation

    | Improve this Doc View Source

    AlphaCompA(Byte, NPPImage_8uC4, Byte, NPPImage_8uC4, NppiAlphaOp)

    Image composition using constant alpha. Not affecting alpha channel.

    Declaration
    public void AlphaCompA(byte alpha1, NPPImage_8uC4 src2, byte alpha2, NPPImage_8uC4 dest, NppiAlphaOp nppAlphaOp)
    Parameters
    Type Name Description
    System.Byte alpha1

    constant alpha for this image

    NPPImage_8uC4 src2

    2nd source image

    System.Byte alpha2

    constant alpha for src2

    NPPImage_8uC4 dest

    Destination image

    NppiAlphaOp nppAlphaOp

    alpha compositing operation

    | Improve this Doc View Source

    AlphaCompColorKeyA(Byte, NPPImage_8uC4, Byte, NPPImage_8uC4, Byte[], NppiAlphaOp)

    complement color key replacement of source image 1 by source image 2 with alpha blending.

    Declaration
    public void AlphaCompColorKeyA(byte alpha1, NPPImage_8uC4 src2, byte alpha2, NPPImage_8uC4 dest, byte[] colorKeyConst, NppiAlphaOp nppAlphaOp)
    Parameters
    Type Name Description
    System.Byte alpha1

    source1 image alpha opacity (0 - max channel pixel value).

    NPPImage_8uC4 src2

    source2 packed pixel format image.

    System.Byte alpha2

    source2 image alpha opacity (0 - max channel pixel value).

    NPPImage_8uC4 dest

    Destination image

    System.Byte[] colorKeyConst

    color key constants

    NppiAlphaOp nppAlphaOp

    NppiAlphaOp alpha compositing operation selector (excluding premul ops).

    | Improve this Doc View Source

    AlphaPremul(Byte)

    In place alpha premultiplication using constant alpha.

    Declaration
    public void AlphaPremul(byte alpha)
    Parameters
    Type Name Description
    System.Byte alpha

    alpha

    | Improve this Doc View Source

    AlphaPremul(Byte, NPPImage_8uC4)

    Image premultiplication using constant alpha.

    Declaration
    public void AlphaPremul(byte alpha, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    System.Byte alpha

    alpha

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    AlphaPremulA()

    Four 8-bit unsigned char channel in place image premultiplication with pixel alpha (0 - max channel pixel value).

    Declaration
    public void AlphaPremulA()
    | Improve this Doc View Source

    AlphaPremulA(NPPImage_8uC4)

    Four 8-bit unsigned char channel image premultiplication with pixel alpha (0 - max channel pixel value).

    Declaration
    public void AlphaPremulA(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    AlphaPremulA(Byte)

    In place alpha premultiplication using constant alpha. Not affecting alpha channel.

    Declaration
    public void AlphaPremulA(byte alpha)
    Parameters
    Type Name Description
    System.Byte alpha

    alpha

    | Improve this Doc View Source

    AlphaPremulA(Byte, NPPImage_8uC4)

    Image premultiplication using constant alpha. Not affecting alpha channel.

    Declaration
    public void AlphaPremulA(byte alpha, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    System.Byte alpha

    alpha

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    And(NPPImage_8uC4)

    In place image logical and.

    Declaration
    public void And(NPPImage_8uC4 src2)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    | Improve this Doc View Source

    And(NPPImage_8uC4, NPPImage_8uC4)

    Image logical and.

    Declaration
    public void And(NPPImage_8uC4 src2, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    And(Byte[])

    In place image logical and with constant.

    Declaration
    public void And(byte[] nConstant)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value (Array length = 4)

    | Improve this Doc View Source

    And(Byte[], NPPImage_8uC4)

    Image logical and with constant.

    Declaration
    public void And(byte[] nConstant, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value (Array length = 4)

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    AndA(NPPImage_8uC4)

    In place image logical and. Unchanged Alpha.

    Declaration
    public void AndA(NPPImage_8uC4 src2)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    | Improve this Doc View Source

    AndA(NPPImage_8uC4, NPPImage_8uC4)

    Image logical and. Unchanged Alpha.

    Declaration
    public void AndA(NPPImage_8uC4 src2, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    AndA(Byte[])

    In place image logical and with constant. Unchanged Alpha.

    Declaration
    public void AndA(byte[] nConstant)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value (Array length = 4)

    | Improve this Doc View Source

    AndA(Byte[], NPPImage_8uC4)

    Image logical and with constant. Unchanged Alpha.

    Declaration
    public void AndA(byte[] nConstant, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value (Array length = 4)

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    AverageError(NPPImage_8uC4, CudaDeviceVariable<Double>)

    image average error. User buffer is internally allocated and freed.

    Declaration
    public void AverageError(NPPImage_8uC4 src2, CudaDeviceVariable<double> pError)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    | Improve this Doc View Source

    AverageError(NPPImage_8uC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image average error.

    Declaration
    public void AverageError(NPPImage_8uC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    CudaDeviceVariable<System.Byte> buffer

    Pointer to the user-allocated scratch buffer required for the AverageError operation.

    | Improve this Doc View Source

    AverageErrorGetBufferHostSize()

    Device scratch buffer size (in bytes) for AverageError.

    Declaration
    public int AverageErrorGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    AverageRelativeError(NPPImage_8uC4, CudaDeviceVariable<Double>)

    image average relative error. User buffer is internally allocated and freed.

    Declaration
    public void AverageRelativeError(NPPImage_8uC4 src2, CudaDeviceVariable<double> pError)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    | Improve this Doc View Source

    AverageRelativeError(NPPImage_8uC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image average relative error.

    Declaration
    public void AverageRelativeError(NPPImage_8uC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    CudaDeviceVariable<System.Byte> buffer

    Pointer to the user-allocated scratch buffer required for the AverageRelativeError operation.

    | Improve this Doc View Source

    AverageRelativeErrorGetBufferHostSize()

    Device scratch buffer size (in bytes) for AverageRelativeError.

    Declaration
    public int AverageRelativeErrorGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    BGRToCbYCr422(NPPImage_8uC2)

    4 channel 8-bit unsigned packed BGR with alpha to 2 channel 8-bit unsigned packed CbYCr422 color conversion.

    Declaration
    public void BGRToCbYCr422(NPPImage_8uC2 dest)
    Parameters
    Type Name Description
    NPPImage_8uC2 dest

    Destination image

    | Improve this Doc View Source

    BGRToCbYCr422_709HDTV(NPPImage_8uC2)

    4 channel 8-bit unsigned packed BGR with alpha to 2 channel 8-bit unsigned packed CbYCr422_709HDTV color conversion.

    Declaration
    public void BGRToCbYCr422_709HDTV(NPPImage_8uC2 dest)
    Parameters
    Type Name Description
    NPPImage_8uC2 dest

    Destination image

    | Improve this Doc View Source

    BGRToHLS(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    4 channel 8-bit unsigned packed BGR with alpha to 4 channel 8-bit unsigned planar HLS with alpha color conversion.

    Declaration
    public void BGRToHLS(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2, NPPImage_8uC1 dest3)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest0

    Destination image channel 0

    NPPImage_8uC1 dest1

    Destination image channel 1

    NPPImage_8uC1 dest2

    Destination image channel 2

    NPPImage_8uC1 dest3

    Destination image channel 3

    | Improve this Doc View Source

    BGRToHLS(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    4 channel 8-bit unsigned planar BGR with alpha to 4 channel 8-bit unsigned planar HLS with alpha color conversion.

    Declaration
    public static void BGRToHLS(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC1 src3, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2, NPPImage_8uC1 dest3)
    Parameters
    Type Name Description
    NPPImage_8uC1 src0

    Source image channel 0

    NPPImage_8uC1 src1

    Source image channel 1

    NPPImage_8uC1 src2

    Source image channel 2

    NPPImage_8uC1 src3

    Source image channel 2

    NPPImage_8uC1 dest0

    Destination image channel 0

    NPPImage_8uC1 dest1

    Destination image channel 1

    NPPImage_8uC1 dest2

    Destination image channel 2

    NPPImage_8uC1 dest3

    Destination image channel 3

    | Improve this Doc View Source

    BGRToHLS(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC4)

    4 channel 8-bit unsigned planar HLS with alpha to 4 channel 8-bit unsigned packed BGR with alpha color conversion.

    Declaration
    public static void BGRToHLS(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC1 src3, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC1 src0

    Source image channel 0

    NPPImage_8uC1 src1

    Source image channel 1

    NPPImage_8uC1 src2

    Source image channel 2

    NPPImage_8uC1 src3

    Source image channel 2

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    BGRToHLS(NPPImage_8uC4)

    4 channel 8-bit unsigned packed BGR with alpha to 4 channel 8-bit unsigned packed HLS with alpha color conversion.

    Declaration
    public void BGRToHLS(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    BGRToYCbCr(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    4 channel 8-bit unsigned packed BGR with alpha to 3 channel 8-bit unsigned planar YCbCr color conversion.

    Declaration
    public void BGRToYCbCr(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest0

    Destination image channel 0

    NPPImage_8uC1 dest1

    Destination image channel 1

    NPPImage_8uC1 dest2

    Destination image channel 2

    | Improve this Doc View Source

    BGRToYCbCr(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    4 channel 8-bit unsigned packed BGR with alpha to 4 channel 8-bit unsigned planar YCbCr color conversion.

    Declaration
    public void BGRToYCbCr(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2, NPPImage_8uC1 dest3)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest0

    Destination image channel 0

    NPPImage_8uC1 dest1

    Destination image channel 1

    NPPImage_8uC1 dest2

    Destination image channel 2

    NPPImage_8uC1 dest3

    Destination image channel 3

    | Improve this Doc View Source

    BGRToYCbCr411(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    4 channel 8-bit unsigned packed BGR with alpha to 3 channel 8-bit unsigned planar YCbCr411 color conversion.

    Declaration
    public void BGRToYCbCr411(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest0

    Destination image channel 0

    NPPImage_8uC1 dest1

    Destination image channel 1

    NPPImage_8uC1 dest2

    Destination image channel 2

    | Improve this Doc View Source

    BGRToYCbCr420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    4 channel 8-bit unsigned packed BGR with alpha to 3 channel 8-bit unsigned planar YCbCr420 color conversion.

    Declaration
    public void BGRToYCbCr420(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest0

    Destination image channel 0

    NPPImage_8uC1 dest1

    Destination image channel 1

    NPPImage_8uC1 dest2

    Destination image channel 2

    | Improve this Doc View Source

    BGRToYCbCr420_709CSC(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    4 channel 8-bit unsigned packed BGR with alpha to 3 channel 8-bit unsigned planar YCbCr420_709CSC color conversion.

    Declaration
    public void BGRToYCbCr420_709CSC(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest0

    Destination image channel 0

    NPPImage_8uC1 dest1

    Destination image channel 1

    NPPImage_8uC1 dest2

    Destination image channel 2

    | Improve this Doc View Source

    BGRToYCbCr420_709HDTV(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    4 channel 8-bit unsigned packed BGR with alpha to 3 channel 8-bit unsigned planar YCbCr420_709HDTV color conversion.

    Declaration
    public void BGRToYCbCr420_709HDTV(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest0

    Destination image channel 0

    NPPImage_8uC1 dest1

    Destination image channel 1

    NPPImage_8uC1 dest2

    Destination image channel 2

    | Improve this Doc View Source

    BGRToYCbCr422(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    4 channel 8-bit unsigned packed BGR with alpha to 3 channel 8-bit unsigned planar YCbCr422 color conversion.

    Declaration
    public void BGRToYCbCr422(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest0

    Destination image channel 0

    NPPImage_8uC1 dest1

    Destination image channel 1

    NPPImage_8uC1 dest2

    Destination image channel 2

    | Improve this Doc View Source

    BGRToYCbCr422(NPPImage_8uC2)

    4 channel 8-bit unsigned packed BGR with alpha to 2 channel 8-bit unsigned packed YCrCb422 color conversion.

    Declaration
    public void BGRToYCbCr422(NPPImage_8uC2 dest)
    Parameters
    Type Name Description
    NPPImage_8uC2 dest

    Destination image

    | Improve this Doc View Source

    BGRToYCrCb420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    4 channel 8-bit unsigned packed BGR with alpha to 3 channel 8-bit unsigned planar YCrCb420 color conversion.

    Declaration
    public void BGRToYCrCb420(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest0

    Destination image channel 0

    NPPImage_8uC1 dest1

    Destination image channel 1

    NPPImage_8uC1 dest2

    Destination image channel 2

    | Improve this Doc View Source

    BGRToYCrCb420_709CSC(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    4 channel 8-bit unsigned packed BGR with alpha to 3 channel 8-bit unsigned planar YCrCb420_709CSC color conversion.

    Declaration
    public void BGRToYCrCb420_709CSC(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest0

    Destination image channel 0

    NPPImage_8uC1 dest1

    Destination image channel 1

    NPPImage_8uC1 dest2

    Destination image channel 2

    | Improve this Doc View Source

    BGRToYUV(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    4 channel 8-bit unsigned packed BGR with alpha to 4 channel 8-bit unsigned planar YUV color conversion with alpha.

    Declaration
    public void BGRToYUV(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2, NPPImage_8uC1 dest3)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest0

    Destination image channel 0

    NPPImage_8uC1 dest1

    Destination image channel 1

    NPPImage_8uC1 dest2

    Destination image channel 2

    NPPImage_8uC1 dest3

    Destination image channel 3

    | Improve this Doc View Source

    BGRToYUV(NPPImage_8uC4)

    4 channel 8-bit unsigned packed BGR with alpha to 4 channel 8-bit unsigned packed YUV color conversion with alpha, not affecting alpha.

    Declaration
    public void BGRToYUV(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    BGRToYUV420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    4 channel 8-bit unsigned pacmed BGR with alpha to 3 channel 8-bit unsigned planar YUV420 color conversion.

    Declaration
    public void BGRToYUV420(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest0

    Destination image channel 0

    NPPImage_8uC1 dest1

    Destination image channel 1

    NPPImage_8uC1 dest2

    Destination image channel 2

    | Improve this Doc View Source

    ColorToGray(NPPImage_8uC1, Single[])

    Color to Gray conversion.

    Declaration
    public void ColorToGray(NPPImage_8uC1 dest, float[] aCoeffs)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest

    Destination image

    System.Single[] aCoeffs

    fixed size array of constant floating point conversion coefficient values, one per color channel.

    | Improve this Doc View Source

    ColorToGrayA(NPPImage_8uC1, Single[])

    Color to Gray conversion, not affecting Alpha.

    Declaration
    public void ColorToGrayA(NPPImage_8uC1 dest, float[] aCoeffs)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest

    Destination image

    System.Single[] aCoeffs

    fixed size array of constant floating point conversion coefficient values, one per color channel.

    | Improve this Doc View Source

    ColorTwist(NPPImage_8uC4, 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 void ColorTwist(NPPImage_8uC4 dest, float[, ] twistMatrix)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Single[,] twistMatrix

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

    | Improve this Doc View Source

    ColorTwist(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 void ColorTwist(float[, ] twistMatrix)
    Parameters
    Type Name Description
    System.Single[,] twistMatrix

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

    | Improve this Doc View Source

    ColorTwistA(NPPImage_8uC4, Single[,])

    An input color twist matrix with floating-point pixel values is applied within ROI. Alpha channel is the last channel and is not processed.

    Declaration
    public void ColorTwistA(NPPImage_8uC4 dest, float[, ] twistMatrix)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Single[,] twistMatrix

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

    | Improve this Doc View Source

    ColorTwistA(Single[,])

    in place color twist, not affecting Alpha.

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

    Declaration
    public void ColorTwistA(float[, ] aTwist)
    Parameters
    Type Name Description
    System.Single[,] aTwist

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

    | Improve this Doc View Source

    ColorTwistC(NPPImage_8uC4, 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 void ColorTwistC(NPPImage_8uC4 dest, float[, ] twistMatrix, float[] aConstants)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Single[,] twistMatrix

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

    System.Single[] aConstants

    fixed size array of constant values, one per channel [4]

    | Improve this Doc View Source

    ColorTwistC(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 void ColorTwistC(float[, ] twistMatrix, float[] aConstants)
    Parameters
    Type Name Description
    System.Single[,] twistMatrix

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

    System.Single[] aConstants

    fixed size array of constant values, one per channel [4]

    | Improve this Doc View Source

    Compare(NPPImage_8uC4, NPPImage_8uC1, NppCmpOp)

    Compare pSrc1’s pixels with corresponding pixels in pSrc2.

    Declaration
    public void Compare(NPPImage_8uC4 src2, NPPImage_8uC1 dest, NppCmpOp eComparisonOperation)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC1 dest

    Destination image

    NppCmpOp eComparisonOperation

    Specifies the comparison operation to be used in the pixel comparison.

    | Improve this Doc View Source

    Compare(Byte[], NPPImage_8uC1, NppCmpOp)

    Compare pSrc's pixels with constant value.

    Declaration
    public void Compare(byte[] constants, NPPImage_8uC1 dest, NppCmpOp eComparisonOperation)
    Parameters
    Type Name Description
    System.Byte[] constants

    list of constants, one per color channel.

    NPPImage_8uC1 dest

    Destination image

    NppCmpOp eComparisonOperation

    Specifies the comparison operation to be used in the pixel comparison.

    | Improve this Doc View Source

    CompareA(NPPImage_8uC4, NPPImage_8uC1, NppCmpOp)

    Compare pSrc1’s pixels with corresponding pixels in pSrc2. Not affecting Alpha.

    Declaration
    public void CompareA(NPPImage_8uC4 src2, NPPImage_8uC1 dest, NppCmpOp eComparisonOperation)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC1 dest

    Destination image

    NppCmpOp eComparisonOperation

    Specifies the comparison operation to be used in the pixel comparison.

    | Improve this Doc View Source

    CompareA(Byte[], NPPImage_8uC1, NppCmpOp)

    Compare pSrc's pixels with constant value. Not affecting Alpha.

    Declaration
    public void CompareA(byte[] constants, NPPImage_8uC1 dest, NppCmpOp eComparisonOperation)
    Parameters
    Type Name Description
    System.Byte[] constants

    list of constants, one per color channel.

    NPPImage_8uC1 dest

    Destination image

    NppCmpOp eComparisonOperation

    Specifies the comparison operation to be used in the pixel comparison.

    | Improve this Doc View Source

    CompColorKey(NPPImage_8uC4, NPPImage_8uC4, Byte[])

    packed color complement color key replacement of source image 1 by source image 2

    Declaration
    public void CompColorKey(NPPImage_8uC4 src2, NPPImage_8uC4 dest, byte[] colorKeyConst)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    source2 packed pixel format image.

    NPPImage_8uC4 dest

    Destination image

    System.Byte[] colorKeyConst

    color key constants

    | Improve this Doc View Source

    Convert(NPPImage_16sC4)

    8-bit unsigned to 16-bit signed conversion.

    Declaration
    public void Convert(NPPImage_16sC4 dst)
    Parameters
    Type Name Description
    NPPImage_16sC4 dst

    Destination image

    | Improve this Doc View Source

    Convert(NPPImage_16uC4)

    8-bit unsigned to 16-bit unsigned conversion.

    Declaration
    public void Convert(NPPImage_16uC4 dst)
    Parameters
    Type Name Description
    NPPImage_16uC4 dst

    Destination image

    | Improve this Doc View Source

    Convert(NPPImage_32fC4)

    8-bit unsigned to 32-bit floating point conversion.

    Declaration
    public void Convert(NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_32fC4 dst

    Destination image

    | Improve this Doc View Source

    Convert(NPPImage_32sC4)

    8-bit unsigned to 32-bit signed conversion.

    Declaration
    public void Convert(NPPImage_32sC4 dst)
    Parameters
    Type Name Description
    NPPImage_32sC4 dst

    Destination image

    | Improve this Doc View Source

    ConvertA(NPPImage_16sC4)

    8-bit unsigned to 16-bit signed conversion. Not affecting Alpha channel.

    Declaration
    public void ConvertA(NPPImage_16sC4 dst)
    Parameters
    Type Name Description
    NPPImage_16sC4 dst

    Destination image

    | Improve this Doc View Source

    ConvertA(NPPImage_16uC4)

    8-bit unsigned to 16-bit unsigned conversion. Not affecting Alpha channel.

    Declaration
    public void ConvertA(NPPImage_16uC4 dst)
    Parameters
    Type Name Description
    NPPImage_16uC4 dst

    Destination image

    | Improve this Doc View Source

    ConvertA(NPPImage_32fC4)

    8-bit unsigned to 32-bit floating point conversion. Not affecting Alpha channel.

    Declaration
    public void ConvertA(NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_32fC4 dst

    Destination image

    | Improve this Doc View Source

    ConvertA(NPPImage_32sC4)

    8-bit unsigned to 32-bit signed conversion. Not affecting Alpha channel.

    Declaration
    public void ConvertA(NPPImage_32sC4 dst)
    Parameters
    Type Name Description
    NPPImage_32sC4 dst

    Destination image

    | Improve this Doc View Source

    Copy(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    Three-channel 8-bit unsigned packed to planar image copy.

    Declaration
    public void Copy(NPPImage_8uC1 dst0, NPPImage_8uC1 dst1, NPPImage_8uC1 dst2, NPPImage_8uC1 dst3)
    Parameters
    Type Name Description
    NPPImage_8uC1 dst0

    Destination image channel 0

    NPPImage_8uC1 dst1

    Destination image channel 1

    NPPImage_8uC1 dst2

    Destination image channel 2

    NPPImage_8uC1 dst3

    Destination image channel 3

    | Improve this Doc View Source

    Copy(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC4)

    Three-channel 8-bit unsigned planar to packed image copy.

    Declaration
    public static void Copy(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC1 src3, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC1 src0

    Source image channel 0

    NPPImage_8uC1 src1

    Source image channel 1

    NPPImage_8uC1 src2

    Source image channel 2

    NPPImage_8uC1 src3

    Source image channel 2

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    Copy(NPPImage_8uC1, Int32)

    Image copy.

    Declaration
    public void Copy(NPPImage_8uC1 dst, int channel)
    Parameters
    Type Name Description
    NPPImage_8uC1 dst

    Destination image

    System.Int32 channel

    Channel number. This number is added to the dst pointer

    | Improve this Doc View Source

    Copy(NPPImage_8uC4)

    Masked Operation 8-bit unsigned image copy.

    Declaration
    public void Copy(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination image

    | Improve this Doc View Source

    Copy(NPPImage_8uC4, NPPImage_8uC1)

    Masked Operation 8-bit unsigned image copy.

    Declaration
    public void Copy(NPPImage_8uC4 dst, NPPImage_8uC1 mask)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination image

    NPPImage_8uC1 mask

    Mask image

    | Improve this Doc View Source

    Copy(NPPImage_8uC4, Int32, Int32)

    Image copy.

    Declaration
    public void Copy(NPPImage_8uC4 dst, int channelSrc, int channelDst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination image

    System.Int32 channelSrc

    Channel number. This number is added to the src pointer

    System.Int32 channelDst

    Channel number. This number is added to the dst pointer

    | Improve this Doc View Source

    Copy(NPPImage_8uC4, Int32, Int32, Byte[])

    Copy image and pad borders with a constant, user-specifiable color.

    Declaration
    public void Copy(NPPImage_8uC4 dst, int nTopBorderHeight, int nLeftBorderWidth, byte[] nValue)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination image. The image ROI defines the destination region, i.e. the region that gets filled with data from the source image (inner part) and constant border color (outer part).

    System.Int32 nTopBorderHeight

    Height (in pixels) of the top border. The height of the border at the bottom of the destination ROI is implicitly defined by the size of the source ROI: nBottomBorderHeight = oDstSizeROI.height - nTopBorderHeight - oSrcSizeROI.height.

    System.Int32 nLeftBorderWidth

    Width (in pixels) of the left border. The width of the border at the right side of the destination ROI is implicitly defined by the size of the source ROI: nRightBorderWidth = oDstSizeROI.width - nLeftBorderWidth - oSrcSizeROI.width.

    System.Byte[] nValue

    The pixel value to be set for border pixels.

    | Improve this Doc View Source

    CopyA(NPPImage_8uC4)

    Masked Operation 8-bit unsigned image copy. Not affecting Alpha channel.

    Declaration
    public void CopyA(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination image

    | Improve this Doc View Source

    CopyA(NPPImage_8uC4, NPPImage_8uC1)

    Masked Operation 8-bit unsigned image copy. Not affecting Alpha channel.

    Declaration
    public void CopyA(NPPImage_8uC4 dst, NPPImage_8uC1 mask)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination image

    NPPImage_8uC1 mask

    Mask image

    | Improve this Doc View Source

    CopyA(NPPImage_8uC4, Int32, Int32, Byte[])

    Copy image and pad borders with a constant, user-specifiable color. Not affecting Alpha channel.

    Declaration
    public void CopyA(NPPImage_8uC4 dst, int nTopBorderHeight, int nLeftBorderWidth, byte[] nValue)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination image. The image ROI defines the destination region, i.e. the region that gets filled with data from the source image (inner part) and constant border color (outer part).

    System.Int32 nTopBorderHeight

    Height (in pixels) of the top border. The height of the border at the bottom of the destination ROI is implicitly defined by the size of the source ROI: nBottomBorderHeight = oDstSizeROI.height - nTopBorderHeight - oSrcSizeROI.height.

    System.Int32 nLeftBorderWidth

    Width (in pixels) of the left border. The width of the border at the right side of the destination ROI is implicitly defined by the size of the source ROI: nRightBorderWidth = oDstSizeROI.width - nLeftBorderWidth - oSrcSizeROI.width.

    System.Byte[] nValue

    The pixel value to be set for border pixels.

    | Improve this Doc View Source

    CopyReplicateBorder(NPPImage_8uC4, Int32, Int32)

    image copy with nearest source image pixel color.

    Declaration
    public void CopyReplicateBorder(NPPImage_8uC4 dst, int nTopBorderHeight, int nLeftBorderWidth)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    System.Int32 nTopBorderHeight

    Height (in pixels) of the top border. The height of the border at the bottom of the destination ROI is implicitly defined by the size of the source ROI: nBottomBorderHeight = oDstSizeROI.height - nTopBorderHeight - oSrcSizeROI.height.

    System.Int32 nLeftBorderWidth

    Width (in pixels) of the left border. The width of the border at the right side of the destination ROI is implicitly defined by the size of the source ROI: nRightBorderWidth = oDstSizeROI.width - nLeftBorderWidth - oSrcSizeROI.width.

    | Improve this Doc View Source

    CopyReplicateBorderA(NPPImage_8uC4, Int32, Int32)

    image copy with nearest source image pixel color. Not affecting Alpha.

    Declaration
    public void CopyReplicateBorderA(NPPImage_8uC4 dst, int nTopBorderHeight, int nLeftBorderWidth)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    System.Int32 nTopBorderHeight

    Height (in pixels) of the top border. The height of the border at the bottom of the destination ROI is implicitly defined by the size of the source ROI: nBottomBorderHeight = oDstSizeROI.height - nTopBorderHeight - oSrcSizeROI.height.

    System.Int32 nLeftBorderWidth

    Width (in pixels) of the left border. The width of the border at the right side of the destination ROI is implicitly defined by the size of the source ROI: nRightBorderWidth = oDstSizeROI.width - nLeftBorderWidth - oSrcSizeROI.width.

    | Improve this Doc View Source

    CopySubpix(NPPImage_8uC4, Single, Single)

    linearly interpolated source image subpixel coordinate color copy.

    Declaration
    public void CopySubpix(NPPImage_8uC4 dst, float nDx, float nDy)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    System.Single nDx

    Fractional part of source image X coordinate.

    System.Single nDy

    Fractional part of source image Y coordinate.

    | Improve this Doc View Source

    CopySubpixA(NPPImage_8uC4, Single, Single)

    linearly interpolated source image subpixel coordinate color copy. Not affecting Alpha.

    Declaration
    public void CopySubpixA(NPPImage_8uC4 dst, float nDx, float nDy)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    System.Single nDx

    Fractional part of source image X coordinate.

    System.Single nDy

    Fractional part of source image Y coordinate.

    | Improve this Doc View Source

    CopyWrapBorder(NPPImage_8uC4, Int32, Int32)

    image copy with the borders wrapped by replication of source image pixel colors.

    Declaration
    public void CopyWrapBorder(NPPImage_8uC4 dst, int nTopBorderHeight, int nLeftBorderWidth)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    System.Int32 nTopBorderHeight

    Height (in pixels) of the top border. The height of the border at the bottom of the destination ROI is implicitly defined by the size of the source ROI: nBottomBorderHeight = oDstSizeROI.height - nTopBorderHeight - oSrcSizeROI.height.

    System.Int32 nLeftBorderWidth

    Width (in pixels) of the left border. The width of the border at the right side of the destination ROI is implicitly defined by the size of the source ROI: nRightBorderWidth = oDstSizeROI.width - nLeftBorderWidth - oSrcSizeROI.width.

    | Improve this Doc View Source

    CopyWrapBorderA(NPPImage_8uC4, Int32, Int32)

    image copy with the borders wrapped by replication of source image pixel colors. Not affecting Alpha.

    Declaration
    public void CopyWrapBorderA(NPPImage_8uC4 dst, int nTopBorderHeight, int nLeftBorderWidth)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    System.Int32 nTopBorderHeight

    Height (in pixels) of the top border. The height of the border at the bottom of the destination ROI is implicitly defined by the size of the source ROI: nBottomBorderHeight = oDstSizeROI.height - nTopBorderHeight - oSrcSizeROI.height.

    System.Int32 nLeftBorderWidth

    Width (in pixels) of the left border. The width of the border at the right side of the destination ROI is implicitly defined by the size of the source ROI: nRightBorderWidth = oDstSizeROI.width - nLeftBorderWidth - oSrcSizeROI.width.

    | Improve this Doc View Source

    CountInRangeA(CudaDeviceVariable<Int32>, Byte[], Byte[])

    image CountInRange. Not affecting Alpha.

    Declaration
    public void CountInRangeA(CudaDeviceVariable<int> pCounts, byte[] nLowerBound, byte[] nUpperBound)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Int32> pCounts

    Pointer to the number of pixels that fall into the specified range. (3 * sizeof(int))

    System.Byte[] nLowerBound

    Fixed size array of the lower bound of the specified range, one per channel.

    System.Byte[] nUpperBound

    Fixed size array of the upper bound of the specified range, one per channel.

    | Improve this Doc View Source

    CountInRangeA(CudaDeviceVariable<Int32>, Byte[], Byte[], CudaDeviceVariable<Byte>)

    image CountInRange. Not affecting Alpha.

    Declaration
    public void CountInRangeA(CudaDeviceVariable<int> pCounts, byte[] nLowerBound, byte[] nUpperBound, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Int32> pCounts

    Pointer to the number of pixels that fall into the specified range. (3 * sizeof(int))

    System.Byte[] nLowerBound

    Fixed size array of the lower bound of the specified range, one per channel.

    System.Byte[] nUpperBound

    Fixed size array of the upper bound of the specified range, one per channel.

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at CountInRangeAGetBufferHostSize()

    | Improve this Doc View Source

    CountInRangeAGetBufferHostSize()

    Device scratch buffer size (in bytes) for CountInRange.

    Declaration
    public int CountInRangeAGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    CrossCorrFull_Norm(NPPImage_8uC4, NPPImage_32fC4)

    image CrossCorrFull_Norm.

    Declaration
    public void CrossCorrFull_Norm(NPPImage_8uC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    CrossCorrFull_Norm(NPPImage_8uC4, NPPImage_8uC4, Int32)

    image CrossCorrFull_Norm.

    Declaration
    public void CrossCorrFull_Norm(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination-Image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    | Improve this Doc View Source

    CrossCorrFull_NormA(NPPImage_8uC4, NPPImage_32fC4)

    image CrossCorrFull_Norm. Not affecting Alpha.

    Declaration
    public void CrossCorrFull_NormA(NPPImage_8uC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    CrossCorrFull_NormA(NPPImage_8uC4, NPPImage_8uC4, Int32)

    image CrossCorrFull_Norm. Not affecting Alpha.

    Declaration
    public void CrossCorrFull_NormA(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination-Image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    | Improve this Doc View Source

    CrossCorrFull_NormLevel(NPPImage_8uC4, NPPImage_32fC4)

    CrossCorrFull_NormLevel. Buffer is internally allocated and freed.

    Declaration
    public void CrossCorrFull_NormLevel(NPPImage_8uC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination image

    | Improve this Doc View Source

    CrossCorrFull_NormLevel(NPPImage_8uC4, NPPImage_32fC4, CudaDeviceVariable<Byte>)

    CrossCorrFull_NormLevel.

    Declaration
    public void CrossCorrFull_NormLevel(NPPImage_8uC4 tpl, NPPImage_32fC4 dst, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination image

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at FullNormLevelGetBufferHostSize()

    | Improve this Doc View Source

    CrossCorrFull_NormLevel(NPPImage_8uC4, NPPImage_8uC4, Int32)

    CrossCorrFull_NormLevel. Buffer is internally allocated and freed.

    Declaration
    public void CrossCorrFull_NormLevel(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    | Improve this Doc View Source

    CrossCorrFull_NormLevel(NPPImage_8uC4, NPPImage_8uC4, Int32, CudaDeviceVariable<Byte>)

    CrossCorrFull_NormLevel.

    Declaration
    public void CrossCorrFull_NormLevel(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at FullNormLevelScaledGetBufferHostSize()

    | Improve this Doc View Source

    CrossCorrFull_NormLevelA(NPPImage_8uC4, NPPImage_32fC4)

    CrossCorrFull_NormLevel. Buffer is internally allocated and freed. Not affecting Alpha.

    Declaration
    public void CrossCorrFull_NormLevelA(NPPImage_8uC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination image

    | Improve this Doc View Source

    CrossCorrFull_NormLevelA(NPPImage_8uC4, NPPImage_32fC4, CudaDeviceVariable<Byte>)

    CrossCorrFull_NormLevel. Not affecting Alpha.

    Declaration
    public void CrossCorrFull_NormLevelA(NPPImage_8uC4 tpl, NPPImage_32fC4 dst, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination image

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at FullNormLevelAGetBufferHostSize()

    | Improve this Doc View Source

    CrossCorrFull_NormLevelA(NPPImage_8uC4, NPPImage_8uC4, Int32)

    CrossCorrFull_NormLevel. Buffer is internally allocated and freed. Not affecting Alpha.

    Declaration
    public void CrossCorrFull_NormLevelA(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    | Improve this Doc View Source

    CrossCorrFull_NormLevelA(NPPImage_8uC4, NPPImage_8uC4, Int32, CudaDeviceVariable<Byte>)

    CrossCorrFull_NormLevel. Not affecting Alpha.

    Declaration
    public void CrossCorrFull_NormLevelA(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at FullNormLevelScaledAGetBufferHostSize()

    | Improve this Doc View Source

    CrossCorrSame_Norm(NPPImage_8uC4, NPPImage_32fC4)

    image CrossCorrSame_Norm.

    Declaration
    public void CrossCorrSame_Norm(NPPImage_8uC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    CrossCorrSame_Norm(NPPImage_8uC4, NPPImage_8uC4, Int32)

    image CrossCorrSame_Norm.

    Declaration
    public void CrossCorrSame_Norm(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination-Image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    | Improve this Doc View Source

    CrossCorrSame_NormA(NPPImage_8uC4, NPPImage_32fC4)

    image CrossCorrSame_Norm. Not affecting Alpha.

    Declaration
    public void CrossCorrSame_NormA(NPPImage_8uC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    CrossCorrSame_NormA(NPPImage_8uC4, NPPImage_8uC4, Int32)

    image CrossCorrSame_Norm. Not affecting Alpha.

    Declaration
    public void CrossCorrSame_NormA(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination-Image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    | Improve this Doc View Source

    CrossCorrSame_NormLevel(NPPImage_8uC4, NPPImage_32fC4)

    CrossCorrSame_NormLevel. Buffer is internally allocated and freed.

    Declaration
    public void CrossCorrSame_NormLevel(NPPImage_8uC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination image

    | Improve this Doc View Source

    CrossCorrSame_NormLevel(NPPImage_8uC4, NPPImage_32fC4, CudaDeviceVariable<Byte>)

    CrossCorrSame_NormLevel.

    Declaration
    public void CrossCorrSame_NormLevel(NPPImage_8uC4 tpl, NPPImage_32fC4 dst, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination image

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at SameNormLevelGetBufferHostSize()

    | Improve this Doc View Source

    CrossCorrSame_NormLevel(NPPImage_8uC4, NPPImage_8uC4, Int32)

    CrossCorrSame_NormLevel. Buffer is internally allocated and freed.

    Declaration
    public void CrossCorrSame_NormLevel(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    | Improve this Doc View Source

    CrossCorrSame_NormLevel(NPPImage_8uC4, NPPImage_8uC4, Int32, CudaDeviceVariable<Byte>)

    CrossCorrSame_NormLevel.

    Declaration
    public void CrossCorrSame_NormLevel(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at SameNormLevelScaledGetBufferHostSize()

    | Improve this Doc View Source

    CrossCorrSame_NormLevelA(NPPImage_8uC4, NPPImage_32fC4)

    CrossCorrSame_NormLevel. Buffer is internally allocated and freed. Not affecting Alpha.

    Declaration
    public void CrossCorrSame_NormLevelA(NPPImage_8uC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination image

    | Improve this Doc View Source

    CrossCorrSame_NormLevelA(NPPImage_8uC4, NPPImage_32fC4, CudaDeviceVariable<Byte>)

    CrossCorrSame_NormLevel. Not affecting Alpha.

    Declaration
    public void CrossCorrSame_NormLevelA(NPPImage_8uC4 tpl, NPPImage_32fC4 dst, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination image

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at SameNormLevelAGetBufferHostSize()

    | Improve this Doc View Source

    CrossCorrSame_NormLevelA(NPPImage_8uC4, NPPImage_8uC4, Int32)

    CrossCorrSame_NormLevel. Buffer is internally allocated and freed. Not affecting Alpha.

    Declaration
    public void CrossCorrSame_NormLevelA(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    | Improve this Doc View Source

    CrossCorrSame_NormLevelA(NPPImage_8uC4, NPPImage_8uC4, Int32, CudaDeviceVariable<Byte>)

    CrossCorrSame_NormLevel. Not affecting Alpha.

    Declaration
    public void CrossCorrSame_NormLevelA(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at SameNormLevelScaledAGetBufferHostSize()

    | Improve this Doc View Source

    CrossCorrValid_Norm(NPPImage_8uC4, NPPImage_32fC4)

    image CrossCorrValid_Norm.

    Declaration
    public void CrossCorrValid_Norm(NPPImage_8uC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    CrossCorrValid_Norm(NPPImage_8uC4, NPPImage_8uC4, Int32)

    image CrossCorrValid_Norm.

    Declaration
    public void CrossCorrValid_Norm(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination-Image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    | Improve this Doc View Source

    CrossCorrValid_NormA(NPPImage_8uC4, NPPImage_32fC4)

    image CrossCorrValid_Norm. Not affecting Alpha.

    Declaration
    public void CrossCorrValid_NormA(NPPImage_8uC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    CrossCorrValid_NormA(NPPImage_8uC4, NPPImage_8uC4, Int32)

    image CrossCorrValid_Norm. Not affecting Alpha.

    Declaration
    public void CrossCorrValid_NormA(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination-Image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    | Improve this Doc View Source

    CrossCorrValid_NormLevel(NPPImage_8uC4, NPPImage_32fC4)

    CrossCorrValid_NormLevel. Buffer is internally allocated and freed.

    Declaration
    public void CrossCorrValid_NormLevel(NPPImage_8uC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination image

    | Improve this Doc View Source

    CrossCorrValid_NormLevel(NPPImage_8uC4, NPPImage_32fC4, CudaDeviceVariable<Byte>)

    CrossCorrValid_NormLevel.

    Declaration
    public void CrossCorrValid_NormLevel(NPPImage_8uC4 tpl, NPPImage_32fC4 dst, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination image

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at ValidNormLevelGetBufferHostSize()

    | Improve this Doc View Source

    CrossCorrValid_NormLevel(NPPImage_8uC4, NPPImage_8uC4, Int32)

    CrossCorrValid_NormLevel. Buffer is internally allocated and freed.

    Declaration
    public void CrossCorrValid_NormLevel(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    | Improve this Doc View Source

    CrossCorrValid_NormLevel(NPPImage_8uC4, NPPImage_8uC4, Int32, CudaDeviceVariable<Byte>)

    CrossCorrValid_NormLevel.

    Declaration
    public void CrossCorrValid_NormLevel(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at ValidNormLevelScaledGetBufferHostSize()

    | Improve this Doc View Source

    CrossCorrValid_NormLevelA(NPPImage_8uC4, NPPImage_32fC4)

    CrossCorrValid_NormLevel. Buffer is internally allocated and freed. Not affecting Alpha.

    Declaration
    public void CrossCorrValid_NormLevelA(NPPImage_8uC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination image

    | Improve this Doc View Source

    CrossCorrValid_NormLevelA(NPPImage_8uC4, NPPImage_32fC4, CudaDeviceVariable<Byte>)

    CrossCorrValid_NormLevel. Not affecting Alpha.

    Declaration
    public void CrossCorrValid_NormLevelA(NPPImage_8uC4 tpl, NPPImage_32fC4 dst, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination image

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at ValidNormLevelAGetBufferHostSize()

    | Improve this Doc View Source

    CrossCorrValid_NormLevelA(NPPImage_8uC4, NPPImage_8uC4, Int32)

    CrossCorrValid_NormLevel. Buffer is internally allocated and freed. Not affecting Alpha.

    Declaration
    public void CrossCorrValid_NormLevelA(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    | Improve this Doc View Source

    CrossCorrValid_NormLevelA(NPPImage_8uC4, NPPImage_8uC4, Int32, CudaDeviceVariable<Byte>)

    CrossCorrValid_NormLevel. Not affecting Alpha.

    Declaration
    public void CrossCorrValid_NormLevelA(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at ValidNormLevelScaledAGetBufferHostSize()

    | Improve this Doc View Source

    Dilate(NPPImage_8uC4, CudaDeviceVariable<Byte>, NppiSize, NppiPoint)

    Dilation computes the output pixel as the maximum pixel value of the pixels under the mask. Pixels who’s corresponding mask values are zero to not participate in the maximum search.

    Declaration
    public void Dilate(NPPImage_8uC4 dest, CudaDeviceVariable<byte> Mask, NppiSize aMaskSize, NppiPoint oAnchor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Byte> Mask

    Pointer to the start address of the mask array.

    NppiSize aMaskSize

    Width and Height mask array.

    NppiPoint oAnchor

    X and Y offsets of the mask origin frame of reference w.r.t the source pixel.

    | Improve this Doc View Source

    Dilate3x3(NPPImage_8uC4)

    3x3 dilation.

    Declaration
    public void Dilate3x3(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    | Improve this Doc View Source

    Dilate3x3A(NPPImage_8uC4)

    3x3 dilation, not affecting Alpha.

    Declaration
    public void Dilate3x3A(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    | Improve this Doc View Source

    Dilate3x3Border(NPPImage_8uC4, NppiBorderType)

    3x3 dilation with border control.

    Declaration
    public void Dilate3x3Border(NPPImage_8uC4 dest, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    Dilate3x3BorderA(NPPImage_8uC4, NppiBorderType)

    3x3 dilation with border control, ignoring alpha-channel.

    Declaration
    public void Dilate3x3BorderA(NPPImage_8uC4 dest, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    DilateA(NPPImage_8uC4, CudaDeviceVariable<Byte>, NppiSize, NppiPoint)

    Dilation computes the output pixel as the maximum pixel value of the pixels under the mask. Pixels who’s corresponding mask values are zero to not participate in the maximum search, not affecting Alpha.

    Declaration
    public void DilateA(NPPImage_8uC4 dest, CudaDeviceVariable<byte> Mask, NppiSize aMaskSize, NppiPoint oAnchor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Byte> Mask

    Pointer to the start address of the mask array.

    NppiSize aMaskSize

    Width and Height mask array.

    NppiPoint oAnchor

    X and Y offsets of the mask origin frame of reference w.r.t the source pixel.

    | Improve this Doc View Source

    DilateBorder(NPPImage_8uC4, CudaDeviceVariable<Byte>, NppiSize, NppiPoint, NppiBorderType)

    Dilation computes the output pixel as the maximum pixel value of the pixels under the mask. Pixels who’s corresponding mask values are zero to not participate in the maximum search. With border control.

    Declaration
    public void DilateBorder(NPPImage_8uC4 dest, CudaDeviceVariable<byte> Mask, NppiSize aMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Byte> Mask

    Pointer to the start address of the mask array.

    NppiSize aMaskSize

    Width and Height mask array.

    NppiPoint oAnchor

    X and Y offsets of the mask origin frame of reference w.r.t the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    DilateBorderA(NPPImage_8uC4, CudaDeviceVariable<Byte>, NppiSize, NppiPoint, NppiBorderType)

    Dilation computes the output pixel as the maximum pixel value of the pixels under the mask. Pixels who’s corresponding mask values are zero to not participate in the maximum search. With border control, ignoring alpha-channel.

    Declaration
    public void DilateBorderA(NPPImage_8uC4 dest, CudaDeviceVariable<byte> Mask, NppiSize aMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Byte> Mask

    Pointer to the start address of the mask array.

    NppiSize aMaskSize

    Width and Height mask array.

    NppiPoint oAnchor

    X and Y offsets of the mask origin frame of reference w.r.t the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    Div(NPPImage_8uC4, NPPImage_8uC4, NppRoundMode, Int32)

    Image division, scale by 2^(-nScaleFactor), then clamp to saturated value.

    Declaration
    public void Div(NPPImage_8uC4 src2, NPPImage_8uC4 dest, NppRoundMode rndMode, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    NppRoundMode rndMode

    Result Rounding mode to be used

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    Div(NPPImage_8uC4, NPPImage_8uC4, Int32)

    Image division, scale by 2^(-nScaleFactor), then clamp to saturated value.

    Declaration
    public void Div(NPPImage_8uC4 src2, NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    Div(NPPImage_8uC4, NppRoundMode, Int32)

    In place image division, scale by 2^(-nScaleFactor), then clamp to saturated value.

    Declaration
    public void Div(NPPImage_8uC4 src2, NppRoundMode rndMode, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NppRoundMode rndMode

    Result Rounding mode to be used

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    Div(NPPImage_8uC4, Int32)

    In place image division, scale by 2^(-nScaleFactor), then clamp to saturated value.

    Declaration
    public void Div(NPPImage_8uC4 src2, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    Div(Byte[], NPPImage_8uC4, Int32)

    Divide constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.

    Declaration
    public void Div(byte[] nConstant, NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value

    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    Div(Byte[], Int32)

    Divide constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.

    Declaration
    public void Div(byte[] nConstant, int nScaleFactor)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    DivA(NPPImage_8uC4, NPPImage_8uC4, NppRoundMode, Int32)

    Image division, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.

    Declaration
    public void DivA(NPPImage_8uC4 src2, NPPImage_8uC4 dest, NppRoundMode rndMode, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    NppRoundMode rndMode

    Result Rounding mode to be used

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    DivA(NPPImage_8uC4, NPPImage_8uC4, Int32)

    Image division, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.

    Declaration
    public void DivA(NPPImage_8uC4 src2, NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    DivA(NPPImage_8uC4, NppRoundMode, Int32)

    In place image division, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.

    Declaration
    public void DivA(NPPImage_8uC4 src2, NppRoundMode rndMode, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NppRoundMode rndMode

    Result Rounding mode to be used

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    DivA(NPPImage_8uC4, Int32)

    In place image division, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.

    Declaration
    public void DivA(NPPImage_8uC4 src2, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    DivA(Byte[], NPPImage_8uC4, Int32)

    Divide constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.

    Declaration
    public void DivA(byte[] nConstant, NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value

    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    DivA(Byte[], Int32)

    Divide constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace. Unchanged Alpha.

    Declaration
    public void DivA(byte[] nConstant, int nScaleFactor)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    DotProdGetBufferHostSize()

    Device scratch buffer size (in bytes) for nppiDotProd_8u64f_C4R.

    Declaration
    public int DotProdGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    DotProduct(NPPImage_8uC4, CudaDeviceVariable<Double>)

    Four-channel 8-bit unsigned image DotProd. Buffer is internally allocated and freed.

    Declaration
    public void DotProduct(NPPImage_8uC4 src2, CudaDeviceVariable<double> pDp)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    CudaDeviceVariable<System.Double> pDp

    Pointer to the computed dot product of the two images. (4 * sizeof(double))

    | Improve this Doc View Source

    DotProduct(NPPImage_8uC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    Four-channel 8-bit unsigned image DotProd.

    Declaration
    public void DotProduct(NPPImage_8uC4 src2, CudaDeviceVariable<double> pDp, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    CudaDeviceVariable<System.Double> pDp

    Pointer to the computed dot product of the two images. (4 * sizeof(double))

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at DotProdGetBufferHostSize()

    | Improve this Doc View Source

    Erode(NPPImage_8uC4, CudaDeviceVariable<Byte>, NppiSize, NppiPoint)

    Erosion computes the output pixel as the minimum pixel value of the pixels under the mask. Pixels who’s corresponding mask values are zero to not participate in the maximum search.

    Declaration
    public void Erode(NPPImage_8uC4 dest, CudaDeviceVariable<byte> Mask, NppiSize aMaskSize, NppiPoint oAnchor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Byte> Mask

    Pointer to the start address of the mask array.

    NppiSize aMaskSize

    Width and Height mask array.

    NppiPoint oAnchor

    X and Y offsets of the mask origin frame of reference w.r.t the source pixel.

    | Improve this Doc View Source

    Erode3x3(NPPImage_8uC4)

    3x3 erosion.

    Declaration
    public void Erode3x3(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    | Improve this Doc View Source

    Erode3x3A(NPPImage_8uC4)

    3x3 erosion, not affecting Alpha.

    Declaration
    public void Erode3x3A(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    | Improve this Doc View Source

    Erode3x3Border(NPPImage_8uC4, NppiBorderType)

    3x3 erosion with border control.

    Declaration
    public void Erode3x3Border(NPPImage_8uC4 dest, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    Erode3x3BorderA(NPPImage_8uC4, NppiBorderType)

    3x3 erosion with border control, ignoring alpha-channel.

    Declaration
    public void Erode3x3BorderA(NPPImage_8uC4 dest, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    ErodeA(NPPImage_8uC4, CudaDeviceVariable<Byte>, NppiSize, NppiPoint)

    Erosion computes the output pixel as the minimum pixel value of the pixels under the mask. Pixels who’s corresponding mask values are zero to not participate in the maximum search, not affecting Alpha.

    Declaration
    public void ErodeA(NPPImage_8uC4 dest, CudaDeviceVariable<byte> Mask, NppiSize aMaskSize, NppiPoint oAnchor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Byte> Mask

    Pointer to the start address of the mask array.

    NppiSize aMaskSize

    Width and Height mask array.

    NppiPoint oAnchor

    X and Y offsets of the mask origin frame of reference w.r.t the source pixel.

    | Improve this Doc View Source

    ErodeBorder(NPPImage_8uC4, CudaDeviceVariable<Byte>, NppiSize, NppiPoint, NppiBorderType)

    Erosion computes the output pixel as the minimum pixel value of the pixels under the mask. Pixels who’s corresponding mask values are zero to not participate in the maximum search. With border control.

    Declaration
    public void ErodeBorder(NPPImage_8uC4 dest, CudaDeviceVariable<byte> Mask, NppiSize aMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Byte> Mask

    Pointer to the start address of the mask array.

    NppiSize aMaskSize

    Width and Height mask array.

    NppiPoint oAnchor

    X and Y offsets of the mask origin frame of reference w.r.t the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    ErodeBorderA(NPPImage_8uC4, CudaDeviceVariable<Byte>, NppiSize, NppiPoint, NppiBorderType)

    Erosion computes the output pixel as the minimum pixel value of the pixels under the mask. Pixels who’s corresponding mask values are zero to not participate in the maximum search. With border control, ignoring alpha-channel.

    Declaration
    public void ErodeBorderA(NPPImage_8uC4 dest, CudaDeviceVariable<byte> Mask, NppiSize aMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Byte> Mask

    Pointer to the start address of the mask array.

    NppiSize aMaskSize

    Width and Height mask array.

    NppiPoint oAnchor

    X and Y offsets of the mask origin frame of reference w.r.t the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    EvenLevels(Int32, Int32, Int32)

    Compute levels with even distribution.

    Declaration
    public int[] EvenLevels(int nLevels, int nLowerBound, int nUpperBound)
    Parameters
    Type Name Description
    System.Int32 nLevels

    The number of levels being computed. nLevels must be at least 2, otherwise an NPP_- HISTO_NUMBER_OF_LEVELS_ERROR error is returned.

    System.Int32 nLowerBound

    Lower boundary value of the lowest level.

    System.Int32 nUpperBound

    Upper boundary value of the greatest level.

    Returns
    Type Description
    System.Int32[]

    An array of size nLevels which receives the levels being computed.

    | Improve this Doc View Source

    Filter(NPPImage_16sC4, CudaDeviceVariable<Single>, NppiSize, NppiPoint)

    convolution filter.

    Declaration
    public void Filter(NPPImage_16sC4 dst, CudaDeviceVariable<float> pKernel, NppiSize oKernelSize, NppiPoint oAnchor)
    Parameters
    Type Name Description
    NPPImage_16sC4 dst

    Destination-Image

    CudaDeviceVariable<System.Single> pKernel

    Pointer to the start address of the kernel coefficient array.

    Coefficients are expected to be stored in reverse order.

    NppiSize oKernelSize

    Width and Height of the rectangular kernel.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference

    | Improve this Doc View Source

    Filter(NPPImage_8uC4, CudaDeviceVariable<Int32>, NppiSize, NppiPoint, Int32)

    Pixels under the mask are multiplied by the respective weights in the mask and the results are summed.

    Before writing the result pixel the sum is scaled back via division by nDivisor.

    Declaration
    public void Filter(NPPImage_8uC4 dest, CudaDeviceVariable<int> Kernel, NppiSize aKernelSize, NppiPoint oAnchor, int nDivisor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Int32> Kernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.

    NppiSize aKernelSize

    Width and Height of the rectangular kernel.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.

    System.Int32 nDivisor

    The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.

    | Improve this Doc View Source

    Filter(NPPImage_8uC4, CudaDeviceVariable<Single>, NppiSize, NppiPoint)

    convolution filter.

    Declaration
    public void Filter(NPPImage_8uC4 dst, CudaDeviceVariable<float> pKernel, NppiSize oKernelSize, NppiPoint oAnchor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    CudaDeviceVariable<System.Single> pKernel

    Pointer to the start address of the kernel coefficient array.

    Coefficients are expected to be stored in reverse order.

    NppiSize oKernelSize

    Width and Height of the rectangular kernel.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference

    | Improve this Doc View Source

    FilterA(NPPImage_16sC4, CudaDeviceVariable<Single>, NppiSize, NppiPoint)

    convolution filter. Not affecting Alpha.

    Declaration
    public void FilterA(NPPImage_16sC4 dst, CudaDeviceVariable<float> pKernel, NppiSize oKernelSize, NppiPoint oAnchor)
    Parameters
    Type Name Description
    NPPImage_16sC4 dst

    Destination-Image

    CudaDeviceVariable<System.Single> pKernel

    Pointer to the start address of the kernel coefficient array.

    Coefficients are expected to be stored in reverse order.

    NppiSize oKernelSize

    Width and Height of the rectangular kernel.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference

    | Improve this Doc View Source

    FilterA(NPPImage_8uC4, CudaDeviceVariable<Int32>, NppiSize, NppiPoint, Int32)

    Pixels under the mask are multiplied by the respective weights in the mask and the results are summed.

    Before writing the result pixel the sum is scaled back via division by nDivisor. Not affecting Alpha.

    Declaration
    public void FilterA(NPPImage_8uC4 dest, CudaDeviceVariable<int> Kernel, NppiSize aKernelSize, NppiPoint oAnchor, int nDivisor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Int32> Kernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.

    NppiSize aKernelSize

    Width and Height of the rectangular kernel.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.

    System.Int32 nDivisor

    The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.

    | Improve this Doc View Source

    FilterA(NPPImage_8uC4, CudaDeviceVariable<Single>, NppiSize, NppiPoint)

    convolution filter. Not affecting Alpha.

    Declaration
    public void FilterA(NPPImage_8uC4 dst, CudaDeviceVariable<float> pKernel, NppiSize oKernelSize, NppiPoint oAnchor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    CudaDeviceVariable<System.Single> pKernel

    Pointer to the start address of the kernel coefficient array.

    Coefficients are expected to be stored in reverse order.

    NppiSize oKernelSize

    Width and Height of the rectangular kernel.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference

    | Improve this Doc View Source

    FilterBorder(NPPImage_16sC4, CudaDeviceVariable<Single>, NppiSize, NppiPoint, NppiBorderType)

    Four channel 8-bit unsigned to 16-bit signed convolution filter with border control.

    General purpose 2D convolution filter using floating-point weights with border control.

    Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. Before writing the result pixel the sum is scaled back via division by nDivisor. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image.

    Declaration
    public void FilterBorder(NPPImage_16sC4 dest, CudaDeviceVariable<float> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_16sC4 dest

    Destination image

    CudaDeviceVariable<System.Single> pKernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order

    NppiSize nKernelSize

    Width and Height of the rectangular kernel.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference relative to the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterBorder(NPPImage_8uC4, CudaDeviceVariable<Int32>, NppiSize, NppiPoint, Int32, NppiBorderType)

    Four channel 8-bit unsigned convolution filter with border control.

    General purpose 2D convolution filter with border control.

    Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. Before writing the result pixel the sum is scaled back via division by nDivisor. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image.

    Declaration
    public void FilterBorder(NPPImage_8uC4 dest, CudaDeviceVariable<int> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, int nDivisor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Int32> pKernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order

    NppiSize nKernelSize

    Width and Height of the rectangular kernel.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference relative to the source pixel.

    System.Int32 nDivisor

    The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterBorder(NPPImage_8uC4, CudaDeviceVariable<Single>, NppiSize, NppiPoint, NppiBorderType)

    Four channel 8-bit unsigned convolution filter with border control.

    General purpose 2D convolution filter using floating-point weights with border control.

    Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. Before writing the result pixel the sum is scaled back via division by nDivisor. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image.

    Declaration
    public void FilterBorder(NPPImage_8uC4 dest, CudaDeviceVariable<float> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Single> pKernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order

    NppiSize nKernelSize

    Width and Height of the rectangular kernel.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference relative to the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterBorderA(NPPImage_16sC4, CudaDeviceVariable<Single>, NppiSize, NppiPoint, NppiBorderType)

    Four channel 8-bit unsigned to 16-bit signed convolution filter with border control, ignoring alpha channel.

    General purpose 2D convolution filter using floating-point weights with border control.

    Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. Before writing the result pixel the sum is scaled back via division by nDivisor. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image.

    Declaration
    public void FilterBorderA(NPPImage_16sC4 dest, CudaDeviceVariable<float> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_16sC4 dest

    Destination image

    CudaDeviceVariable<System.Single> pKernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order

    NppiSize nKernelSize

    Width and Height of the rectangular kernel.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference relative to the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterBorderA(NPPImage_8uC4, CudaDeviceVariable<Int32>, NppiSize, NppiPoint, Int32, NppiBorderType)

    Four channel 8-bit unsigned convolution filter with border control, ignoring alpha channel.

    General purpose 2D convolution filter with border control.

    Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. Before writing the result pixel the sum is scaled back via division by nDivisor. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image.

    Declaration
    public void FilterBorderA(NPPImage_8uC4 dest, CudaDeviceVariable<int> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, int nDivisor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Int32> pKernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order

    NppiSize nKernelSize

    Width and Height of the rectangular kernel.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference relative to the source pixel.

    System.Int32 nDivisor

    The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterBorderA(NPPImage_8uC4, CudaDeviceVariable<Single>, NppiSize, NppiPoint, NppiBorderType)

    Four channel 8-bit unsigned convolution filter with border control, ignoring alpha channel.

    General purpose 2D convolution filter using floating-point weights with border control.

    Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. Before writing the result pixel the sum is scaled back via division by nDivisor. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image.

    Declaration
    public void FilterBorderA(NPPImage_8uC4 dest, CudaDeviceVariable<float> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Single> pKernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order

    NppiSize nKernelSize

    Width and Height of the rectangular kernel.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference relative to the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterBox(NPPImage_8uC4, NppiSize, NppiPoint)

    Computes the average pixel values of the pixels under a rectangular mask.

    Declaration
    public void FilterBox(NPPImage_8uC4 dest, NppiSize oMaskSize, NppiPoint oAnchor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiSize oMaskSize

    Width and Height of the neighborhood region for the local Avg operation.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.

    | Improve this Doc View Source

    FilterBoxA(NPPImage_8uC4, NppiSize, NppiPoint)

    Computes the average pixel values of the pixels under a rectangular mask. Not affecting Alpha.

    Declaration
    public void FilterBoxA(NPPImage_8uC4 dest, NppiSize oMaskSize, NppiPoint oAnchor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiSize oMaskSize

    Width and Height of the neighborhood region for the local Avg operation.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.

    | Improve this Doc View Source

    FilterBoxBorder(NPPImage_8uC4, NppiSize, NppiPoint, NppiBorderType)

    Computes the average pixel values of the pixels under a rectangular mask.

    Declaration
    public void FilterBoxBorder(NPPImage_8uC4 dest, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiSize oMaskSize

    Width and Height of the neighborhood region for the local Avg operation.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterBoxBorderA(NPPImage_8uC4, NppiSize, NppiPoint, NppiBorderType)

    Computes the average pixel values of the pixels under a rectangular mask.

    Declaration
    public void FilterBoxBorderA(NPPImage_8uC4 dest, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiSize oMaskSize

    Width and Height of the neighborhood region for the local Avg operation.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterColumn(NPPImage_8uC4, CudaDeviceVariable<Int32>, Int32, Int32, Int32)

    Apply convolution filter with user specified 1D column of weights. Result pixel is equal to the sum of the products between the kernel coefficients (pKernel array) and corresponding neighboring column pixel values in the source image defined by nKernelDim and nAnchorY, divided by nDivisor.

    Declaration
    public void FilterColumn(NPPImage_8uC4 dest, CudaDeviceVariable<int> Kernel, int nKernelSize, int nAnchor, int nDivisor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Int32> Kernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.

    System.Int32 nKernelSize

    Length of the linear kernel array.

    System.Int32 nAnchor

    Y offset of the kernel origin frame of reference w.r.t the source pixel.

    System.Int32 nDivisor

    The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.

    | Improve this Doc View Source

    FilterColumn(NPPImage_8uC4, CudaDeviceVariable<Single>, Int32)

    1D column convolution.

    Declaration
    public void FilterColumn(NPPImage_8uC4 dst, CudaDeviceVariable<float> pKernel, int nAnchor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    CudaDeviceVariable<System.Single> pKernel

    Pointer to the start address of the kernel coefficient array. pKernel.Sizes gives kernel size

    Coefficients are expected to be stored in reverse order.

    System.Int32 nAnchor

    Y offset of the kernel origin frame of reference relative to the source pixel.

    | Improve this Doc View Source

    FilterColumnA(NPPImage_8uC4, CudaDeviceVariable<Int32>, Int32, Int32, Int32)

    Apply convolution filter with user specified 1D column of weights. Result pixel is equal to the sum of the products between the kernel coefficients (pKernel array) and corresponding neighboring column pixel values in the source image defined by nKernelDim and nAnchorY, divided by nDivisor. Not affecting Alpha.

    Declaration
    public void FilterColumnA(NPPImage_8uC4 dest, CudaDeviceVariable<int> Kernel, int nKernelSize, int nAnchor, int nDivisor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Int32> Kernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.

    System.Int32 nKernelSize

    Length of the linear kernel array.

    System.Int32 nAnchor

    Y offset of the kernel origin frame of reference w.r.t the source pixel.

    System.Int32 nDivisor

    The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.

    | Improve this Doc View Source

    FilterColumnA(NPPImage_8uC4, CudaDeviceVariable<Single>, Int32)

    1D column convolution. Not affecting Alpha.

    Declaration
    public void FilterColumnA(NPPImage_8uC4 dst, CudaDeviceVariable<float> pKernel, int nAnchor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    CudaDeviceVariable<System.Single> pKernel

    Pointer to the start address of the kernel coefficient array. pKernel.Sizes gives kernel size

    Coefficients are expected to be stored in reverse order.

    System.Int32 nAnchor

    Y offset of the kernel origin frame of reference relative to the source pixel.

    | Improve this Doc View Source

    FilterColumnBorder(NPPImage_8uC4, CudaDeviceVariable<Int32>, Int32, Int32, NppiBorderType)

    General purpose 1D convolution column filter with border control.

    Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. Before writing the result pixel the sum is scaled back via division by nDivisor. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image.

    Declaration
    public void FilterColumnBorder(NPPImage_8uC4 dest, CudaDeviceVariable<int> Kernel, int nAnchor, int nDivisor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Int32> Kernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.

    System.Int32 nAnchor

    X offset of the kernel origin frame of reference w.r.t the source pixel.

    System.Int32 nDivisor

    The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterColumnBorder(NPPImage_8uC4, CudaDeviceVariable<Single>, Int32, NppiBorderType)

    General purpose 1D convolution column filter with border control.

    Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image.

    Declaration
    public void FilterColumnBorder(NPPImage_8uC4 dest, CudaDeviceVariable<float> Kernel, int nAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Single> Kernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.

    System.Int32 nAnchor

    X offset of the kernel origin frame of reference w.r.t the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterColumnBorderA(NPPImage_8uC4, CudaDeviceVariable<Int32>, Int32, Int32, NppiBorderType)

    General purpose 1D convolution column filter with border control.

    Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. Before writing the result pixel the sum is scaled back via division by nDivisor. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image.

    Declaration
    public void FilterColumnBorderA(NPPImage_8uC4 dest, CudaDeviceVariable<int> Kernel, int nAnchor, int nDivisor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Int32> Kernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.

    System.Int32 nAnchor

    X offset of the kernel origin frame of reference w.r.t the source pixel.

    System.Int32 nDivisor

    The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterColumnBorderA(NPPImage_8uC4, CudaDeviceVariable<Single>, Int32, NppiBorderType)

    General purpose 1D convolution column filter with border control.

    Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image.

    Declaration
    public void FilterColumnBorderA(NPPImage_8uC4 dest, CudaDeviceVariable<float> Kernel, int nAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Single> Kernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.

    System.Int32 nAnchor

    X offset of the kernel origin frame of reference w.r.t the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterGauss(NPPImage_8uC4, CudaDeviceVariable<Single>)

    Filters the image using a separable Gaussian filter kernel with user supplied floating point coefficients

    Declaration
    public void FilterGauss(NPPImage_8uC4 dst, CudaDeviceVariable<float> Kernel)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    CudaDeviceVariable<System.Single> Kernel

    Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F, where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1.

    | Improve this Doc View Source

    FilterGauss(NPPImage_8uC4, MaskSize)

    Gauss filter.

    Declaration
    public void FilterGauss(NPPImage_8uC4 dst, MaskSize eMaskSize)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    MaskSize eMaskSize

    Enumeration value specifying the mask size.

    | Improve this Doc View Source

    FilterGaussA(NPPImage_8uC4, CudaDeviceVariable<Single>)

    Filters the image using a separable Gaussian filter kernel with user supplied floating point coefficients

    Declaration
    public void FilterGaussA(NPPImage_8uC4 dst, CudaDeviceVariable<float> Kernel)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    CudaDeviceVariable<System.Single> Kernel

    Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F, where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1.

    | Improve this Doc View Source

    FilterGaussA(NPPImage_8uC4, MaskSize)

    Gauss filter. Not affecting Alpha.

    Declaration
    public void FilterGaussA(NPPImage_8uC4 dst, MaskSize eMaskSize)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    MaskSize eMaskSize

    Enumeration value specifying the mask size.

    | Improve this Doc View Source

    FilterGaussBorder(NPPImage_8uC4, CudaDeviceVariable<Single>, NppiBorderType)

    Filters the image using a separable Gaussian filter kernel with user supplied floating point coefficients

    Declaration
    public void FilterGaussBorder(NPPImage_8uC4 dst, CudaDeviceVariable<float> Kernel, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    CudaDeviceVariable<System.Single> Kernel

    Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F, where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterGaussBorder(NPPImage_8uC4, MaskSize, NppiBorderType)

    Filters the image using a Gaussian filter kernel with border control:

    1/16 2/16 1/16

    2/16 4/16 2/16

    1/16 2/16 1/16

    or

    2/571 7/571 12/571 7/571 2/571

    7/571 31/571 52/571 31/571 7/571

    12/571 52/571 127/571 52/571 12/571

    7/571 31/571 52/571 31/571 7/571

    2/571 7/571 12/571 7/571 2/571

    Declaration
    public void FilterGaussBorder(NPPImage_8uC4 dest, MaskSize eMaskSize, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    MaskSize eMaskSize

    Enumeration value specifying the mask size.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterGaussBorderA(NPPImage_8uC4, CudaDeviceVariable<Single>, NppiBorderType)

    Filters the image using a separable Gaussian filter kernel with user supplied floating point coefficients

    Declaration
    public void FilterGaussBorderA(NPPImage_8uC4 dst, CudaDeviceVariable<float> Kernel, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    CudaDeviceVariable<System.Single> Kernel

    Pointer to an array of nFilterTaps kernel coefficients which sum to 1.0F, where nFilterTaps = 2 * ((int)((float)ceil(radius) + 0.5F) ) + 1.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterGaussBorderA(NPPImage_8uC4, MaskSize, NppiBorderType)

    Filters the image using a Gaussian filter kernel with border control, ignoring alpha channel:

    1/16 2/16 1/16

    2/16 4/16 2/16

    1/16 2/16 1/16

    or

    2/571 7/571 12/571 7/571 2/571

    7/571 31/571 52/571 31/571 7/571

    12/571 52/571 127/571 52/571 12/571

    7/571 31/571 52/571 31/571 7/571

    2/571 7/571 12/571 7/571 2/571

    Declaration
    public void FilterGaussBorderA(NPPImage_8uC4 dest, MaskSize eMaskSize, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    MaskSize eMaskSize

    Enumeration value specifying the mask size.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterHighPass(NPPImage_8uC4, MaskSize)

    High pass filter.

    Declaration
    public void FilterHighPass(NPPImage_8uC4 dst, MaskSize eMaskSize)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    MaskSize eMaskSize

    Enumeration value specifying the mask size.

    | Improve this Doc View Source

    FilterHighPassA(NPPImage_8uC4, MaskSize)

    High pass filter. Not affecting Alpha.

    Declaration
    public void FilterHighPassA(NPPImage_8uC4 dst, MaskSize eMaskSize)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    MaskSize eMaskSize

    Enumeration value specifying the mask size.

    | Improve this Doc View Source

    FilterHighPassBorder(NPPImage_8uC4, MaskSize, NppiBorderType)

    High pass filter.

    Declaration
    public void FilterHighPassBorder(NPPImage_8uC4 dst, MaskSize eMaskSize, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    MaskSize eMaskSize

    Enumeration value specifying the mask size.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterHighPassBorderA(NPPImage_8uC4, MaskSize, NppiBorderType)

    High pass filter.

    Declaration
    public void FilterHighPassBorderA(NPPImage_8uC4 dst, MaskSize eMaskSize, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    MaskSize eMaskSize

    Enumeration value specifying the mask size.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterLaplace(NPPImage_8uC4, MaskSize)

    Laplace filter.

    Declaration
    public void FilterLaplace(NPPImage_8uC4 dst, MaskSize eMaskSize)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    MaskSize eMaskSize

    Enumeration value specifying the mask size.

    | Improve this Doc View Source

    FilterLaplaceA(NPPImage_8uC4, MaskSize)

    Laplace filter. Not affecting Alpha.

    Declaration
    public void FilterLaplaceA(NPPImage_8uC4 dst, MaskSize eMaskSize)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    MaskSize eMaskSize

    Enumeration value specifying the mask size.

    | Improve this Doc View Source

    FilterLaplaceBorder(NPPImage_8uC4, MaskSize, NppiBorderType)

    Laplace filter.

    Declaration
    public void FilterLaplaceBorder(NPPImage_8uC4 dst, MaskSize eMaskSize, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    MaskSize eMaskSize

    Enumeration value specifying the mask size.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterLaplaceBorderA(NPPImage_8uC4, MaskSize, NppiBorderType)

    Laplace filter.

    Declaration
    public void FilterLaplaceBorderA(NPPImage_8uC4 dst, MaskSize eMaskSize, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    MaskSize eMaskSize

    Enumeration value specifying the mask size.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterLowPass(NPPImage_8uC4, MaskSize)

    Low pass filter.

    Declaration
    public void FilterLowPass(NPPImage_8uC4 dst, MaskSize eMaskSize)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    MaskSize eMaskSize

    Enumeration value specifying the mask size.

    | Improve this Doc View Source

    FilterLowPassA(NPPImage_8uC4, MaskSize)

    Low pass filter. Not affecting Alpha.

    Declaration
    public void FilterLowPassA(NPPImage_8uC4 dst, MaskSize eMaskSize)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    MaskSize eMaskSize

    Enumeration value specifying the mask size.

    | Improve this Doc View Source

    FilterLowPassBorder(NPPImage_8uC4, MaskSize, NppiBorderType)

    Low pass filter.

    Declaration
    public void FilterLowPassBorder(NPPImage_8uC4 dst, MaskSize eMaskSize, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    MaskSize eMaskSize

    Enumeration value specifying the mask size.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterLowPassBorderA(NPPImage_8uC4, MaskSize, NppiBorderType)

    Low pass filter.

    Declaration
    public void FilterLowPassBorderA(NPPImage_8uC4 dst, MaskSize eMaskSize, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    MaskSize eMaskSize

    Enumeration value specifying the mask size.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterMax(NPPImage_8uC4, NppiSize, NppiPoint)

    Result pixel value is the maximum of pixel values under the rectangular mask region.

    Declaration
    public void FilterMax(NPPImage_8uC4 dest, NppiSize oMaskSize, NppiPoint oAnchor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiSize oMaskSize

    Width and Height of the neighborhood region for the local Avg operation.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.

    | Improve this Doc View Source

    FilterMaxA(NPPImage_8uC4, NppiSize, NppiPoint)

    Result pixel value is the maximum of pixel values under the rectangular mask region. Not affecting Alpha.

    Declaration
    public void FilterMaxA(NPPImage_8uC4 dest, NppiSize oMaskSize, NppiPoint oAnchor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiSize oMaskSize

    Width and Height of the neighborhood region for the local Avg operation.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.

    | Improve this Doc View Source

    FilterMaxBorder(NPPImage_8uC4, NppiSize, NppiPoint, NppiBorderType)

    Result pixel value is the maximum of pixel values under the rectangular mask region.

    Declaration
    public void FilterMaxBorder(NPPImage_8uC4 dest, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiSize oMaskSize

    Width and Height of the neighborhood region for the local Avg operation.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterMaxBorderA(NPPImage_8uC4, NppiSize, NppiPoint, NppiBorderType)

    Result pixel value is the maximum of pixel values under the rectangular mask region.

    Declaration
    public void FilterMaxBorderA(NPPImage_8uC4 dest, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiSize oMaskSize

    Width and Height of the neighborhood region for the local Avg operation.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterMedian(NPPImage_8uC4, NppiSize, NppiPoint)

    Result pixel value is the median of pixel values under the rectangular mask region.

    Declaration
    public void FilterMedian(NPPImage_8uC4 dst, NppiSize oMaskSize, NppiPoint oAnchor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    NppiSize oMaskSize

    Width and Height of the neighborhood region for the local Median operation.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference relative to the source pixel.

    | Improve this Doc View Source

    FilterMedian(NPPImage_8uC4, NppiSize, NppiPoint, CudaDeviceVariable<Byte>)

    Result pixel value is the median of pixel values under the rectangular mask region.

    Declaration
    public void FilterMedian(NPPImage_8uC4 dst, NppiSize oMaskSize, NppiPoint oAnchor, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    NppiSize oMaskSize

    Width and Height of the neighborhood region for the local Median operation.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference relative to the source pixel.

    CudaDeviceVariable<System.Byte> buffer

    Pointer to the user-allocated scratch buffer required for the Median operation.

    | Improve this Doc View Source

    FilterMedianA(NPPImage_8uC4, NppiSize, NppiPoint)

    Result pixel value is the median of pixel values under the rectangular mask region, ignoring alpha channel.

    Declaration
    public void FilterMedianA(NPPImage_8uC4 dst, NppiSize oMaskSize, NppiPoint oAnchor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    NppiSize oMaskSize

    Width and Height of the neighborhood region for the local Median operation.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference relative to the source pixel.

    | Improve this Doc View Source

    FilterMedianA(NPPImage_8uC4, NppiSize, NppiPoint, CudaDeviceVariable<Byte>)

    Result pixel value is the median of pixel values under the rectangular mask region, ignoring alpha channel.

    Declaration
    public void FilterMedianA(NPPImage_8uC4 dst, NppiSize oMaskSize, NppiPoint oAnchor, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    NppiSize oMaskSize

    Width and Height of the neighborhood region for the local Median operation.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference relative to the source pixel.

    CudaDeviceVariable<System.Byte> buffer

    Pointer to the user-allocated scratch buffer required for the Median operation.

    | Improve this Doc View Source

    FilterMedianGetBufferHostSize(NppiSize)

    Device scratch buffer size (in bytes) for FilterMedian.

    Declaration
    public int FilterMedianGetBufferHostSize(NppiSize oMaskSize)
    Parameters
    Type Name Description
    NppiSize oMaskSize
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    FilterMedianGetBufferHostSizeA(NppiSize)

    Device scratch buffer size (in bytes) for FilterMedian, ignoring alpha channel.

    Declaration
    public int FilterMedianGetBufferHostSizeA(NppiSize oMaskSize)
    Parameters
    Type Name Description
    NppiSize oMaskSize
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    FilterMin(NPPImage_8uC4, NppiSize, NppiPoint)

    Result pixel value is the minimum of pixel values under the rectangular mask region.

    Declaration
    public void FilterMin(NPPImage_8uC4 dest, NppiSize oMaskSize, NppiPoint oAnchor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiSize oMaskSize

    Width and Height of the neighborhood region for the local Avg operation.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.

    | Improve this Doc View Source

    FilterMinA(NPPImage_8uC4, NppiSize, NppiPoint)

    Result pixel value is the minimum of pixel values under the rectangular mask region. Not affecting Alpha.

    Declaration
    public void FilterMinA(NPPImage_8uC4 dest, NppiSize oMaskSize, NppiPoint oAnchor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiSize oMaskSize

    Width and Height of the neighborhood region for the local Avg operation.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.

    | Improve this Doc View Source

    FilterMinBorder(NPPImage_8uC4, NppiSize, NppiPoint, NppiBorderType)

    Result pixel value is the minimum of pixel values under the rectangular mask region.

    Declaration
    public void FilterMinBorder(NPPImage_8uC4 dest, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiSize oMaskSize

    Width and Height of the neighborhood region for the local Avg operation.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterMinBorderA(NPPImage_8uC4, NppiSize, NppiPoint, NppiBorderType)

    Result pixel value is the minimum of pixel values under the rectangular mask region.

    Declaration
    public void FilterMinBorderA(NPPImage_8uC4 dest, NppiSize oMaskSize, NppiPoint oAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiSize oMaskSize

    Width and Height of the neighborhood region for the local Avg operation.

    NppiPoint oAnchor

    X and Y offsets of the kernel origin frame of reference w.r.t the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterPrewittHoriz(NPPImage_8uC4)

    horizontal Prewitt filter.

    Declaration
    public void FilterPrewittHoriz(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    | Improve this Doc View Source

    FilterPrewittHorizA(NPPImage_8uC4)

    horizontal Prewitt filter. Not affecting Alpha.

    Declaration
    public void FilterPrewittHorizA(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    | Improve this Doc View Source

    FilterPrewittHorizBorder(NPPImage_8uC4, NppiBorderType)

    horizontal Prewitt filter.

    Declaration
    public void FilterPrewittHorizBorder(NPPImage_8uC4 dst, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterPrewittHorizBorderA(NPPImage_8uC4, NppiBorderType)

    horizontal Prewitt filter.

    Declaration
    public void FilterPrewittHorizBorderA(NPPImage_8uC4 dst, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterPrewittVert(NPPImage_8uC4)

    vertical Prewitt filter.

    Declaration
    public void FilterPrewittVert(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    | Improve this Doc View Source

    FilterPrewittVertA(NPPImage_8uC4)

    vertical Prewitt filter. Not affecting Alpha.

    Declaration
    public void FilterPrewittVertA(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    | Improve this Doc View Source

    FilterPrewittVertBorder(NPPImage_8uC4, NppiBorderType)

    vertical Prewitt filter.

    Declaration
    public void FilterPrewittVertBorder(NPPImage_8uC4 dst, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterPrewittVertBorderA(NPPImage_8uC4, NppiBorderType)

    vertical Prewitt filter.

    Declaration
    public void FilterPrewittVertBorderA(NPPImage_8uC4 dst, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterRobertsDown(NPPImage_8uC4)

    horizontal Roberts filter.

    Declaration
    public void FilterRobertsDown(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    | Improve this Doc View Source

    FilterRobertsDownA(NPPImage_8uC4)

    horizontal Roberts filter. Not affecting Alpha.

    Declaration
    public void FilterRobertsDownA(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    | Improve this Doc View Source

    FilterRobertsDownBorder(NPPImage_8uC4, NppiBorderType)

    horizontal Roberts filter.

    Declaration
    public void FilterRobertsDownBorder(NPPImage_8uC4 dst, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterRobertsDownBorderA(NPPImage_8uC4, NppiBorderType)

    horizontal Roberts filter.

    Declaration
    public void FilterRobertsDownBorderA(NPPImage_8uC4 dst, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterRobertsUp(NPPImage_8uC4)

    vertical Roberts filter..

    Declaration
    public void FilterRobertsUp(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    | Improve this Doc View Source

    FilterRobertsUpA(NPPImage_8uC4)

    vertical Roberts filter. Not affecting Alpha.

    Declaration
    public void FilterRobertsUpA(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    | Improve this Doc View Source

    FilterRobertsUpBorder(NPPImage_8uC4, NppiBorderType)

    vertical Roberts filter.

    Declaration
    public void FilterRobertsUpBorder(NPPImage_8uC4 dst, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterRobertsUpBorderA(NPPImage_8uC4, NppiBorderType)

    vertical Roberts filter.

    Declaration
    public void FilterRobertsUpBorderA(NPPImage_8uC4 dst, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterRow(NPPImage_8uC4, CudaDeviceVariable<Int32>, Int32, Int32, Int32)

    Apply general linear Row convolution filter, with rescaling, in a 1D mask region around each source pixel. Result pixel is equal to the sum of the products between the kernel coefficients (pKernel array) and corresponding neighboring row pixel values in the source image defined by iKernelDim and iAnchorX, divided by iDivisor.

    Declaration
    public void FilterRow(NPPImage_8uC4 dest, CudaDeviceVariable<int> Kernel, int nKernelSize, int nAnchor, int nDivisor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Int32> Kernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.

    System.Int32 nKernelSize

    Length of the linear kernel array.

    System.Int32 nAnchor

    X offset of the kernel origin frame of reference w.r.t the source pixel.

    System.Int32 nDivisor

    The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.

    | Improve this Doc View Source

    FilterRow(NPPImage_8uC4, CudaDeviceVariable<Single>, Int32)

    1D row convolution.

    Declaration
    public void FilterRow(NPPImage_8uC4 dst, CudaDeviceVariable<float> pKernel, int nAnchor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    CudaDeviceVariable<System.Single> pKernel

    Pointer to the start address of the kernel coefficient array. pKernel.Sizes gives kernel size

    Coefficients are expected to be stored in reverse order.

    System.Int32 nAnchor

    X offset of the kernel origin frame of reference relative to the source pixel.

    | Improve this Doc View Source

    FilterRowA(NPPImage_8uC4, CudaDeviceVariable<Int32>, Int32, Int32, Int32)

    Apply general linear Row convolution filter, with rescaling, in a 1D mask region around each source pixel. Result pixel is equal to the sum of the products between the kernel coefficients (pKernel array) and corresponding neighboring row pixel values in the source image defined by iKernelDim and iAnchorX, divided by iDivisor. Not affecting Alpha.

    Declaration
    public void FilterRowA(NPPImage_8uC4 dest, CudaDeviceVariable<int> Kernel, int nKernelSize, int nAnchor, int nDivisor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Int32> Kernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.

    System.Int32 nKernelSize

    Length of the linear kernel array.

    System.Int32 nAnchor

    X offset of the kernel origin frame of reference w.r.t the source pixel.

    System.Int32 nDivisor

    The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.

    | Improve this Doc View Source

    FilterRowA(NPPImage_8uC4, CudaDeviceVariable<Single>, Int32)

    1D row convolution. Not affecting Alpha.

    Declaration
    public void FilterRowA(NPPImage_8uC4 dst, CudaDeviceVariable<float> pKernel, int nAnchor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    CudaDeviceVariable<System.Single> pKernel

    Pointer to the start address of the kernel coefficient array. pKernel.Sizes gives kernel size

    Coefficients are expected to be stored in reverse order.

    System.Int32 nAnchor

    X offset of the kernel origin frame of reference relative to the source pixel.

    | Improve this Doc View Source

    FilterRowBorder(NPPImage_8uC4, CudaDeviceVariable<Int32>, Int32, Int32, Int32, NppiBorderType)

    Apply general linear Row convolution filter, with rescaling, in a 1D mask region around each source pixel with border control. Result pixel is equal to the sum of the products between the kernel coefficients (pKernel array) and corresponding neighboring row pixel values in the source image defined by iKernelDim and iAnchorX, divided by iDivisor.

    Declaration
    public void FilterRowBorder(NPPImage_8uC4 dest, CudaDeviceVariable<int> Kernel, int nKernelSize, int nAnchor, int nDivisor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Int32> Kernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.

    System.Int32 nKernelSize

    Length of the linear kernel array.

    System.Int32 nAnchor

    X offset of the kernel origin frame of reference w.r.t the source pixel.

    System.Int32 nDivisor

    The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterRowBorder(NPPImage_8uC4, CudaDeviceVariable<Single>, Int32, NppiBorderType)

    General purpose 1D convolution row filter with border control.

    Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image.

    Declaration
    public void FilterRowBorder(NPPImage_8uC4 dest, CudaDeviceVariable<float> Kernel, int nAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Single> Kernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.

    System.Int32 nAnchor

    X offset of the kernel origin frame of reference w.r.t the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterRowBorderA(NPPImage_8uC4, CudaDeviceVariable<Int32>, Int32, Int32, Int32, NppiBorderType)

    Apply general linear Row convolution filter, with rescaling, in a 1D mask region around each source pixel with border control. Result pixel is equal to the sum of the products between the kernel coefficients (pKernel array) and corresponding neighboring row pixel values in the source image defined by iKernelDim and iAnchorX, divided by iDivisor. Not affecting Alpha.

    Declaration
    public void FilterRowBorderA(NPPImage_8uC4 dest, CudaDeviceVariable<int> Kernel, int nKernelSize, int nAnchor, int nDivisor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Int32> Kernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.

    System.Int32 nKernelSize

    Length of the linear kernel array.

    System.Int32 nAnchor

    X offset of the kernel origin frame of reference w.r.t the source pixel.

    System.Int32 nDivisor

    The factor by which the convolved summation from the Filter operation should be divided. If equal to the sum of coefficients, this will keep the maximum result value within full scale.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterRowBorderA(NPPImage_8uC4, CudaDeviceVariable<Single>, Int32, NppiBorderType)

    General purpose 1D convolution row filter with border control.

    Pixels under the mask are multiplied by the respective weights in the mask and the results are summed. If any portion of the mask overlaps the source image boundary the requested border type operation is applied to all mask pixels which fall outside of the source image.

    Declaration
    public void FilterRowBorderA(NPPImage_8uC4 dest, CudaDeviceVariable<float> Kernel, int nAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Single> Kernel

    Pointer to the start address of the kernel coefficient array. Coeffcients are expected to be stored in reverse order.

    System.Int32 nAnchor

    X offset of the kernel origin frame of reference w.r.t the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterSharpen(NPPImage_8uC4)

    Sharpen filter.

    Declaration
    public void FilterSharpen(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    | Improve this Doc View Source

    FilterSharpenA(NPPImage_8uC4)

    Sharpen filter. Not affecting Alpha.

    Declaration
    public void FilterSharpenA(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    | Improve this Doc View Source

    FilterSharpenBorder(NPPImage_8uC4, NppiBorderType)

    Sharpen filter.

    Declaration
    public void FilterSharpenBorder(NPPImage_8uC4 dst, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterSharpenBorderA(NPPImage_8uC4, NppiBorderType)

    Sharpen filter.

    Declaration
    public void FilterSharpenBorderA(NPPImage_8uC4 dst, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterSobelHorizBorder(NPPImage_8uC4, NppiBorderType)

    Filters the image using a horizontal Sobel filter kernel with border control.

    Declaration
    public void FilterSobelHorizBorder(NPPImage_8uC4 dest, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterSobelHorizBorderA(NPPImage_8uC4, NppiBorderType)

    Filters the image using a horizontal Sobel filter kernel with border control, ignoring alpha channel.

    Declaration
    public void FilterSobelHorizBorderA(NPPImage_8uC4 dest, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterSobelVert(NPPImage_8uC4)

    vertical Sobel filter.

    Declaration
    public void FilterSobelVert(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    | Improve this Doc View Source

    FilterSobelVertA(NPPImage_8uC4)

    vertical Sobel filter. Not affecting Alpha.

    Declaration
    public void FilterSobelVertA(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    | Improve this Doc View Source

    FilterSobelVertBorder(NPPImage_8uC4, NppiBorderType)

    Filters the image using a vertical Sobel filter kernel with border control.

    Declaration
    public void FilterSobelVertBorder(NPPImage_8uC4 dest, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterSobelVertBorderA(NPPImage_8uC4, NppiBorderType)

    Filters the image using a vertical Sobel filter kernel with border control, ignoring alpha channel.

    Declaration
    public void FilterSobelVertBorderA(NPPImage_8uC4 dest, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterUnsharpBorder(NPPImage_8uC4, Single, Single, Single, Single, NppiBorderType, CudaDeviceVariable<Byte>)

    Filters the image using a unsharp-mask sharpening filter kernel with border control.

    The algorithm involves the following steps:

    Smooth the original image with a Gaussian filter, with the width controlled by the nRadius.

    Subtract the smoothed image from the original to create a high-pass filtered image.

    Apply any clipping needed on the high-pass image, as controlled by the nThreshold.

    Add a certain percentage of the high-pass filtered image to the original image, with the percentage controlled by the nWeight. In pseudocode this algorithm can be written as:

    HighPass = Image - Gaussian(Image)

    Result = Image + nWeight * HighPass * ( |HighPass| >= nThreshold )

    where nWeight is the amount, nThreshold is the threshold, and >= indicates a Boolean operation, 1 if true, or 0 otherwise.

    If any portion of the mask overlaps the source image boundary, the requested border type operation is applied to all mask pixels which fall outside of the source image.

    Declaration
    public void FilterUnsharpBorder(NPPImage_8uC4 dst, float nRadius, float nSigma, float nWeight, float nThreshold, NppiBorderType eBorderType, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    System.Single nRadius

    The radius of the Gaussian filter, in pixles, not counting the center pixel.

    System.Single nSigma

    The standard deviation of the Gaussian filter, in pixel.

    System.Single nWeight

    The percentage of the difference between the original and the high pass image that is added back into the original.

    System.Single nThreshold

    The threshold needed to apply the difference amount.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    CudaDeviceVariable<System.Byte> buffer

    Pointer to the user-allocated device scratch buffer required for the unsharp operation.

    | Improve this Doc View Source

    FilterUnsharpBorderA(NPPImage_8uC4, Single, Single, Single, Single, NppiBorderType, CudaDeviceVariable<Byte>)

    Filters the image using a unsharp-mask sharpening filter kernel with border control.

    The algorithm involves the following steps:

    Smooth the original image with a Gaussian filter, with the width controlled by the nRadius.

    Subtract the smoothed image from the original to create a high-pass filtered image.

    Apply any clipping needed on the high-pass image, as controlled by the nThreshold.

    Add a certain percentage of the high-pass filtered image to the original image, with the percentage controlled by the nWeight. In pseudocode this algorithm can be written as:

    HighPass = Image - Gaussian(Image)

    Result = Image + nWeight * HighPass * ( |HighPass| >= nThreshold )

    where nWeight is the amount, nThreshold is the threshold, and >= indicates a Boolean operation, 1 if true, or 0 otherwise.

    If any portion of the mask overlaps the source image boundary, the requested border type operation is applied to all mask pixels which fall outside of the source image.

    Declaration
    public void FilterUnsharpBorderA(NPPImage_8uC4 dst, float nRadius, float nSigma, float nWeight, float nThreshold, NppiBorderType eBorderType, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    System.Single nRadius

    The radius of the Gaussian filter, in pixles, not counting the center pixel.

    System.Single nSigma

    The standard deviation of the Gaussian filter, in pixel.

    System.Single nWeight

    The percentage of the difference between the original and the high pass image that is added back into the original.

    System.Single nThreshold

    The threshold needed to apply the difference amount.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    CudaDeviceVariable<System.Byte> buffer

    Pointer to the user-allocated device scratch buffer required for the unsharp operation.

    | Improve this Doc View Source

    FilterUnsharpGetBufferSize(Single, Single)

    Scratch-buffer size for unsharp filter.

    Declaration
    public int FilterUnsharpGetBufferSize(float nRadius, float nSigma)
    Parameters
    Type Name Description
    System.Single nRadius

    The radius of the Gaussian filter, in pixles, not counting the center pixel.

    System.Single nSigma

    The standard deviation of the Gaussian filter, in pixel.

    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    FilterUnsharpGetBufferSizeA(Single, Single)

    Scratch-buffer size for unsharp filter.

    Declaration
    public int FilterUnsharpGetBufferSizeA(float nRadius, float nSigma)
    Parameters
    Type Name Description
    System.Single nRadius

    The radius of the Gaussian filter, in pixles, not counting the center pixel.

    System.Single nSigma

    The standard deviation of the Gaussian filter, in pixel.

    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    FilterWienerBorder(NPPImage_8uC4, NppiSize, NppiPoint, Single[], NppiBorderType)

    Wiener filter with border control.

    Declaration
    public void FilterWienerBorder(NPPImage_8uC4 dest, NppiSize oMaskSize, NppiPoint oAnchor, float[] aNoise, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    destination_image_pointer

    NppiSize oMaskSize

    Pixel Width and Height of the rectangular region of interest surrounding the source pixel.

    NppiPoint oAnchor

    Positive X and Y relative offsets of primary pixel in region of interest surrounding the source pixel relative to bottom right of oMaskSize.

    System.Single[] aNoise

    Fixed size array of per-channel noise variance level value in range of 0.0F to 1.0F.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    FilterWienerBorderA(NPPImage_8uC4, NppiSize, NppiPoint, Single[], NppiBorderType)

    Wiener filter with border control, ignoring alpha channel.

    Declaration
    public void FilterWienerBorderA(NPPImage_8uC4 dest, NppiSize oMaskSize, NppiPoint oAnchor, float[] aNoise, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    destination_image_pointer

    NppiSize oMaskSize

    Pixel Width and Height of the rectangular region of interest surrounding the source pixel.

    NppiPoint oAnchor

    Positive X and Y relative offsets of primary pixel in region of interest surrounding the source pixel relative to bottom right of oMaskSize.

    System.Single[] aNoise

    Fixed size array of per-channel noise variance level value in range of 0.0F to 1.0F.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    Finalize()

    For dispose

    Declaration
    protected void Finalize()
    | Improve this Doc View Source

    FullNormLevelAGetBufferHostSize()

    Device scratch buffer size (in bytes) for CrossCorrFull_NormLevel. Not affecting Alpha.

    Declaration
    public int FullNormLevelAGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    FullNormLevelGetBufferHostSize()

    Device scratch buffer size (in bytes) for CrossCorrFull_NormLevel.

    Declaration
    public int FullNormLevelGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    FullNormLevelScaledAGetBufferHostSize()

    Device scratch buffer size (in bytes) for CrossCorrFull_NormLevel. Not affecting Alpha.

    Declaration
    public int FullNormLevelScaledAGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    FullNormLevelScaledGetBufferHostSize()

    Device scratch buffer size (in bytes) for CrossCorrFull_NormLevel.

    Declaration
    public int FullNormLevelScaledGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    GammaA()

    Inplace image forward gamma correction. Not affecting alpha.

    Declaration
    public void GammaA()
    | Improve this Doc View Source

    GammaA(NPPImage_8uC4)

    image forward gamma correction. Not affecting alpha.

    Declaration
    public void GammaA(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    GammaInvA()

    Inplace image inverse gamma correction. Not affecting alpha.

    Declaration
    public void GammaInvA()
    | Improve this Doc View Source

    GammaInvA(NPPImage_8uC4)

    image inverse gamma correction. Not affecting alpha.

    Declaration
    public void GammaInvA(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    GetAffineBound(Double[,])

    Calculates bounding box of the affine transform projection of the given source rectangular ROI

    Declaration
    public double[, ] GetAffineBound(double[, ] coeffs)
    Parameters
    Type Name Description
    System.Double[,] coeffs

    Affine transform coefficients [2,3]

    Returns
    Type Description
    System.Double[,]

    Destination quadrangle [2,2]

    | Improve this Doc View Source

    GetAffineQuad(Double[,])

    Calculates affine transform projection of given source rectangular ROI

    Declaration
    public double[, ] GetAffineQuad(double[, ] coeffs)
    Parameters
    Type Name Description
    System.Double[,] coeffs

    Affine transform coefficients [2,3]

    Returns
    Type Description
    System.Double[,]

    Destination quadrangle [4,2]

    | Improve this Doc View Source

    GetAffineTransform(Double[,])

    Calculates affine transform coefficients given source rectangular ROI and its destination quadrangle projection

    Declaration
    public double[, ] GetAffineTransform(double[, ] quad)
    Parameters
    Type Name Description
    System.Double[,] quad

    Destination quadrangle [4,2]

    Returns
    Type Description
    System.Double[,]

    Affine transform coefficients [2,3]

    | Improve this Doc View Source

    GetPerspectiveBound(Double[,])

    Calculates bounding box of the affine transform projection of the given source rectangular ROI

    Declaration
    public double[, ] GetPerspectiveBound(double[, ] coeffs)
    Parameters
    Type Name Description
    System.Double[,] coeffs

    Perspective transform coefficients [3,3]

    Returns
    Type Description
    System.Double[,]

    Destination quadrangle [2,2]

    | Improve this Doc View Source

    GetPerspectiveQuad(Double[,])

    Calculates perspective transform projection of given source rectangular ROI

    Declaration
    public double[, ] GetPerspectiveQuad(double[, ] coeffs)
    Parameters
    Type Name Description
    System.Double[,] coeffs

    Perspective transform coefficients [3,3]

    Returns
    Type Description
    System.Double[,]

    Destination quadrangle [4,2]

    | Improve this Doc View Source

    GetPerspectiveTransform(Double[,])

    Calculates affine transform coefficients given source rectangular ROI and its destination quadrangle projection

    Declaration
    public double[, ] GetPerspectiveTransform(double[, ] quad)
    Parameters
    Type Name Description
    System.Double[,] quad

    Destination quadrangle [4,2]

    Returns
    Type Description
    System.Double[,]

    Perspective transform coefficients [3,3]

    | Improve this Doc View Source

    GetRotateBound(Double, Double, Double)

    Compute bounding-box of rotated image.

    Declaration
    public double[, ] GetRotateBound(double nAngle, double nShiftX, double nShiftY)
    Parameters
    Type Name Description
    System.Double nAngle

    The angle of rotation in degrees.

    System.Double nShiftX

    Shift along horizontal axis

    System.Double nShiftY

    Shift along vertical axis

    Returns
    Type Description
    System.Double[,]
    | Improve this Doc View Source

    GetRotateQuad(Double, Double, Double)

    Compute shape of rotated image.

    Declaration
    public double[, ] GetRotateQuad(double nAngle, double nShiftX, double nShiftY)
    Parameters
    Type Name Description
    System.Double nAngle

    The angle of rotation in degrees.

    System.Double nShiftX

    Shift along horizontal axis

    System.Double nShiftY

    Shift along vertical axis

    Returns
    Type Description
    System.Double[,]
    | Improve this Doc View Source

    HistogramEven(CudaDeviceVariable<Int32>[], Int32[], Int32[])

    Histogram with evenly distributed bins. Buffer is internally allocated and freed.

    Declaration
    public void HistogramEven(CudaDeviceVariable<int>[] histogram, int[] nLowerLevel, int[] nUpperLevel)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Int32>[] histogram

    Allocated device memory of size nLevels (4 Variables)

    System.Int32[] nLowerLevel

    Lower boundary of lowest level bin. E.g. 0 for [0..255]. Size = 4

    System.Int32[] nUpperLevel

    Upper boundary of highest level bin. E.g. 256 for [0..255]. Size = 4

    | Improve this Doc View Source

    HistogramEven(CudaDeviceVariable<Int32>[], Int32[], Int32[], CudaDeviceVariable<Byte>)

    Histogram with evenly distributed bins. No additional buffer is allocated.

    Declaration
    public void HistogramEven(CudaDeviceVariable<int>[] histogram, int[] nLowerLevel, int[] nUpperLevel, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Int32>[] histogram

    Allocated device memory of size nLevels (4 Variables)

    System.Int32[] nLowerLevel

    Lower boundary of lowest level bin. E.g. 0 for [0..255]. Size = 4

    System.Int32[] nUpperLevel

    Upper boundary of highest level bin. E.g. 256 for [0..255]. Size = 4

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at HistogramEvenGetBufferSize(Int32[])

    | Improve this Doc View Source

    HistogramEvenA(CudaDeviceVariable<Int32>[], Int32[], Int32[])

    Histogram with evenly distributed bins. Buffer is internally allocated and freed. Alpha channel is ignored during the histograms computations.

    Declaration
    public void HistogramEvenA(CudaDeviceVariable<int>[] histogram, int[] nLowerLevel, int[] nUpperLevel)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Int32>[] histogram

    Allocated device memory of size nLevels (3 Variables)

    System.Int32[] nLowerLevel

    Lower boundary of lowest level bin. E.g. 0 for [0..255]. Size = 3

    System.Int32[] nUpperLevel

    Upper boundary of highest level bin. E.g. 256 for [0..255]. Size = 3

    | Improve this Doc View Source

    HistogramEvenA(CudaDeviceVariable<Int32>[], Int32[], Int32[], CudaDeviceVariable<Byte>)

    Histogram with evenly distributed bins. No additional buffer is allocated. Alpha channel is ignored during the histograms computations.

    Declaration
    public void HistogramEvenA(CudaDeviceVariable<int>[] histogram, int[] nLowerLevel, int[] nUpperLevel, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Int32>[] histogram

    Allocated device memory of size nLevels (3 Variables)

    System.Int32[] nLowerLevel

    Lower boundary of lowest level bin. E.g. 0 for [0..255]. Size = 3

    System.Int32[] nUpperLevel

    Upper boundary of highest level bin. E.g. 256 for [0..255]. Size = 3

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at HistogramEvenGetBufferSizeA(Int32[])

    | Improve this Doc View Source

    HistogramEvenGetBufferSize(Int32[])

    Scratch-buffer size for HistogramEven.

    Declaration
    public int HistogramEvenGetBufferSize(int[] nLevels)
    Parameters
    Type Name Description
    System.Int32[] nLevels
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    HistogramEvenGetBufferSizeA(Int32[])

    Scratch-buffer size for HistogramEven. Not affecting Alpha channel.

    Declaration
    public int HistogramEvenGetBufferSizeA(int[] nLevels)
    Parameters
    Type Name Description
    System.Int32[] nLevels
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    HistogramRange(CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])

    Histogram with bins determined by pLevels array. Buffer is internally allocated and freed.

    Declaration
    public void HistogramRange(CudaDeviceVariable<int>[] histogram, CudaDeviceVariable<int>[] pLevels)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Int32>[] histogram

    array that receives the computed histogram. The CudaDeviceVariable must be of size nLevels-1. Array size = 4

    CudaDeviceVariable<System.Int32>[] pLevels

    Array in device memory containing the level sizes of the bins. The CudaDeviceVariable must be of size nLevels. Array size = 4

    | Improve this Doc View Source

    HistogramRange(CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[], CudaDeviceVariable<Byte>)

    Histogram with bins determined by pLevels array. No additional buffer is allocated.

    Declaration
    public void HistogramRange(CudaDeviceVariable<int>[] histogram, CudaDeviceVariable<int>[] pLevels, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Int32>[] histogram

    array that receives the computed histogram. The CudaDeviceVariable must be of size nLevels-1. Array size = 4

    CudaDeviceVariable<System.Int32>[] pLevels

    Array in device memory containing the level sizes of the bins. The CudaDeviceVariable must be of size nLevels. Array size = 4

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at HistogramRangeGetBufferSize(Int32[])

    | Improve this Doc View Source

    HistogramRangeA(CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])

    Histogram with bins determined by pLevels array. Buffer is internally allocated and freed. Alpha channel is ignored during the histograms computations.

    Declaration
    public void HistogramRangeA(CudaDeviceVariable<int>[] histogram, CudaDeviceVariable<int>[] pLevels)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Int32>[] histogram

    array that receives the computed histogram. The CudaDeviceVariable must be of size nLevels-1. Array size = 3

    CudaDeviceVariable<System.Int32>[] pLevels

    Array in device memory containing the level sizes of the bins. The CudaDeviceVariable must be of size nLevels. Array size = 3

    | Improve this Doc View Source

    HistogramRangeA(CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[], CudaDeviceVariable<Byte>)

    Histogram with bins determined by pLevels array. No additional buffer is allocated. Alpha channel is ignored during the histograms computations.

    Declaration
    public void HistogramRangeA(CudaDeviceVariable<int>[] histogram, CudaDeviceVariable<int>[] pLevels, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Int32>[] histogram

    array that receives the computed histogram. The CudaDeviceVariable must be of size nLevels-1. Array size = 3

    CudaDeviceVariable<System.Int32>[] pLevels

    Array in device memory containing the level sizes of the bins. The CudaDeviceVariable must be of size nLevels. Array size = 3

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at HistogramRangeGetBufferSizeA(Int32[])

    | Improve this Doc View Source

    HistogramRangeGetBufferSize(Int32[])

    Scratch-buffer size for HistogramRange.

    Declaration
    public int HistogramRangeGetBufferSize(int[] nLevels)
    Parameters
    Type Name Description
    System.Int32[] nLevels
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    HistogramRangeGetBufferSizeA(Int32[])

    Scratch-buffer size for HistogramRange. Not affecting Alpha channel.

    Declaration
    public int HistogramRangeGetBufferSizeA(int[] nLevels)
    Parameters
    Type Name Description
    System.Int32[] nLevels
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    HLSToBGR(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    4 channel 8-bit unsigned packed HLS with alpha to 4 channel 8-bit unsigned planar BGR with alpha color conversion.

    Declaration
    public void HLSToBGR(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2, NPPImage_8uC1 dest3)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest0

    Destination image channel 0

    NPPImage_8uC1 dest1

    Destination image channel 1

    NPPImage_8uC1 dest2

    Destination image channel 2

    NPPImage_8uC1 dest3

    Destination image channel 3

    | Improve this Doc View Source

    HLSToBGR(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    4 channel 8-bit unsigned planar HLS with alpha to 4 channel 8-bit unsigned planar BGR with alpha color conversion.

    Declaration
    public static void HLSToBGR(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC1 src3, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2, NPPImage_8uC1 dest3)
    Parameters
    Type Name Description
    NPPImage_8uC1 src0

    Source image channel 0

    NPPImage_8uC1 src1

    Source image channel 1

    NPPImage_8uC1 src2

    Source image channel 2

    NPPImage_8uC1 src3

    Source image channel 2

    NPPImage_8uC1 dest0

    Destination image channel 0

    NPPImage_8uC1 dest1

    Destination image channel 1

    NPPImage_8uC1 dest2

    Destination image channel 2

    NPPImage_8uC1 dest3

    Destination image channel 3

    | Improve this Doc View Source

    HLSToBGR(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC4)

    4 channel 8-bit unsigned planar HLS with alpha to 4 channel 8-bit unsigned packed BGR with alpha color conversion.

    Declaration
    public static void HLSToBGR(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC1 src3, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC1 src0

    Source image channel 0

    NPPImage_8uC1 src1

    Source image channel 1

    NPPImage_8uC1 src2

    Source image channel 2

    NPPImage_8uC1 src3

    Source image channel 2

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    HLSToRGB(NPPImage_8uC4)

    4 channel 8-bit unsigned packed HLS with alpha to 4 channel 8-bit unsigned packed RGB with alpha color conversion.

    Declaration
    public void HLSToRGB(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    HSVToRGB(NPPImage_8uC4)

    4 channel 8-bit unsigned packed HSV with alpha to 4 channel 8-bit unsigned packed RGB with alpha color conversion.

    Declaration
    public void HSVToRGB(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    LShiftC(UInt32[])

    image bit shift by constant (left), inplace.

    Declaration
    public void LShiftC(uint[] nConstant)
    Parameters
    Type Name Description
    System.UInt32[] nConstant

    Constant (Array length = 4)

    | Improve this Doc View Source

    LShiftC(UInt32[], NPPImage_8uC4)

    image bit shift by constant (left).

    Declaration
    public void LShiftC(uint[] nConstant, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    System.UInt32[] nConstant

    Constant (Array length = 4)

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    LShiftCA(UInt32[])

    image bit shift by constant (left), inplace. Unchanged Alpha.

    Declaration
    public void LShiftCA(uint[] nConstant)
    Parameters
    Type Name Description
    System.UInt32[] nConstant

    Constant (Array length = 4)

    | Improve this Doc View Source

    LShiftCA(UInt32[], NPPImage_8uC4)

    image bit shift by constant (left). Unchanged Alpha.

    Declaration
    public void LShiftCA(uint[] nConstant, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    System.UInt32[] nConstant

    Constant (Array length = 4)

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    LUT(CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])

    Inplace look-up-table color conversion. The LUT is derived from a set of user defined mapping points with no interpolation.

    Declaration
    public void LUT(CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Int32>[] pValues

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

    CudaDeviceVariable<System.Int32>[] pLevels

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

    | Improve this Doc View Source

    Lut(NPPImage_8uC4, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>)

    look-up-table color conversion.

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

    Declaration
    public void Lut(NPPImage_8uC4 dest, CudaDeviceVariable<int> values0, CudaDeviceVariable<int> levels0, CudaDeviceVariable<int> values1, CudaDeviceVariable<int> levels1, CudaDeviceVariable<int> values2, CudaDeviceVariable<int> levels2, CudaDeviceVariable<int> values3, CudaDeviceVariable<int> levels3)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Int32> values0

    array of user defined OUTPUT values, channel 0

    CudaDeviceVariable<System.Int32> levels0

    array of user defined INPUT values, channel 0

    CudaDeviceVariable<System.Int32> values1

    array of user defined OUTPUT values, channel 1

    CudaDeviceVariable<System.Int32> levels1

    array of user defined INPUT values, channel 1

    CudaDeviceVariable<System.Int32> values2

    array of user defined OUTPUT values, channel 2

    CudaDeviceVariable<System.Int32> levels2

    array of user defined INPUT values, channel 2

    CudaDeviceVariable<System.Int32> values3

    array of user defined OUTPUT values, channel 3

    CudaDeviceVariable<System.Int32> levels3

    array of user defined INPUT values, channel 3

    | Improve this Doc View Source

    LUT(NPPImage_8uC4, CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])

    look-up-table color conversion. The LUT is derived from a set of user defined mapping points with no interpolation.

    Declaration
    public void LUT(NPPImage_8uC4 dst, CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    CudaDeviceVariable<System.Int32>[] pValues

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

    CudaDeviceVariable<System.Int32>[] pLevels

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

    | Improve this Doc View Source

    LUTA(CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])

    Inplace look-up-table color conversion. The LUT is derived from a set of user defined mapping points with no interpolation. Not affecting Alpha.

    Declaration
    public void LUTA(CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Int32>[] pValues

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

    CudaDeviceVariable<System.Int32>[] pLevels

    Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values. pLevels.Size gives nLevels.

    | Improve this Doc View Source

    LutA(NPPImage_8uC4, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>)

    look-up-table color conversion.

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

    Declaration
    public void LutA(NPPImage_8uC4 dest, CudaDeviceVariable<int> values0, CudaDeviceVariable<int> levels0, CudaDeviceVariable<int> values1, CudaDeviceVariable<int> levels1, CudaDeviceVariable<int> values2, CudaDeviceVariable<int> levels2)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Int32> values0

    array of user defined OUTPUT values, channel 0

    CudaDeviceVariable<System.Int32> levels0

    array of user defined INPUT values, channel 0

    CudaDeviceVariable<System.Int32> values1

    array of user defined OUTPUT values, channel 1

    CudaDeviceVariable<System.Int32> levels1

    array of user defined INPUT values, channel 1

    CudaDeviceVariable<System.Int32> values2

    array of user defined OUTPUT values, channel 2

    CudaDeviceVariable<System.Int32> levels2

    array of user defined INPUT values, channel 2

    | Improve this Doc View Source

    LUTA(NPPImage_8uC4, CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])

    look-up-table color conversion. The LUT is derived from a set of user defined mapping points with no interpolation. Not affecting Alpha.

    Declaration
    public void LUTA(NPPImage_8uC4 dst, CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    CudaDeviceVariable<System.Int32>[] pValues

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

    CudaDeviceVariable<System.Int32>[] pLevels

    Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values. pLevels.Size gives nLevels.

    | Improve this Doc View Source

    LUTCubic(CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])

    Inplace cubic interpolated look-up-table color conversion. The LUT is derived from a set of user defined mapping points through cubic interpolation.

    Declaration
    public void LUTCubic(CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Int32>[] pValues

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

    CudaDeviceVariable<System.Int32>[] pLevels

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

    | Improve this Doc View Source

    LUTCubic(NPPImage_8uC4, CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])

    cubic interpolated look-up-table color conversion. The LUT is derived from a set of user defined mapping points through cubic interpolation.

    Declaration
    public void LUTCubic(NPPImage_8uC4 dst, CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    CudaDeviceVariable<System.Int32>[] pValues

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

    CudaDeviceVariable<System.Int32>[] pLevels

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

    | Improve this Doc View Source

    LUTCubicA(CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])

    Inplace cubic interpolated look-up-table color conversion. The LUT is derived from a set of user defined mapping points through cubic interpolation. Not affecting Alpha.

    Declaration
    public void LUTCubicA(CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Int32>[] pValues

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

    CudaDeviceVariable<System.Int32>[] pLevels

    Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values. pLevels.Size gives nLevels.

    | Improve this Doc View Source

    LUTCubicA(NPPImage_8uC4, CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])

    cubic interpolated look-up-table color conversion. The LUT is derived from a set of user defined mapping points through cubic interpolation. Not affecting Alpha.

    Declaration
    public void LUTCubicA(NPPImage_8uC4 dst, CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    CudaDeviceVariable<System.Int32>[] pValues

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

    CudaDeviceVariable<System.Int32>[] pLevels

    Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values. pLevels.Size gives nLevels.

    | Improve this Doc View Source

    LUTLinear(CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])

    Inplace linear interpolated look-up-table color conversion. The LUT is derived from a set of user defined mapping points through cubic interpolation.

    Declaration
    public void LUTLinear(CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Int32>[] pValues

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

    CudaDeviceVariable<System.Int32>[] pLevels

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

    | Improve this Doc View Source

    LUTLinearA(CudaDeviceVariable<Int32>[], CudaDeviceVariable<Int32>[])

    Inplace linear interpolated look-up-table color conversion. The LUT is derived from a set of user defined mapping points through cubic interpolation. Not affecting Alpha.

    Declaration
    public void LUTLinearA(CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Int32>[] pValues

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

    CudaDeviceVariable<System.Int32>[] pLevels

    Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values. pLevels.Size gives nLevels.

    | Improve this Doc View Source

    LUTPalette(NPPImage_8uC4, CudaDeviceVariable<Byte>[], Int32)

    range restricted palette look-up-table color conversion. The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.

    Declaration
    public void LUTPalette(NPPImage_8uC4 dst, CudaDeviceVariable<byte>[] pTable, int nBitSize)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    CudaDeviceVariable<System.Byte>[] pTable

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

    System.Int32 nBitSize

    Number of least significant bits (must be > 0 and <= 8) of each source pixel value to use as index into palette table during conversion.

    | Improve this Doc View Source

    LUTPaletteA(NPPImage_8uC4, CudaDeviceVariable<Byte>[], Int32)

    range restricted palette look-up-table color conversion. The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values. Not affecting Alpha.

    Declaration
    public void LUTPaletteA(NPPImage_8uC4 dst, CudaDeviceVariable<byte>[] pTable, int nBitSize)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    CudaDeviceVariable<System.Byte>[] pTable

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

    System.Int32 nBitSize

    Number of least significant bits (must be > 0 and <= 8) of each source pixel value to use as index into palette table during conversion.

    | Improve this Doc View Source

    LUTTrilinear(NPPImage_8uC4, CudaDeviceVariable<Int32>, Int32[], Int32[], Int32[], Int32[])

    Four channel 8-bit unsigned 3D trilinear interpolated look-up-table color conversion, with alpha copy.

    Alpha channel is the last channel and is copied to the destination unmodified.

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

    Declaration
    public void LUTTrilinear(NPPImage_8uC4 dst, CudaDeviceVariable<int> pValues, int[] pLevels0, int[] pLevels1, int[] pLevels2, int[] aLevels)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    CudaDeviceVariable<System.Int32> pValues

    Device pointer to aLevels[2] number of contiguous 2D x,y planes of 4-byte packed RGBX values containing the user defined base OUTPUT values at that x,y, and z (R,G,B) level location. Each level must contain x * y 4-byte packed pixel values (4th byte is used for alignement only and is ignored) in row (x) order.

    System.Int32[] pLevels0

    array, cube edge 0, with user defined INPUT level values.

    System.Int32[] pLevels1

    array, cube edge 1, with user defined INPUT level values.

    System.Int32[] pLevels2

    array, cube edge 2, with user defined INPUT level values.

    System.Int32[] aLevels

    Host pointer to an array of 3 user defined number of input/output mapping points, one per 3D cube edge. aLevels[0] represents the number of x axis levels (Red), aLevels[1] represents the number of y axis levels (Green), and aLevels[2] represets the number of z axis levels (Blue).

    | Improve this Doc View Source

    LUTTrilinearA(CudaDeviceVariable<Int32>, Int32[], Int32[], Int32[], Int32[])

    Four channel 8-bit unsigned 3D trilinear interpolated look-up-table color conversion, not affecting alpha.

    Alpha channel is the last channel and is not processed.

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

    Declaration
    public void LUTTrilinearA(CudaDeviceVariable<int> pValues, int[] pLevels0, int[] pLevels1, int[] pLevels2, int[] aLevels)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Int32> pValues

    Device pointer to aLevels[2] number of contiguous 2D x,y planes of 4-byte packed RGBX values containing the user defined base OUTPUT values at that x,y, and z (R,G,B) level location. Each level must contain x * y 4-byte packed pixel values (4th byte is used for alignement only and is ignored) in row (x) order.

    System.Int32[] pLevels0

    array, cube edge 0, with user defined INPUT level values.

    System.Int32[] pLevels1

    array, cube edge 1, with user defined INPUT level values.

    System.Int32[] pLevels2

    array, cube edge 2, with user defined INPUT level values.

    System.Int32[] aLevels

    Host pointer to an array of 3 user defined number of input/output mapping points, one per 3D cube edge. aLevels[0] represents the number of x axis levels (Red), aLevels[1] represents the number of y axis levels (Green), and aLevels[2] represets the number of z axis levels (Blue).

    | Improve this Doc View Source

    LUTTrilinearA(NPPImage_8uC4, CudaDeviceVariable<Int32>, Int32[], Int32[], Int32[], Int32[])

    Four channel 8-bit unsigned 3D trilinear interpolated look-up-table color conversion, not affecting alpha.

    Alpha channel is the last channel and is not processed.

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

    Declaration
    public void LUTTrilinearA(NPPImage_8uC4 dst, CudaDeviceVariable<int> pValues, int[] pLevels0, int[] pLevels1, int[] pLevels2, int[] aLevels)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    CudaDeviceVariable<System.Int32> pValues

    Device pointer to aLevels[2] number of contiguous 2D x,y planes of 4-byte packed RGBX values containing the user defined base OUTPUT values at that x,y, and z (R,G,B) level location. Each level must contain x * y 4-byte packed pixel values (4th byte is used for alignement only and is ignored) in row (x) order.

    System.Int32[] pLevels0

    array, cube edge 0, with user defined INPUT level values.

    System.Int32[] pLevels1

    array, cube edge 1, with user defined INPUT level values.

    System.Int32[] pLevels2

    array, cube edge 2, with user defined INPUT level values.

    System.Int32[] aLevels

    Host pointer to an array of 3 user defined number of input/output mapping points, one per 3D cube edge. aLevels[0] represents the number of x axis levels (Red), aLevels[1] represents the number of y axis levels (Green), and aLevels[2] represets the number of z axis levels (Blue).

    | Improve this Doc View Source

    LUVToRGB(NPPImage_8uC4)

    4 channel 8-bit unsigned packed LUV with alpha to 4 channel 8-bit unsigned packed RGB with alpha color conversion.

    Declaration
    public void LUVToRGB(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    Max(CudaDeviceVariable<Byte>)

    Image pixel maximum. Buffer is internally allocated and freed.

    Declaration
    public void Max(CudaDeviceVariable<byte> max)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Byte> max

    Allocated device memory with size of at least 4 * sizeof(byte)

    | Improve this Doc View Source

    Max(CudaDeviceVariable<Byte>, CudaDeviceVariable<Byte>)

    Image pixel maximum. No additional buffer is allocated.

    Declaration
    public void Max(CudaDeviceVariable<byte> max, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Byte> max

    Allocated device memory with size of at least 4 * sizeof(byte)

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at MaxGetBufferHostSize()

    | Improve this Doc View Source

    MaxA(CudaDeviceVariable<Byte>)

    Image pixel maximum. Buffer is internally allocated and freed. Not affecting alpha.

    Declaration
    public void MaxA(CudaDeviceVariable<byte> max)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Byte> max

    Allocated device memory with size of at least 3 * sizeof(byte)

    | Improve this Doc View Source

    MaxA(CudaDeviceVariable<Byte>, CudaDeviceVariable<Byte>)

    Image pixel maximum. No additional buffer is allocated. Not affecting alpha.

    Declaration
    public void MaxA(CudaDeviceVariable<byte> max, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Byte> max

    Allocated device memory with size of at least 3 * sizeof(byte)

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at MaxGetBufferHostSizeA()

    | Improve this Doc View Source

    MaxError(NPPImage_8uC4, CudaDeviceVariable<Double>)

    image maximum error. User buffer is internally allocated and freed.

    Declaration
    public void MaxError(NPPImage_8uC4 src2, CudaDeviceVariable<double> pError)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    | Improve this Doc View Source

    MaxError(NPPImage_8uC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image maximum error.

    Declaration
    public void MaxError(NPPImage_8uC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    CudaDeviceVariable<System.Byte> buffer

    Pointer to the user-allocated scratch buffer required for the MaxError operation.

    | Improve this Doc View Source

    MaxErrorGetBufferHostSize()

    Device scratch buffer size (in bytes) for MaxError.

    Declaration
    public int MaxErrorGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    MaxEvery(NPPImage_8uC4)

    image MaxEvery

    Declaration
    public void MaxEvery(NPPImage_8uC4 src2)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    Source-Image

    | Improve this Doc View Source

    MaxEveryA(NPPImage_8uC4)

    image MaxEvery Not affecting Alpha.

    Declaration
    public void MaxEveryA(NPPImage_8uC4 src2)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    Source-Image

    | Improve this Doc View Source

    MaxGetBufferHostSize()

    Scratch-buffer size for Max.

    Declaration
    public int MaxGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    MaxGetBufferHostSizeA()

    Scratch-buffer size for Max. Not affecting alpha.

    Declaration
    public int MaxGetBufferHostSizeA()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    MaximumRelativeError(NPPImage_8uC4, CudaDeviceVariable<Double>)

    image maximum relative error. User buffer is internally allocated and freed.

    Declaration
    public void MaximumRelativeError(NPPImage_8uC4 src2, CudaDeviceVariable<double> pError)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    | Improve this Doc View Source

    MaximumRelativeError(NPPImage_8uC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image maximum relative error.

    Declaration
    public void MaximumRelativeError(NPPImage_8uC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    CudaDeviceVariable<System.Byte> buffer

    Pointer to the user-allocated scratch buffer required for the MaximumRelativeError operation.

    | Improve this Doc View Source

    MaximumRelativeErrorGetBufferHostSize()

    Device scratch buffer size (in bytes) for MaximumRelativeError.

    Declaration
    public int MaximumRelativeErrorGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    MaxIndex(CudaDeviceVariable<Byte>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>)

    Image pixel maximum. Buffer is internally allocated and freed.

    Declaration
    public void MaxIndex(CudaDeviceVariable<byte> max, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Byte> max

    Allocated device memory with size of at least 4 * sizeof(byte)

    CudaDeviceVariable<System.Int32> indexX

    Allocated device memory with size of at least 4 * sizeof(int)

    CudaDeviceVariable<System.Int32> indexY

    Allocated device memory with size of at least 4 * sizeof(int)

    | Improve this Doc View Source

    MaxIndex(CudaDeviceVariable<Byte>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Byte>)

    Image pixel minimum. No additional buffer is allocated.

    Declaration
    public void MaxIndex(CudaDeviceVariable<byte> max, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Byte> max

    Allocated device memory with size of at least 4 * sizeof(byte)

    CudaDeviceVariable<System.Int32> indexX

    Allocated device memory with size of at least 4 * sizeof(int)

    CudaDeviceVariable<System.Int32> indexY

    Allocated device memory with size of at least 4 * sizeof(int)

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at MaxIndexGetBufferHostSize()

    | Improve this Doc View Source

    MaxIndexA(CudaDeviceVariable<Byte>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>)

    Image pixel maximum. Buffer is internally allocated and freed. Not affecting alpha.

    Declaration
    public void MaxIndexA(CudaDeviceVariable<byte> max, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Byte> max

    Allocated device memory with size of at least 3 * sizeof(byte)

    CudaDeviceVariable<System.Int32> indexX

    Allocated device memory with size of at least 3 * sizeof(int)

    CudaDeviceVariable<System.Int32> indexY

    Allocated device memory with size of at least 3 * sizeof(int)

    | Improve this Doc View Source

    MaxIndexA(CudaDeviceVariable<Byte>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Byte>)

    Image pixel minimum. No additional buffer is allocated. Not affecting alpha.

    Declaration
    public void MaxIndexA(CudaDeviceVariable<byte> max, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Byte> max

    Allocated device memory with size of at least 3 * sizeof(byte)

    CudaDeviceVariable<System.Int32> indexX

    Allocated device memory with size of at least 3 * sizeof(int)

    CudaDeviceVariable<System.Int32> indexY

    Allocated device memory with size of at least 3 * sizeof(int)

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at MaxIndexGetBufferHostSizeA()

    | Improve this Doc View Source

    MaxIndexGetBufferHostSize()

    Scratch-buffer size for MaxIndex.

    Declaration
    public int MaxIndexGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    MaxIndexGetBufferHostSizeA()

    Scratch-buffer size for MaxIndex. Not affecting alpha.

    Declaration
    public int MaxIndexGetBufferHostSizeA()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Mean(CudaDeviceVariable<Double>)

    image mean with 64-bit double precision result. Buffer is internally allocated and freed.

    Declaration
    public void Mean(CudaDeviceVariable<double> mean)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Double> mean

    Allocated device memory with size of at least 3 * sizeof(double)

    | Improve this Doc View Source

    Mean(CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image mean with 64-bit double precision result. No additional buffer is allocated.

    Declaration
    public void Mean(CudaDeviceVariable<double> mean, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Double> mean

    Allocated device memory with size of at least 3 * sizeof(double)

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at MeanGetBufferHostSize()

    | Improve this Doc View Source

    MeanA(CudaDeviceVariable<Double>)

    image mean with 64-bit double precision result. Buffer is internally allocated and freed. Not affecting alpha.

    Declaration
    public void MeanA(CudaDeviceVariable<double> mean)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Double> mean

    Allocated device memory with size of at least 3 * sizeof(double)

    | Improve this Doc View Source

    MeanA(CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image mean with 64-bit double precision result. No additional buffer is allocated. Not affecting alpha.

    Declaration
    public void MeanA(CudaDeviceVariable<double> mean, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Double> mean

    Allocated device memory with size of at least 3 * sizeof(double)

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at MeanGetBufferHostSizeA()

    | Improve this Doc View Source

    MeanGetBufferHostSize()

    Scratch-buffer size for Mean.

    Declaration
    public int MeanGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    MeanGetBufferHostSizeA()

    Scratch-buffer size for Mean. Not affecting alpha.

    Declaration
    public int MeanGetBufferHostSizeA()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Min(CudaDeviceVariable<Byte>)

    Image pixel minimum. Buffer is internally allocated and freed.

    Declaration
    public void Min(CudaDeviceVariable<byte> min)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Byte> min

    Allocated device memory with size of at least 4 * sizeof(byte)

    | Improve this Doc View Source

    Min(CudaDeviceVariable<Byte>, CudaDeviceVariable<Byte>)

    Image pixel minimum. No additional buffer is allocated.

    Declaration
    public void Min(CudaDeviceVariable<byte> min, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Byte> min

    Allocated device memory with size of at least 4 * sizeof(byte)

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at MinGetBufferHostSize()

    | Improve this Doc View Source

    MinA(CudaDeviceVariable<Byte>)

    Image pixel minimum. Buffer is internally allocated and freed. Not affecting alpha.

    Declaration
    public void MinA(CudaDeviceVariable<byte> min)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Byte> min

    Allocated device memory with size of at least 3 * sizeof(byte)

    | Improve this Doc View Source

    MinA(CudaDeviceVariable<Byte>, CudaDeviceVariable<Byte>)

    Image pixel minimum. No additional buffer is allocated. Not affecting alpha.

    Declaration
    public void MinA(CudaDeviceVariable<byte> min, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Byte> min

    Allocated device memory with size of at least 3 * sizeof(byte)

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at MinGetBufferHostSizeA()

    | Improve this Doc View Source

    MinEvery(NPPImage_8uC4)

    image MinEvery

    Declaration
    public void MinEvery(NPPImage_8uC4 src2)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    Source-Image

    | Improve this Doc View Source

    MinEveryA(NPPImage_8uC4)

    image MinEvery Not affecting Alpha.

    Declaration
    public void MinEveryA(NPPImage_8uC4 src2)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    Source-Image

    | Improve this Doc View Source

    MinGetBufferHostSize()

    Scratch-buffer size for Min.

    Declaration
    public int MinGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    MinGetBufferHostSizeA()

    Scratch-buffer size for Min. Not affecting alpha.

    Declaration
    public int MinGetBufferHostSizeA()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    MinIndex(CudaDeviceVariable<Byte>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>)

    Image pixel minimum. Buffer is internally allocated and freed.

    Declaration
    public void MinIndex(CudaDeviceVariable<byte> min, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Byte> min

    Allocated device memory with size of at least 4 * sizeof(byte)

    CudaDeviceVariable<System.Int32> indexX

    Allocated device memory with size of at least 4 * sizeof(int)

    CudaDeviceVariable<System.Int32> indexY

    Allocated device memory with size of at least 4 * sizeof(int)

    | Improve this Doc View Source

    MinIndex(CudaDeviceVariable<Byte>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Byte>)

    Image pixel minimum. No additional buffer is allocated.

    Declaration
    public void MinIndex(CudaDeviceVariable<byte> min, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Byte> min

    Allocated device memory with size of at least 4 * sizeof(byte)

    CudaDeviceVariable<System.Int32> indexX

    Allocated device memory with size of at least 4 * sizeof(int)

    CudaDeviceVariable<System.Int32> indexY

    Allocated device memory with size of at least 4 * sizeof(int)

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at MinIndexGetBufferHostSize()

    | Improve this Doc View Source

    MinIndexA(CudaDeviceVariable<Byte>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>)

    Image pixel minimum. Buffer is internally allocated and freed. Not affecting alpha.

    Declaration
    public void MinIndexA(CudaDeviceVariable<byte> min, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Byte> min

    Allocated device memory with size of at least 3 * sizeof(byte)

    CudaDeviceVariable<System.Int32> indexX

    Allocated device memory with size of at least 3 * sizeof(int)

    CudaDeviceVariable<System.Int32> indexY

    Allocated device memory with size of at least 3 * sizeof(int)

    | Improve this Doc View Source

    MinIndexA(CudaDeviceVariable<Byte>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Int32>, CudaDeviceVariable<Byte>)

    Image pixel minimum. No additional buffer is allocated. Not affecting alpha.

    Declaration
    public void MinIndexA(CudaDeviceVariable<byte> min, CudaDeviceVariable<int> indexX, CudaDeviceVariable<int> indexY, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Byte> min

    Allocated device memory with size of at least 3 * sizeof(byte)

    CudaDeviceVariable<System.Int32> indexX

    Allocated device memory with size of at least 3 * sizeof(int)

    CudaDeviceVariable<System.Int32> indexY

    Allocated device memory with size of at least 3 * sizeof(int)

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at MinIndexGetBufferHostSizeA()

    | Improve this Doc View Source

    MinIndexGetBufferHostSize()

    Scratch-buffer size for MinIndex.

    Declaration
    public int MinIndexGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    MinIndexGetBufferHostSizeA()

    Scratch-buffer size for MinIndex. Not affecting alpha.

    Declaration
    public int MinIndexGetBufferHostSizeA()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    MinMax(CudaDeviceVariable<Byte>, CudaDeviceVariable<Byte>)

    Image pixel minimum and maximum. Buffer is internally allocated and freed.

    Declaration
    public void MinMax(CudaDeviceVariable<byte> min, CudaDeviceVariable<byte> max)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Byte> min

    Allocated device memory with size of at least 4 * sizeof(byte)

    CudaDeviceVariable<System.Byte> max

    Allocated device memory with size of at least 4 * sizeof(byte)

    | Improve this Doc View Source

    MinMax(CudaDeviceVariable<Byte>, CudaDeviceVariable<Byte>, CudaDeviceVariable<Byte>)

    Image pixel minimum and maximum. No additional buffer is allocated.

    Declaration
    public void MinMax(CudaDeviceVariable<byte> min, CudaDeviceVariable<byte> max, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Byte> min

    Allocated device memory with size of at least 4 * sizeof(byte)

    CudaDeviceVariable<System.Byte> max

    Allocated device memory with size of at least 4 * sizeof(byte)

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at MinMaxGetBufferHostSize()

    | Improve this Doc View Source

    MinMaxGetBufferHostSize()

    Scratch-buffer size for MinMax.

    Declaration
    public int MinMaxGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Mirror(NppiAxis)

    Mirror image inplace.

    Declaration
    public void Mirror(NppiAxis flip)
    Parameters
    Type Name Description
    NppiAxis flip

    Specifies the axis about which the image is to be mirrored.

    | Improve this Doc View Source

    Mirror(NPPImage_8uC4, NppiAxis)

    Mirror image.

    Declaration
    public void Mirror(NPPImage_8uC4 dest, NppiAxis flip)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiAxis flip

    Specifies the axis about which the image is to be mirrored.

    | Improve this Doc View Source

    MirrorA(NppiAxis)

    Mirror image inplace. Not affecting Alpha.

    Declaration
    public void MirrorA(NppiAxis flip)
    Parameters
    Type Name Description
    NppiAxis flip

    Specifies the axis about which the image is to be mirrored.

    | Improve this Doc View Source

    MirrorA(NPPImage_8uC4, NppiAxis)

    Mirror image. Not affecting Alpha.

    Declaration
    public void MirrorA(NPPImage_8uC4 dest, NppiAxis flip)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppiAxis flip

    Specifies the axis about which the image is to be mirrored.

    | Improve this Doc View Source

    MorphBlackHatBorder(NPPImage_8uC4, CudaDeviceVariable<Byte>, NppiSize, NppiPoint, CudaDeviceVariable<Byte>, NppiBorderType)

    4 channel 8-bit unsigned integer morphological black hat with border control.

    Declaration
    public void MorphBlackHatBorder(NPPImage_8uC4 dest, CudaDeviceVariable<byte> pMask, NppiSize oMaskSize, NppiPoint oAnchor, CudaDeviceVariable<byte> pBuffer, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Byte> pMask

    Pointer to the start address of the mask array

    NppiSize oMaskSize

    Width and Height mask array.

    NppiPoint oAnchor

    X and Y offsets of the mask origin frame of reference w.r.t the source pixel.

    CudaDeviceVariable<System.Byte> pBuffer

    Pointer to device memory scratch buffer at least as large as value returned by the corresponding MorphGetBufferSize call.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    MorphCloseBorder(NPPImage_8uC4, CudaDeviceVariable<Byte>, NppiSize, NppiPoint, CudaDeviceVariable<Byte>, NppiBorderType)

    4 channel 8-bit unsigned integer morphological close with border control.

    Declaration
    public void MorphCloseBorder(NPPImage_8uC4 dest, CudaDeviceVariable<byte> pMask, NppiSize oMaskSize, NppiPoint oAnchor, CudaDeviceVariable<byte> pBuffer, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Byte> pMask

    Pointer to the start address of the mask array

    NppiSize oMaskSize

    Width and Height mask array.

    NppiPoint oAnchor

    X and Y offsets of the mask origin frame of reference w.r.t the source pixel.

    CudaDeviceVariable<System.Byte> pBuffer

    Pointer to device memory scratch buffer at least as large as value returned by the corresponding MorphGetBufferSize call.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    MorphGetBufferSize()

    Calculate scratch buffer size needed for 3 channel 8-bit unsigned integer MorphCloseBorder, MorphOpenBorder, MorphTopHatBorder, MorphBlackHatBorder, or MorphGradientBorder function based on destination image oSizeROI width and height.

    Declaration
    public int MorphGetBufferSize()
    Returns
    Type Description
    System.Int32

    Required buffer size in bytes.

    | Improve this Doc View Source

    MorphGradientBorder(NPPImage_8uC4, CudaDeviceVariable<Byte>, NppiSize, NppiPoint, CudaDeviceVariable<Byte>, NppiBorderType)

    4 channel 8-bit unsigned integer morphological gradient with border control.

    Declaration
    public void MorphGradientBorder(NPPImage_8uC4 dest, CudaDeviceVariable<byte> pMask, NppiSize oMaskSize, NppiPoint oAnchor, CudaDeviceVariable<byte> pBuffer, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Byte> pMask

    Pointer to the start address of the mask array

    NppiSize oMaskSize

    Width and Height mask array.

    NppiPoint oAnchor

    X and Y offsets of the mask origin frame of reference w.r.t the source pixel.

    CudaDeviceVariable<System.Byte> pBuffer

    Pointer to device memory scratch buffer at least as large as value returned by the corresponding MorphGetBufferSize call.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    MorphOpenBorder(NPPImage_8uC4, CudaDeviceVariable<Byte>, NppiSize, NppiPoint, CudaDeviceVariable<Byte>, NppiBorderType)

    4 channel 8-bit unsigned integer morphological open with border control.

    Declaration
    public void MorphOpenBorder(NPPImage_8uC4 dest, CudaDeviceVariable<byte> pMask, NppiSize oMaskSize, NppiPoint oAnchor, CudaDeviceVariable<byte> pBuffer, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Byte> pMask

    Pointer to the start address of the mask array

    NppiSize oMaskSize

    Width and Height mask array.

    NppiPoint oAnchor

    X and Y offsets of the mask origin frame of reference w.r.t the source pixel.

    CudaDeviceVariable<System.Byte> pBuffer

    Pointer to device memory scratch buffer at least as large as value returned by the corresponding MorphGetBufferSize call.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    MorphTopHatBorder(NPPImage_8uC4, CudaDeviceVariable<Byte>, NppiSize, NppiPoint, CudaDeviceVariable<Byte>, NppiBorderType)

    4 channel 8-bit unsigned integer morphological top hat with border control.

    Declaration
    public void MorphTopHatBorder(NPPImage_8uC4 dest, CudaDeviceVariable<byte> pMask, NppiSize oMaskSize, NppiPoint oAnchor, CudaDeviceVariable<byte> pBuffer, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    CudaDeviceVariable<System.Byte> pMask

    Pointer to the start address of the mask array

    NppiSize oMaskSize

    Width and Height mask array.

    NppiPoint oAnchor

    X and Y offsets of the mask origin frame of reference w.r.t the source pixel.

    CudaDeviceVariable<System.Byte> pBuffer

    Pointer to device memory scratch buffer at least as large as value returned by the corresponding MorphGetBufferSize call.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    Mul(NPPImage_8uC4)

    In place image multiplication and scale by max bit width value

    Declaration
    public void Mul(NPPImage_8uC4 src2)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    | Improve this Doc View Source

    Mul(NPPImage_8uC4, NPPImage_8uC4)

    Image multiplication and scale by max bit width value.

    Declaration
    public void Mul(NPPImage_8uC4 src2, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    Mul(NPPImage_8uC4, NPPImage_8uC4, Int32)

    Image multiplication, scale by 2^(-nScaleFactor), then clamp to saturated value.

    Declaration
    public void Mul(NPPImage_8uC4 src2, NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    Mul(NPPImage_8uC4, Int32)

    In place image multiplication, scale by 2^(-nScaleFactor), then clamp to saturated value.

    Declaration
    public void Mul(NPPImage_8uC4 src2, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    Mul(Byte[])

    Multiply constant to image and scale by max bit width value

    Declaration
    public void Mul(byte[] nConstant)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value

    | Improve this Doc View Source

    Mul(Byte[], NPPImage_8uC4)

    Multiply constant to image and scale by max bit width value

    Declaration
    public void Mul(byte[] nConstant, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    Mul(Byte[], NPPImage_8uC4, Int32)

    Multiply constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.

    Declaration
    public void Mul(byte[] nConstant, NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value

    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    Mul(Byte[], Int32)

    Multiply constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.

    Declaration
    public void Mul(byte[] nConstant, int nScaleFactor)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    MulA(NPPImage_8uC4)

    In place image multiplication and scale by max bit width value. Unchanged Alpha.

    Declaration
    public void MulA(NPPImage_8uC4 src2)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    | Improve this Doc View Source

    MulA(NPPImage_8uC4, NPPImage_8uC4)

    Image multiplication and scale by max bit width value. Unchanged Alpha.

    Declaration
    public void MulA(NPPImage_8uC4 src2, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    MulA(NPPImage_8uC4, NPPImage_8uC4, Int32)

    Image multiplication, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.

    Declaration
    public void MulA(NPPImage_8uC4 src2, NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    MulA(NPPImage_8uC4, Int32)

    In place image multiplication, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.

    Declaration
    public void MulA(NPPImage_8uC4 src2, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    MulA(Byte[])

    Multiply constant to image and scale by max bit width value. Unchanged Alpha.

    Declaration
    public void MulA(byte[] nConstant)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value

    | Improve this Doc View Source

    MulA(Byte[], NPPImage_8uC4)

    Multiply constant to image and scale by max bit width value. Unchanged Alpha.

    Declaration
    public void MulA(byte[] nConstant, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    MulA(Byte[], NPPImage_8uC4, Int32)

    Multiply constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.

    Declaration
    public void MulA(byte[] nConstant, NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value

    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    MulA(Byte[], Int32)

    Multiply constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace. Unchanged Alpha.

    Declaration
    public void MulA(byte[] nConstant, int nScaleFactor)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    NormDiff_Inf(NPPImage_8uC4, CudaDeviceVariable<Double>)

    image NormDiff_Inf. Buffer is internally allocated and freed.

    Declaration
    public void NormDiff_Inf(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormDiff)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormDiff

    Pointer to the computed Inf-norm of differences. (3 * sizeof(double))

    | Improve this Doc View Source

    NormDiff_Inf(NPPImage_8uC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image NormDiff_Inf.

    Declaration
    public void NormDiff_Inf(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormDiff, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormDiff

    Pointer to the computed Inf-norm of differences. (3 * sizeof(double))

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at NormDiffInfGetBufferHostSize()

    | Improve this Doc View Source

    NormDiff_InfA(NPPImage_8uC4, CudaDeviceVariable<Double>)

    image NormDiff_Inf. Buffer is internally allocated and freed. Not affecting Alpha.

    Declaration
    public void NormDiff_InfA(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormDiff)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormDiff

    Pointer to the computed Inf-norm of differences. (3 * sizeof(double))

    | Improve this Doc View Source

    NormDiff_InfA(NPPImage_8uC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image NormDiff_Inf. Not affecting Alpha.

    Declaration
    public void NormDiff_InfA(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormDiff, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormDiff

    Pointer to the computed Inf-norm of differences. (3 * sizeof(double))

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at NormDiffInfAGetBufferHostSize()

    | Improve this Doc View Source

    NormDiff_L1(NPPImage_8uC4, CudaDeviceVariable<Double>)

    image NormDiff_L1. Buffer is internally allocated and freed.

    Declaration
    public void NormDiff_L1(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormDiff)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormDiff

    Pointer to the computed L1-norm of differences. (3 * sizeof(double))

    | Improve this Doc View Source

    NormDiff_L1(NPPImage_8uC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image NormDiff_L1.

    Declaration
    public void NormDiff_L1(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormDiff, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormDiff

    Pointer to the computed L1-norm of differences. (3 * sizeof(double))

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at NormDiffL1GetBufferHostSize()

    | Improve this Doc View Source

    NormDiff_L1A(NPPImage_8uC4, CudaDeviceVariable<Double>)

    image NormDiff_L1. Buffer is internally allocated and freed. Not affecting Alpha.

    Declaration
    public void NormDiff_L1A(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormDiff)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormDiff

    Pointer to the computed L1-norm of differences. (3 * sizeof(double))

    | Improve this Doc View Source

    NormDiff_L1A(NPPImage_8uC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image NormDiff_L1. Not affecting Alpha.

    Declaration
    public void NormDiff_L1A(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormDiff, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormDiff

    Pointer to the computed L1-norm of differences. (3 * sizeof(double))

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at NormDiffL1AGetBufferHostSize()

    | Improve this Doc View Source

    NormDiff_L2(NPPImage_8uC4, CudaDeviceVariable<Double>)

    image NormDiff_L2. Buffer is internally allocated and freed.

    Declaration
    public void NormDiff_L2(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormDiff)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormDiff

    Pointer to the computed L2-norm of differences. (3 * sizeof(double))

    | Improve this Doc View Source

    NormDiff_L2(NPPImage_8uC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image NormDiff_L2.

    Declaration
    public void NormDiff_L2(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormDiff, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormDiff

    Pointer to the computed L2-norm of differences. (3 * sizeof(double))

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at NormDiffL2GetBufferHostSize()

    | Improve this Doc View Source

    NormDiff_L2A(NPPImage_8uC4, CudaDeviceVariable<Double>)

    image NormDiff_L2. Buffer is internally allocated and freed. Not affecting Alpha.

    Declaration
    public void NormDiff_L2A(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormDiff)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormDiff

    Pointer to the computed L2-norm of differences. (3 * sizeof(double))

    | Improve this Doc View Source

    NormDiff_L2A(NPPImage_8uC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image NormDiff_L2. Not affecting Alpha.

    Declaration
    public void NormDiff_L2A(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormDiff, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormDiff

    Pointer to the computed L2-norm of differences. (3 * sizeof(double))

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at NormDiffL2AGetBufferHostSize()

    | Improve this Doc View Source

    NormDiffInfAGetBufferHostSize()

    Device scratch buffer size (in bytes) for NormDiff_Inf. Not affecting Alpha.

    Declaration
    public int NormDiffInfAGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    NormDiffInfGetBufferHostSize()

    Device scratch buffer size (in bytes) for NormDiff_Inf.

    Declaration
    public int NormDiffInfGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    NormDiffL1AGetBufferHostSize()

    Device scratch buffer size (in bytes) for NormDiff_L1. Not affecting Alpha.

    Declaration
    public int NormDiffL1AGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    NormDiffL1GetBufferHostSize()

    Device scratch buffer size (in bytes) for NormDiff_L1.

    Declaration
    public int NormDiffL1GetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    NormDiffL2AGetBufferHostSize()

    Device scratch buffer size (in bytes) for NormDiff_L2. Not affecting Alpha.

    Declaration
    public int NormDiffL2AGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    NormDiffL2GetBufferHostSize()

    Device scratch buffer size (in bytes) for NormDiff_L2.

    Declaration
    public int NormDiffL2GetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    NormInf(CudaDeviceVariable<Double>)

    image infinity norm. Buffer is internally allocated and freed.

    Declaration
    public void NormInf(CudaDeviceVariable<double> norm)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Double> norm

    Allocated device memory with size of at least 3 * sizeof(double)

    | Improve this Doc View Source

    NormInf(CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image infinity norm. No additional buffer is allocated.

    Declaration
    public void NormInf(CudaDeviceVariable<double> norm, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Double> norm

    Allocated device memory with size of at least 3 * sizeof(double)

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at NormInfGetBufferHostSize()

    | Improve this Doc View Source

    NormInfGetBufferHostSize()

    Scratch-buffer size for Norm inf.

    Declaration
    public int NormInfGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    NormL1(CudaDeviceVariable<Double>)

    image L1 norm. Buffer is internally allocated and freed.

    Declaration
    public void NormL1(CudaDeviceVariable<double> norm)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Double> norm

    Allocated device memory with size of at least 3 * sizeof(double)

    | Improve this Doc View Source

    NormL1(CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image L1 norm. No additional buffer is allocated.

    Declaration
    public void NormL1(CudaDeviceVariable<double> norm, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Double> norm

    Allocated device memory with size of at least 3 * sizeof(double)

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at NormL1GetBufferHostSize()

    | Improve this Doc View Source

    NormL1GetBufferHostSize()

    Scratch-buffer size for Norm L1.

    Declaration
    public int NormL1GetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    NormL2(CudaDeviceVariable<Double>)

    image L2 norm. Buffer is internally allocated and freed.

    Declaration
    public void NormL2(CudaDeviceVariable<double> norm)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Double> norm

    Allocated device memory with size of at least 3 * sizeof(double)

    | Improve this Doc View Source

    NormL2(CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image L2 norm. No additional buffer is allocated.

    Declaration
    public void NormL2(CudaDeviceVariable<double> norm, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Double> norm

    Allocated device memory with size of at least 3 * sizeof(double)

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at NormL2GetBufferHostSize()

    | Improve this Doc View Source

    NormL2GetBufferHostSize()

    Scratch-buffer size for Norm L2.

    Declaration
    public int NormL2GetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    NormRel_Inf(NPPImage_8uC4, CudaDeviceVariable<Double>)

    image NormRel_Inf. Buffer is internally allocated and freed.

    Declaration
    public void NormRel_Inf(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormRel)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormRel

    Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double))

    | Improve this Doc View Source

    NormRel_Inf(NPPImage_8uC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image NormRel_Inf.

    Declaration
    public void NormRel_Inf(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormRel, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormRel

    Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double))

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at NormRelInfGetBufferHostSize()

    | Improve this Doc View Source

    NormRel_InfA(NPPImage_8uC4, CudaDeviceVariable<Double>)

    image NormRel_Inf. Buffer is internally allocated and freed. Not affecting Alpha.

    Declaration
    public void NormRel_InfA(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormRel)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormRel

    Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double))

    | Improve this Doc View Source

    NormRel_InfA(NPPImage_8uC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image NormRel_Inf. Not affecting Alpha.

    Declaration
    public void NormRel_InfA(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormRel, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormRel

    Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double))

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at NormRelInfAGetBufferHostSize()

    | Improve this Doc View Source

    NormRel_L1(NPPImage_8uC4, CudaDeviceVariable<Double>)

    image NormRel_L1. Buffer is internally allocated and freed.

    Declaration
    public void NormRel_L1(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormRel)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormRel

    Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double))

    | Improve this Doc View Source

    NormRel_L1(NPPImage_8uC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image NormRel_L1.

    Declaration
    public void NormRel_L1(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormRel, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormRel

    Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double))

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at NormRelL1GetBufferHostSize()

    | Improve this Doc View Source

    NormRel_L1A(NPPImage_8uC4, CudaDeviceVariable<Double>)

    image NormRel_L1. Buffer is internally allocated and freed. Not affecting Alpha.

    Declaration
    public void NormRel_L1A(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormRel)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormRel

    Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double))

    | Improve this Doc View Source

    NormRel_L1A(NPPImage_8uC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image NormRel_L1. Not affecting Alpha.

    Declaration
    public void NormRel_L1A(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormRel, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormRel

    Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double))

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at NormRelL1AGetBufferHostSize()

    | Improve this Doc View Source

    NormRel_L2(NPPImage_8uC4, CudaDeviceVariable<Double>)

    image NormRel_L2. Buffer is internally allocated and freed.

    Declaration
    public void NormRel_L2(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormRel)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormRel

    Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double))

    | Improve this Doc View Source

    NormRel_L2(NPPImage_8uC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image NormRel_L2.

    Declaration
    public void NormRel_L2(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormRel, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormRel

    Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double))

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at NormRelL2GetBufferHostSize()

    | Improve this Doc View Source

    NormRel_L2A(NPPImage_8uC4, CudaDeviceVariable<Double>)

    image NormRel_L2. Buffer is internally allocated and freed. Not affecting Alpha.

    Declaration
    public void NormRel_L2A(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormRel)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormRel

    Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double))

    | Improve this Doc View Source

    NormRel_L2A(NPPImage_8uC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image NormRel_L2. Not affecting Alpha.

    Declaration
    public void NormRel_L2A(NPPImage_8uC4 tpl, CudaDeviceVariable<double> pNormRel, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    CudaDeviceVariable<System.Double> pNormRel

    Pointer to the computed relative error for the infinity norm of two images. (3 * sizeof(double))

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at NormRelL2AGetBufferHostSize()

    | Improve this Doc View Source

    NormRelInfAGetBufferHostSize()

    Device scratch buffer size (in bytes) for NormRel_Inf. Not affecting Alpha.

    Declaration
    public int NormRelInfAGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    NormRelInfGetBufferHostSize()

    Device scratch buffer size (in bytes) for NormRel_Inf.

    Declaration
    public int NormRelInfGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    NormRelL1AGetBufferHostSize()

    Device scratch buffer size (in bytes) for NormRel_L1. Not affecting Alpha.

    Declaration
    public int NormRelL1AGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    NormRelL1GetBufferHostSize()

    Device scratch buffer size (in bytes) for NormRel_L1.

    Declaration
    public int NormRelL1GetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    NormRelL2AGetBufferHostSize()

    Device scratch buffer size (in bytes) for NormRel_L2. Not affecting Alpha.

    Declaration
    public int NormRelL2AGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    NormRelL2GetBufferHostSize()

    Device scratch buffer size (in bytes) for NormRel_L2.

    Declaration
    public int NormRelL2GetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Not()

    In place image logical Not.

    Declaration
    public void Not()
    | Improve this Doc View Source

    Not(NPPImage_8uC4)

    Image logical Not.

    Declaration
    public void Not(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    NotA()

    In place image logical Not. Unchanged Alpha.

    Declaration
    public void NotA()
    | Improve this Doc View Source

    NotA(NPPImage_8uC4)

    Image logical Not. Unchanged Alpha.

    Declaration
    public void NotA(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    Or(NPPImage_8uC4)

    In place image logical Or.

    Declaration
    public void Or(NPPImage_8uC4 src2)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    | Improve this Doc View Source

    Or(NPPImage_8uC4, NPPImage_8uC4)

    Image logical Or.

    Declaration
    public void Or(NPPImage_8uC4 src2, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    Or(Byte[])

    In place image logical Or with constant.

    Declaration
    public void Or(byte[] nConstant)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value (Array length = 4)

    | Improve this Doc View Source

    Or(Byte[], NPPImage_8uC4)

    Image logical Or with constant.

    Declaration
    public void Or(byte[] nConstant, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value (Array length = 4)

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    OrA(NPPImage_8uC4)

    In place image logical Or. Unchanged Alpha.

    Declaration
    public void OrA(NPPImage_8uC4 src2)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    | Improve this Doc View Source

    OrA(NPPImage_8uC4, NPPImage_8uC4)

    Image logical Or. Unchanged Alpha.

    Declaration
    public void OrA(NPPImage_8uC4 src2, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    OrA(Byte[])

    In place image logical Or with constant. Unchanged Alpha.

    Declaration
    public void OrA(byte[] nConstant)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value (Array length = 4)

    | Improve this Doc View Source

    OrA(Byte[], NPPImage_8uC4)

    Image logical Or with constant. Unchanged Alpha.

    Declaration
    public void OrA(byte[] nConstant, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value (Array length = 4)

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    QualityIndexA(NPPImage_8uC4, CudaDeviceVariable<Single>)

    image QualityIndex. Not affecting Alpha.

    Declaration
    public void QualityIndexA(NPPImage_8uC4 src2, CudaDeviceVariable<float> dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    CudaDeviceVariable<System.Single> dst

    Pointer to the quality index. (3 * sizeof(float))

    | Improve this Doc View Source

    QualityIndexA(NPPImage_8uC4, CudaDeviceVariable<Single>, CudaDeviceVariable<Byte>)

    image QualityIndex. Not affecting Alpha.

    Declaration
    public void QualityIndexA(NPPImage_8uC4 src2, CudaDeviceVariable<float> dst, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    CudaDeviceVariable<System.Single> dst

    Pointer to the quality index. (3 * sizeof(float))

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at QualityIndexAGetBufferHostSize()

    | Improve this Doc View Source

    QualityIndexAGetBufferHostSize()

    Device scratch buffer size (in bytes) for QualityIndex.

    Declaration
    public int QualityIndexAGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Remap(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_32fC1, NPPImage_32fC1, InterpolationMode)

    planar image remap.

    Declaration
    public static void Remap(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC1 src3, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2, NPPImage_8uC1 dest3, NPPImage_32fC1 pXMap, NPPImage_32fC1 pYMap, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC1 src0

    Source image (Channel 0)

    NPPImage_8uC1 src1

    Source image (Channel 1)

    NPPImage_8uC1 src2

    Source image (Channel 2)

    NPPImage_8uC1 src3

    Source image (Channel 3)

    NPPImage_8uC1 dest0

    Destination image (Channel 0)

    NPPImage_8uC1 dest1

    Destination image (Channel 1)

    NPPImage_8uC1 dest2

    Destination image (Channel 2)

    NPPImage_8uC1 dest3

    Destination image (Channel 3)

    NPPImage_32fC1 pXMap

    Device memory pointer to 2D image array of X coordinate values to be used when sampling source image.

    NPPImage_32fC1 pYMap

    Device memory pointer to 2D image array of Y coordinate values to be used when sampling source image.

    InterpolationMode eInterpolation

    The type of eInterpolation to perform resampling.

    | Improve this Doc View Source

    Remap(NPPImage_8uC4, NPPImage_32fC1, NPPImage_32fC1, InterpolationMode)

    image remap.

    Declaration
    public void Remap(NPPImage_8uC4 dst, NPPImage_32fC1 pXMap, NPPImage_32fC1 pYMap, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    NPPImage_32fC1 pXMap

    Device memory pointer to 2D image array of X coordinate values to be used when sampling source image.

    NPPImage_32fC1 pYMap

    Device memory pointer to 2D image array of Y coordinate values to be used when sampling source image.

    InterpolationMode eInterpolation

    The type of eInterpolation to perform resampling.

    | Improve this Doc View Source

    RemapA(NPPImage_8uC4, NPPImage_32fC1, NPPImage_32fC1, InterpolationMode)

    image remap. Not affecting Alpha.

    Declaration
    public void RemapA(NPPImage_8uC4 dst, NPPImage_32fC1 pXMap, NPPImage_32fC1 pYMap, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    NPPImage_32fC1 pXMap

    Device memory pointer to 2D image array of X coordinate values to be used when sampling source image.

    NPPImage_32fC1 pYMap

    Device memory pointer to 2D image array of Y coordinate values to be used when sampling source image.

    InterpolationMode eInterpolation

    The type of eInterpolation to perform resampling.

    | Improve this Doc View Source

    Resize(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, InterpolationMode)

    resizes planar images.

    Declaration
    public static void Resize(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC1 src3, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2, NPPImage_8uC1 dest3, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC1 src0

    Source image (Channel 0)

    NPPImage_8uC1 src1

    Source image (Channel 1)

    NPPImage_8uC1 src2

    Source image (Channel 2)

    NPPImage_8uC1 src3

    Source image (Channel 3)

    NPPImage_8uC1 dest0

    Destination image (Channel 0)

    NPPImage_8uC1 dest1

    Destination image (Channel 1)

    NPPImage_8uC1 dest2

    Destination image (Channel 2)

    NPPImage_8uC1 dest3

    Destination image (Channel 3)

    InterpolationMode eInterpolation

    Interpolation mode

    | Improve this Doc View Source

    Resize(NPPImage_8uC4, InterpolationMode)

    Resizes images.

    Declaration
    public void Resize(NPPImage_8uC4 dest, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    InterpolationMode eInterpolation

    Interpolation mode

    | Improve this Doc View Source

    ResizeA(NPPImage_8uC4, InterpolationMode)

    Resizes images. Not affecting Alpha.

    Declaration
    public void ResizeA(NPPImage_8uC4 dest, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    InterpolationMode eInterpolation

    Interpolation mode

    | Improve this Doc View Source

    ResizeSqrPixel(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, Double, Double, Double, Double, InterpolationMode)

    planar image resize.

    Declaration
    public static void ResizeSqrPixel(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC1 src3, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2, NPPImage_8uC1 dest3, double nXFactor, double nYFactor, double nXShift, double nYShift, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC1 src0

    Source image (Channel 0)

    NPPImage_8uC1 src1

    Source image (Channel 1)

    NPPImage_8uC1 src2

    Source image (Channel 2)

    NPPImage_8uC1 src3

    Source image (Channel 3)

    NPPImage_8uC1 dest0

    Destination image (Channel 0)

    NPPImage_8uC1 dest1

    Destination image (Channel 1)

    NPPImage_8uC1 dest2

    Destination image (Channel 2)

    NPPImage_8uC1 dest3

    Destination image (Channel 3)

    System.Double nXFactor

    Factor by which x dimension is changed.

    System.Double nYFactor

    Factor by which y dimension is changed.

    System.Double nXShift

    Source pixel shift in x-direction.

    System.Double nYShift

    Source pixel shift in y-direction.

    InterpolationMode eInterpolation

    The type of eInterpolation to perform resampling.

    | Improve this Doc View Source

    ResizeSqrPixel(NPPImage_8uC4, Double, Double, Double, Double, InterpolationMode)

    image resize.

    Declaration
    public void ResizeSqrPixel(NPPImage_8uC4 dst, double nXFactor, double nYFactor, double nXShift, double nYShift, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    System.Double nXFactor

    Factor by which x dimension is changed.

    System.Double nYFactor

    Factor by which y dimension is changed.

    System.Double nXShift

    Source pixel shift in x-direction.

    System.Double nYShift

    Source pixel shift in y-direction.

    InterpolationMode eInterpolation

    The type of eInterpolation to perform resampling.

    | Improve this Doc View Source

    ResizeSqrPixelA(NPPImage_8uC4, Double, Double, Double, Double, InterpolationMode)

    image resize. Not affecting Alpha.

    Declaration
    public void ResizeSqrPixelA(NPPImage_8uC4 dst, double nXFactor, double nYFactor, double nXShift, double nYShift, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    System.Double nXFactor

    Factor by which x dimension is changed.

    System.Double nYFactor

    Factor by which y dimension is changed.

    System.Double nXShift

    Source pixel shift in x-direction.

    System.Double nYShift

    Source pixel shift in y-direction.

    InterpolationMode eInterpolation

    The type of eInterpolation to perform resampling.

    | Improve this Doc View Source

    RGBToGrayA(NPPImage_8uC1)

    RGB to Gray conversion, not affecting Alpha.

    Declaration
    public void RGBToGrayA(NPPImage_8uC1 dest)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest

    Destination image

    | Improve this Doc View Source

    RGBToHLS(NPPImage_8uC4)

    4 channel 8-bit unsigned packed RGB with alpha to 4 channel 8-bit unsigned packed HLS with alpha color conversion.

    Declaration
    public void RGBToHLS(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    RGBToHSV(NPPImage_8uC4)

    4 channel 8-bit unsigned packed RGB with alpha to 4 channel 8-bit unsigned packed HSV with alpha color conversion.

    Declaration
    public void RGBToHSV(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    RGBToLUV(NPPImage_8uC4)

    4 channel 8-bit unsigned packed RGB with alpha to 4 channel 8-bit unsigned packed LUV with alpha color conversion.

    Declaration
    public void RGBToLUV(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    RGBToXYZ(NPPImage_8uC4)

    4 channel 8-bit unsigned packed RGB with alpha to 4 channel 8-bit unsigned packed XYZ with alpha color conversion.

    Declaration
    public void RGBToXYZ(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    RGBToYCbCr(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    4 channel 8-bit unsigned packed RGB with alpha to 3 channel 8-bit unsigned planar YCbCr color conversion.

    Declaration
    public void RGBToYCbCr(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest0

    Destination image channel 0

    NPPImage_8uC1 dest1

    Destination image channel 1

    NPPImage_8uC1 dest2

    Destination image channel 2

    | Improve this Doc View Source

    RGBToYCbCr(NPPImage_8uC4)

    4 channel 8-bit unsigned packed RGB to packed YCbCr color conversion. Alpha channel is the last channel and is not processed.

    Declaration
    public void RGBToYCbCr(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    RGBToYCbCr411(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    4 channel 8-bit unsigned packed RGB with alpha to 3 channel 8-bit unsigned planar YCbCr411 color conversion.

    Declaration
    public void RGBToYCbCr411(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest0

    Destination image channel 0

    NPPImage_8uC1 dest1

    Destination image channel 1

    NPPImage_8uC1 dest2

    Destination image channel 2

    | Improve this Doc View Source

    RGBToYCrCb420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    4 channel 8-bit unsigned packed RGB with alpha to 3 channel 8-bit unsigned planar YCrCb420 color conversion.

    Declaration
    public void RGBToYCrCb420(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest0

    Destination image channel 0

    NPPImage_8uC1 dest1

    Destination image channel 1

    NPPImage_8uC1 dest2

    Destination image channel 2

    | Improve this Doc View Source

    RGBToYUV(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    4 channel 8-bit unsigned packed RGB with alpha to 4 channel 8-bit unsigned planar YUV color conversion with alpha.

    Declaration
    public void RGBToYUV(NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2, NPPImage_8uC1 dest3)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest0

    Destination image channel 0

    NPPImage_8uC1 dest1

    Destination image channel 1

    NPPImage_8uC1 dest2

    Destination image channel 2

    NPPImage_8uC1 dest3

    Destination image channel 3

    | Improve this Doc View Source

    RGBToYUV(NPPImage_8uC4)

    4 channel 8-bit unsigned packed RGB with alpha to 4 channel 8-bit unsigned packed YUV color conversion with alpha, not affecting alpha.

    Declaration
    public void RGBToYUV(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    Rotate(NPPImage_8uC4, Double, Double, Double, InterpolationMode)

    Rotate images.

    Declaration
    public void Rotate(NPPImage_8uC4 dest, double nAngle, double nShiftX, double nShiftY, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Double nAngle

    The angle of rotation in degrees.

    System.Double nShiftX

    Shift along horizontal axis

    System.Double nShiftY

    Shift along vertical axis

    InterpolationMode eInterpolation

    Interpolation mode

    | Improve this Doc View Source

    RotateA(NPPImage_8uC4, Double, Double, Double, InterpolationMode)

    Rotate images. Not affecting Alpha.

    Declaration
    public void RotateA(NPPImage_8uC4 dest, double nAngle, double nShiftX, double nShiftY, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Double nAngle

    The angle of rotation in degrees.

    System.Double nShiftX

    Shift along horizontal axis

    System.Double nShiftY

    Shift along vertical axis

    InterpolationMode eInterpolation

    Interpolation mode

    | Improve this Doc View Source

    RShiftC(UInt32[])

    image bit shift by constant (right), inplace.

    Declaration
    public void RShiftC(uint[] nConstant)
    Parameters
    Type Name Description
    System.UInt32[] nConstant

    Constant (Array length = 4)

    | Improve this Doc View Source

    RShiftC(UInt32[], NPPImage_8uC4)

    image bit shift by constant (right).

    Declaration
    public void RShiftC(uint[] nConstant, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    System.UInt32[] nConstant

    Constant (Array length = 4)

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    RShiftCA(UInt32[])

    image bit shift by constant (right), inplace. Unchanged Alpha.

    Declaration
    public void RShiftCA(uint[] nConstant)
    Parameters
    Type Name Description
    System.UInt32[] nConstant

    Constant (Array length = 4)

    | Improve this Doc View Source

    RShiftCA(UInt32[], NPPImage_8uC4)

    image bit shift by constant (right). Unchanged Alpha.

    Declaration
    public void RShiftCA(uint[] nConstant, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    System.UInt32[] nConstant

    Constant (Array length = 4)

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    SameNormLevelAGetBufferHostSize()

    Device scratch buffer size (in bytes) for CrossCorrSame_NormLevel. Not affecting Alpha.

    Declaration
    public int SameNormLevelAGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    SameNormLevelGetBufferHostSize()

    Device scratch buffer size (in bytes) for CrossCorrSame_NormLevel.

    Declaration
    public int SameNormLevelGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    SameNormLevelScaledAGetBufferHostSize()

    Device scratch buffer size (in bytes) for CrossCorrSame_NormLevel. Not affecting Alpha.

    Declaration
    public int SameNormLevelScaledAGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    SameNormLevelScaledGetBufferHostSize()

    Device scratch buffer size (in bytes) for CrossCorrSame_NormLevel.

    Declaration
    public int SameNormLevelScaledGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Scale(NPPImage_16sC4)

    image conversion.

    Declaration
    public void Scale(NPPImage_16sC4 dst)
    Parameters
    Type Name Description
    NPPImage_16sC4 dst

    Destination-Image

    | Improve this Doc View Source

    Scale(NPPImage_16uC4)

    image conversion.

    Declaration
    public void Scale(NPPImage_16uC4 dst)
    Parameters
    Type Name Description
    NPPImage_16uC4 dst

    Destination-Image

    | Improve this Doc View Source

    Scale(NPPImage_32fC4, Single, Single)

    image conversion.

    Declaration
    public void Scale(NPPImage_32fC4 dst, float nMin, float nMax)
    Parameters
    Type Name Description
    NPPImage_32fC4 dst

    Destination-Image

    System.Single nMin

    specifies the minimum saturation value to which every output value will be clamped.

    System.Single nMax

    specifies the maximum saturation value to which every output value will be clamped.

    | Improve this Doc View Source

    Scale(NPPImage_32sC4)

    image conversion.

    Declaration
    public void Scale(NPPImage_32sC4 dst)
    Parameters
    Type Name Description
    NPPImage_32sC4 dst

    Destination-Image

    | Improve this Doc View Source

    ScaleA(NPPImage_16sC4)

    image conversion. Not affecting Alpha.

    Declaration
    public void ScaleA(NPPImage_16sC4 dst)
    Parameters
    Type Name Description
    NPPImage_16sC4 dst

    Destination-Image

    | Improve this Doc View Source

    ScaleA(NPPImage_16uC4)

    image conversion. Not affecting Alpha.

    Declaration
    public void ScaleA(NPPImage_16uC4 dst)
    Parameters
    Type Name Description
    NPPImage_16uC4 dst

    Destination-Image

    | Improve this Doc View Source

    ScaleA(NPPImage_32fC4, Single, Single)

    image conversion. Not affecting Alpha.

    Declaration
    public void ScaleA(NPPImage_32fC4 dst, float nMin, float nMax)
    Parameters
    Type Name Description
    NPPImage_32fC4 dst

    Destination-Image

    System.Single nMin

    specifies the minimum saturation value to which every output value will be clamped.

    System.Single nMax

    specifies the maximum saturation value to which every output value will be clamped.

    | Improve this Doc View Source

    ScaleA(NPPImage_32sC4)

    image conversion. Not affecting Alpha.

    Declaration
    public void ScaleA(NPPImage_32sC4 dst)
    Parameters
    Type Name Description
    NPPImage_32sC4 dst

    Destination-Image

    | Improve this Doc View Source

    Set(Byte, Int32)

    Set pixel values to nValue.

    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 void Set(byte nValue, int channel)
    Parameters
    Type Name Description
    System.Byte nValue

    Value to be set

    System.Int32 channel

    Channel number. This number is added to the dst pointer

    | Improve this Doc View Source

    Set(Byte[])

    Set pixel values to nValue.

    Declaration
    public void Set(byte[] nValue)
    Parameters
    Type Name Description
    System.Byte[] nValue

    Value to be set (Array size = 4)

    | Improve this Doc View Source

    Set(Byte[], NPPImage_8uC1)

    Set pixel values to nValue.

    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 void Set(byte[] nValue, NPPImage_8uC1 mask)
    Parameters
    Type Name Description
    System.Byte[] nValue

    Value to be set (Array size = 4)

    NPPImage_8uC1 mask

    Mask image

    | Improve this Doc View Source

    SetA(Byte[])

    Set pixel values to nValue.

    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. Not affecting alpha channel.

    Declaration
    public void SetA(byte[] nValue)
    Parameters
    Type Name Description
    System.Byte[] nValue

    Value to be set (Array size = 3)

    | Improve this Doc View Source

    SetA(Byte[], NPPImage_8uC1)

    Set pixel values to nValue.

    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. Not affecting alpha channel.

    Declaration
    public void SetA(byte[] nValue, NPPImage_8uC1 mask)
    Parameters
    Type Name Description
    System.Byte[] nValue

    Value to be set (Array size = 3)

    NPPImage_8uC1 mask

    Mask image

    | Improve this Doc View Source

    SobelHoriz(NPPImage_8uC4)

    horizontal Sobel filter.

    Declaration
    public void SobelHoriz(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    | Improve this Doc View Source

    SobelHorizA(NPPImage_8uC4)

    horizontal Sobel filter. Not affecting Alpha.

    Declaration
    public void SobelHorizA(NPPImage_8uC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 dst

    Destination-Image

    | Improve this Doc View Source

    Sqr(NPPImage_8uC4, Int32)

    Image squared, scale by 2^(-nScaleFactor), then clamp to saturated value.

    Declaration
    public void Sqr(NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    Sqr(Int32)

    Inplace image squared, scale by 2^(-nScaleFactor), then clamp to saturated value.

    Declaration
    public void Sqr(int nScaleFactor)
    Parameters
    Type Name Description
    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    SqrA(NPPImage_8uC4, Int32)

    Image squared, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.

    Declaration
    public void SqrA(NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    SqrA(Int32)

    Inplace image squared, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.

    Declaration
    public void SqrA(int nScaleFactor)
    Parameters
    Type Name Description
    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    SqrDistanceFull_Norm(NPPImage_8uC4, NPPImage_32fC4)

    image SqrDistanceFull_Norm.

    Declaration
    public void SqrDistanceFull_Norm(NPPImage_8uC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    SqrDistanceFull_Norm(NPPImage_8uC4, NPPImage_8uC4, Int32)

    image SqrDistanceFull_Norm.

    Declaration
    public void SqrDistanceFull_Norm(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination-Image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    | Improve this Doc View Source

    SqrDistanceFull_NormA(NPPImage_8uC4, NPPImage_32fC4)

    image SqrDistanceFull_Norm. Not affecting Alpha.

    Declaration
    public void SqrDistanceFull_NormA(NPPImage_8uC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    SqrDistanceFull_NormA(NPPImage_8uC4, NPPImage_8uC4, Int32)

    image SqrDistanceFull_Norm. Not affecting Alpha.

    Declaration
    public void SqrDistanceFull_NormA(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination-Image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    | Improve this Doc View Source

    SqrDistanceSame_Norm(NPPImage_8uC4, NPPImage_32fC4)

    image SqrDistanceSame_Norm.

    Declaration
    public void SqrDistanceSame_Norm(NPPImage_8uC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    SqrDistanceSame_Norm(NPPImage_8uC4, NPPImage_8uC4, Int32)

    image SqrDistanceSame_Norm.

    Declaration
    public void SqrDistanceSame_Norm(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination-Image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    | Improve this Doc View Source

    SqrDistanceSame_NormA(NPPImage_8uC4, NPPImage_32fC4)

    image SqrDistanceSame_Norm. Not affecting Alpha.

    Declaration
    public void SqrDistanceSame_NormA(NPPImage_8uC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    SqrDistanceSame_NormA(NPPImage_8uC4, NPPImage_8uC4, Int32)

    image SqrDistanceSame_Norm. Not affecting Alpha.

    Declaration
    public void SqrDistanceSame_NormA(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination-Image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    | Improve this Doc View Source

    SqrDistanceValid_Norm(NPPImage_8uC4, NPPImage_32fC4)

    image SqrDistanceValid_Norm.

    Declaration
    public void SqrDistanceValid_Norm(NPPImage_8uC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    SqrDistanceValid_Norm(NPPImage_8uC4, NPPImage_8uC4, Int32)

    image SqrDistanceValid_Norm.

    Declaration
    public void SqrDistanceValid_Norm(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination-Image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    | Improve this Doc View Source

    SqrDistanceValid_NormA(NPPImage_8uC4, NPPImage_32fC4)

    image SqrDistanceValid_Norm. Not affecting Alpha.

    Declaration
    public void SqrDistanceValid_NormA(NPPImage_8uC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    SqrDistanceValid_NormA(NPPImage_8uC4, NPPImage_8uC4, Int32)

    image SqrDistanceValid_Norm. Not affecting Alpha.

    Declaration
    public void SqrDistanceValid_NormA(NPPImage_8uC4 tpl, NPPImage_8uC4 dst, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 tpl

    template image.

    NPPImage_8uC4 dst

    Destination-Image

    System.Int32 nScaleFactor

    Integer Result Scaling.

    | Improve this Doc View Source

    Sqrt(NPPImage_8uC4, Int32)

    Image square root, scale by 2^(-nScaleFactor), then clamp to saturated value.

    Declaration
    public void Sqrt(NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    Sqrt(Int32)

    Inplace image square root, scale by 2^(-nScaleFactor), then clamp to saturated value.

    Declaration
    public void Sqrt(int nScaleFactor)
    Parameters
    Type Name Description
    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    SqrtA(NPPImage_8uC4, Int32)

    Image square root, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.

    Declaration
    public void SqrtA(NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    SqrtA(Int32)

    Inplace image square root, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.

    Declaration
    public void SqrtA(int nScaleFactor)
    Parameters
    Type Name Description
    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    Sub(NPPImage_8uC4, NPPImage_8uC4, Int32)

    Image subtraction, scale by 2^(-nScaleFactor), then clamp to saturated value.

    Declaration
    public void Sub(NPPImage_8uC4 src2, NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    Sub(NPPImage_8uC4, Int32)

    In place image subtraction, scale by 2^(-nScaleFactor), then clamp to saturated value.

    Declaration
    public void Sub(NPPImage_8uC4 src2, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    Sub(Byte[], NPPImage_8uC4, Int32)

    Subtract constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.

    Declaration
    public void Sub(byte[] nConstant, NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value to subtract

    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    Sub(Byte[], Int32)

    Subtract constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.

    Declaration
    public void Sub(byte[] nConstant, int nScaleFactor)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value to subtract

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    SubA(NPPImage_8uC4, NPPImage_8uC4, Int32)

    Image subtraction, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.

    Declaration
    public void SubA(NPPImage_8uC4 src2, NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    SubA(NPPImage_8uC4, Int32)

    In place image subtraction, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.

    Declaration
    public void SubA(NPPImage_8uC4 src2, int nScaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    SubA(Byte[], NPPImage_8uC4, Int32)

    Subtract constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.

    Declaration
    public void SubA(byte[] nConstant, NPPImage_8uC4 dest, int nScaleFactor)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value to subtract

    NPPImage_8uC4 dest

    Destination image

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    SubA(Byte[], Int32)

    Subtract constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace. Unchanged Alpha.

    Declaration
    public void SubA(byte[] nConstant, int nScaleFactor)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value to subtract

    System.Int32 nScaleFactor

    scaling factor

    | Improve this Doc View Source

    Sum(CudaDeviceVariable<Double>)

    image sum with 64-bit double precision result. Buffer is internally allocated and freed.

    Declaration
    public void Sum(CudaDeviceVariable<double> result)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Double> result

    Allocated device memory with size of at least 4 * sizeof(double)

    | Improve this Doc View Source

    Sum(CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image sum with 64-bit double precision result. No additional buffer is allocated.

    Declaration
    public void Sum(CudaDeviceVariable<double> result, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Double> result

    Allocated device memory with size of at least 4 * sizeof(double)

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at SumDoubleGetBufferHostSize()

    | Improve this Doc View Source

    Sum(CudaDeviceVariable<Int64>)

    image sum with 64-bit long long result. Buffer is internally allocated and freed.

    Declaration
    public void Sum(CudaDeviceVariable<long> result)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Int64> result

    Allocated device memory with size of at least 4 * sizeof(long)

    | Improve this Doc View Source

    Sum(CudaDeviceVariable<Int64>, CudaDeviceVariable<Byte>)

    image sum with 64-bit double precision result. No additional buffer is allocated.

    Declaration
    public void Sum(CudaDeviceVariable<long> result, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Int64> result

    Allocated device memory with size of at least 4 * sizeof(long)

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at SumLongGetBufferHostSize()

    | Improve this Doc View Source

    SumA(CudaDeviceVariable<Double>)

    image sum with 64-bit double precision result. Buffer is internally allocated and freed.

    Declaration
    public void SumA(CudaDeviceVariable<double> result)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Double> result

    Allocated device memory with size of at least 3 * sizeof(double)

    | Improve this Doc View Source

    SumA(CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image sum with 64-bit double precision result. No additional buffer is allocated.

    Declaration
    public void SumA(CudaDeviceVariable<double> result, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    CudaDeviceVariable<System.Double> result

    Allocated device memory with size of at least 3 * sizeof(double)

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at SumDoubleGetBufferHostSizeA()

    | Improve this Doc View Source

    SumDoubleGetBufferHostSize()

    Scratch-buffer size for nppiSum_8u_C4R.

    Declaration
    public int SumDoubleGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    SumDoubleGetBufferHostSizeA()

    Scratch-buffer size for nppiSum_8u_C4R. Not affecting alpha.

    Declaration
    public int SumDoubleGetBufferHostSizeA()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    SumLongGetBufferHostSize()

    Scratch-buffer size for nppiSum_8u_C4R.

    Declaration
    public int SumLongGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    SumWindowColumn(NPPImage_32fC4, Int32, Int32)

    8-bit unsigned 1D (column) sum to 32f. Apply Column Window Summation filter over a 1D mask region around each source pixel for 4-channel 8 bit/pixel input images with 32-bit floating point output.

    Result 32-bit floating point pixel is equal to the sum of the corresponding and neighboring column pixel values in a mask region of the source image defined by nMaskSize and nAnchor.

    Declaration
    public void SumWindowColumn(NPPImage_32fC4 dest, int nMaskSize, int nAnchor)
    Parameters
    Type Name Description
    NPPImage_32fC4 dest

    Destination image

    System.Int32 nMaskSize

    Length of the linear kernel array.

    System.Int32 nAnchor

    Y offset of the kernel origin frame of reference w.r.t the source pixel.

    | Improve this Doc View Source

    SumWindowColumnBorder(NPPImage_32fC4, Int32, Int32, NppiBorderType)

    Apply Column Window Summation filter over a 1D mask region around each source pixel for 3-channel 8 bit/pixel input images with 32-bit floating point output.
    Result 32-bit floating point pixel is equal to the sum of the corresponding and neighboring column pixel values in a mask region of the source image defined by nMaskSize and nAnchor.

    Declaration
    public void SumWindowColumnBorder(NPPImage_32fC4 dest, int nMaskSize, int nAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_32fC4 dest

    Destination image

    System.Int32 nMaskSize

    Length of the linear kernel array.

    System.Int32 nAnchor

    Y offset of the kernel origin frame of reference w.r.t the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    SumWindowRow(NPPImage_32fC4, Int32, Int32)

    8-bit unsigned 1D (row) sum to 32f.

    Apply Row Window Summation filter over a 1D mask region around each source pixel for 4-channel 8-bit pixel input images with 32-bit floating point output.
    Result 32-bit floating point pixel is equal to the sum of the corresponding and neighboring row pixel values in a mask region of the source image defined by nKernelDim and nAnchorX.

    Declaration
    public void SumWindowRow(NPPImage_32fC4 dest, int nMaskSize, int nAnchor)
    Parameters
    Type Name Description
    NPPImage_32fC4 dest

    Destination image

    System.Int32 nMaskSize

    Length of the linear kernel array.

    System.Int32 nAnchor

    X offset of the kernel origin frame of reference w.r.t the source pixel.

    | Improve this Doc View Source

    SumWindowRowBorder(NPPImage_32fC4, Int32, Int32, NppiBorderType)

    Apply Row Window Summation filter over a 1D mask region around each source pixel for 3-channel 8-bit pixel input images with 32-bit floating point output.
    Result 32-bit floating point pixel is equal to the sum of the corresponding and neighboring row pixel values in a mask region of the source image defined by nKernelDim and nAnchorX.

    Declaration
    public void SumWindowRowBorder(NPPImage_32fC4 dest, int nMaskSize, int nAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_32fC4 dest

    Destination image

    System.Int32 nMaskSize

    Length of the linear kernel array.

    System.Int32 nAnchor

    X offset of the kernel origin frame of reference w.r.t the source pixel.

    NppiBorderType eBorderType

    The border type operation to be applied at source image border boundaries.

    | Improve this Doc View Source

    SwapChannels(NPPImage_8uC3, Int32[])

    Swap channels.

    Declaration
    public void SwapChannels(NPPImage_8uC3 dest, int[] aDstOrder)
    Parameters
    Type Name Description
    NPPImage_8uC3 dest

    Destination image

    System.Int32[] aDstOrder

    Host memory integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image.

    E.g. Given an RGBA image, aDstOrder = [2,1,0] converts this to a 3 channel BGR channel order.

    | Improve this Doc View Source

    SwapChannels(NPPImage_8uC4, Int32[])

    Swap channels.

    Declaration
    public void SwapChannels(NPPImage_8uC4 dest, int[] aDstOrder)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Int32[] aDstOrder

    Integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGBA image, aDstOrder = [3,2,1,0] converts this to ABGR channel order.

    | Improve this Doc View Source

    SwapChannels(Int32[])

    Swap channels, in-place.

    Declaration
    public void SwapChannels(int[] aDstOrder)
    Parameters
    Type Name Description
    System.Int32[] aDstOrder

    Integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGBA image, aDstOrder = [3,2,1,0] converts this to ABGR channel order.

    | Improve this Doc View Source

    SwapChannelsA(NPPImage_8uC4, Int32[])

    Swap channels. Not affecting Alpha

    Declaration
    public void SwapChannelsA(NPPImage_8uC4 dest, int[] aDstOrder)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Int32[] aDstOrder

    Integer array describing how channel values are permutated. The n-th entry of the array contains the number of the channel that is stored in the n-th channel of the output image. E.g. Given an RGBA image, aDstOrder = [2,1,0] converts this to BGRA channel order. In the AC4R case, the alpha channel is always assumed to be channel 3.

    | Improve this Doc View Source

    Threshold(NPPImage_8uC4, NppCmpOp, Byte[])

    If for a comparison operations OP the predicate (sourcePixel.channel OP nThreshold) is true, the channel value is set to nThreshold, otherwise it is set to sourcePixel. Not affecting Alpha.

    Declaration
    public void Threshold(NPPImage_8uC4 dest, NppCmpOp eComparisonOperation, byte[] aThresholds)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    NppCmpOp eComparisonOperation

    The type of comparison operation to be used. The only valid values are: NppCmpOp.Less and NppCmpOp.Greater

    System.Byte[] aThresholds

    The threshold values, one per color channel. (Size = 3)

    | Improve this Doc View Source

    Threshold(NPPImage_8uC4, Byte[], NppCmpOp)

    Image threshold.

    If for a comparison operations OP the predicate (sourcePixel OP nThreshold) is true, the pixel is set to nThreshold, otherwise it is set to sourcePixel.

    Declaration
    public void Threshold(NPPImage_8uC4 dest, byte[] nThreshold, NppCmpOp eComparisonOperation)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Byte[] nThreshold

    The threshold value.

    NppCmpOp eComparisonOperation

    eComparisonOperation. Only allowed values are Less and Greater

    | Improve this Doc View Source

    Threshold(NPPImage_8uC4, Byte[], Byte[], NppCmpOp)

    Image threshold.

    If for a comparison operations OP the predicate (sourcePixel OP nThreshold) is true, the pixel is set to nValue, otherwise it is set to sourcePixel.

    Declaration
    public void Threshold(NPPImage_8uC4 dest, byte[] nThreshold, byte[] nValue, NppCmpOp eComparisonOperation)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Byte[] nThreshold

    The threshold value.

    System.Byte[] nValue

    The threshold replacement value.

    NppCmpOp eComparisonOperation

    eComparisonOperation. Only allowed values are Less and Greater

    | Improve this Doc View Source

    Threshold(Byte[], NppCmpOp)

    In place image threshold.

    If for a comparison operations OP the predicate (sourcePixel OP nThreshold) is true, the pixel is set to nThreshold, otherwise it is set to sourcePixel.

    Declaration
    public void Threshold(byte[] nThreshold, NppCmpOp eComparisonOperation)
    Parameters
    Type Name Description
    System.Byte[] nThreshold

    The threshold value.

    NppCmpOp eComparisonOperation

    eComparisonOperation. Only allowed values are Less and Greater

    | Improve this Doc View Source

    Threshold(Byte[], Byte[], NppCmpOp)

    In place image threshold.

    If for a comparison operations OP the predicate (sourcePixel OP nThreshold) is true, the pixel is set to nValue, otherwise it is set to sourcePixel.

    Declaration
    public void Threshold(byte[] nThreshold, byte[] nValue, NppCmpOp eComparisonOperation)
    Parameters
    Type Name Description
    System.Byte[] nThreshold

    The threshold value.

    System.Byte[] nValue

    The threshold replacement value.

    NppCmpOp eComparisonOperation

    eComparisonOperation. Only allowed values are Less and Greater

    | Improve this Doc View Source

    ThresholdGT(NPPImage_8uC4, Byte[])

    Image threshold.

    If for a comparison operations sourcePixel is greater than nThreshold is true, the pixel is set to nThreshold, otherwise it is set to sourcePixel.

    Declaration
    public void ThresholdGT(NPPImage_8uC4 dest, byte[] nThreshold)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Byte[] nThreshold

    The threshold value.

    | Improve this Doc View Source

    ThresholdGT(NPPImage_8uC4, Byte[], Byte[])

    Image threshold.

    If for a comparison operations sourcePixel is greater than nThreshold is true, the pixel is set to nValue, otherwise it is set to sourcePixel.

    Declaration
    public void ThresholdGT(NPPImage_8uC4 dest, byte[] nThreshold, byte[] nValue)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Byte[] nThreshold

    The threshold value.

    System.Byte[] nValue

    The threshold replacement value.

    | Improve this Doc View Source

    ThresholdGT(Byte[])

    In place image threshold.

    If for a comparison operations sourcePixel is greater than nThreshold is true, the pixel is set to nThreshold, otherwise it is set to sourcePixel.

    Declaration
    public void ThresholdGT(byte[] nThreshold)
    Parameters
    Type Name Description
    System.Byte[] nThreshold

    The threshold value.

    | Improve this Doc View Source

    ThresholdGT(Byte[], Byte[])

    In place image threshold.

    If for a comparison operations sourcePixel is greater than nThreshold is true, the pixel is set to nValue, otherwise it is set to sourcePixel.

    Declaration
    public void ThresholdGT(byte[] nThreshold, byte[] nValue)
    Parameters
    Type Name Description
    System.Byte[] nThreshold

    The threshold value.

    System.Byte[] nValue

    The threshold replacement value.

    | Improve this Doc View Source

    ThresholdLT(NPPImage_8uC4, Byte[])

    Image threshold.

    If for a comparison operations sourcePixel is less than nThreshold is true, the pixel is set to nThreshold, otherwise it is set to sourcePixel.

    Declaration
    public void ThresholdLT(NPPImage_8uC4 dest, byte[] nThreshold)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Byte[] nThreshold

    The threshold value.

    | Improve this Doc View Source

    ThresholdLT(NPPImage_8uC4, Byte[], Byte[])

    Image threshold.

    If for a comparison operations sourcePixel is less than nThreshold is true, the pixel is set to nValue, otherwise it is set to sourcePixel.

    Declaration
    public void ThresholdLT(NPPImage_8uC4 dest, byte[] nThreshold, byte[] nValue)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Byte[] nThreshold

    The threshold value.

    System.Byte[] nValue

    The threshold replacement value.

    | Improve this Doc View Source

    ThresholdLT(Byte[])

    In place image threshold.

    If for a comparison operations sourcePixel is less than nThreshold is true, the pixel is set to nThreshold, otherwise it is set to sourcePixel.

    Declaration
    public void ThresholdLT(byte[] nThreshold)
    Parameters
    Type Name Description
    System.Byte[] nThreshold

    The threshold value.

    | Improve this Doc View Source

    ThresholdLT(Byte[], Byte[])

    In place image threshold.

    If for a comparison operations sourcePixel is less than nThreshold is true, the pixel is set to nValue, otherwise it is set to sourcePixel.

    Declaration
    public void ThresholdLT(byte[] nThreshold, byte[] nValue)
    Parameters
    Type Name Description
    System.Byte[] nThreshold

    The threshold value.

    System.Byte[] nValue

    The threshold replacement value.

    | Improve this Doc View Source

    ThresholdLTGT(NPPImage_8uC4, Byte[], Byte[], Byte[], Byte[])

    Image threshold.

    If for a comparison operations sourcePixel is less than nThresholdLT is true, the pixel is set to nValueLT, else if sourcePixel is greater than nThresholdGT the pixel is set to nValueGT, otherwise it is set to sourcePixel.

    Declaration
    public void ThresholdLTGT(NPPImage_8uC4 dest, byte[] nThresholdLT, byte[] nValueLT, byte[] nThresholdGT, byte[] nValueGT)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Byte[] nThresholdLT

    The thresholdLT value.

    System.Byte[] nValueLT

    The thresholdLT replacement value.

    System.Byte[] nThresholdGT

    The thresholdGT value.

    System.Byte[] nValueGT

    The thresholdGT replacement value.

    | Improve this Doc View Source

    ThresholdLTGT(Byte[], Byte[], Byte[], Byte[])

    In place image threshold.

    If for a comparison operations sourcePixel is less than nThresholdLT is true, the pixel is set to nValueLT, else if sourcePixel is greater than nThresholdGT the pixel is set to nValueGT, otherwise it is set to sourcePixel.

    Declaration
    public void ThresholdLTGT(byte[] nThresholdLT, byte[] nValueLT, byte[] nThresholdGT, byte[] nValueGT)
    Parameters
    Type Name Description
    System.Byte[] nThresholdLT

    The thresholdLT value.

    System.Byte[] nValueLT

    The thresholdLT replacement value.

    System.Byte[] nThresholdGT

    The thresholdGT value.

    System.Byte[] nValueGT

    The thresholdGT replacement value.

    | Improve this Doc View Source

    ToCudaPitchedDeviceVariable()

    Converts a NPPImage to a CudaPitchedDeviceVariable

    Declaration
    public CudaPitchedDeviceVariable<uchar4> ToCudaPitchedDeviceVariable()
    Returns
    Type Description
    CudaPitchedDeviceVariable<uchar4>
    | Improve this Doc View Source

    Transpose(NPPImage_8uC4)

    image transpose

    Declaration
    public void Transpose(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    ValidNormLevelAGetBufferHostSize()

    Device scratch buffer size (in bytes) for CrossCorrValid_NormLevel. Not affecting Alpha.

    Declaration
    public int ValidNormLevelAGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    ValidNormLevelGetBufferHostSize()

    Device scratch buffer size (in bytes) for CrossCorrValid_NormLevel.

    Declaration
    public int ValidNormLevelGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    ValidNormLevelScaledAGetBufferHostSize()

    Device scratch buffer size (in bytes) for CrossCorrValid_NormLevel. Not affecting Alpha.

    Declaration
    public int ValidNormLevelScaledAGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    ValidNormLevelScaledGetBufferHostSize()

    Device scratch buffer size (in bytes) for CrossCorrValid_NormLevel.

    Declaration
    public int ValidNormLevelScaledGetBufferHostSize()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    WarpAffine(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, Double[,], InterpolationMode)

    Affine transform of an image.

    This function operates using given transform coefficients that can be obtained by using nppiGetAffineTransform function or set explicitly. The function operates on source and destination regions of interest. The affine warp function transforms the source image pixel coordinates (x,y) according to the following formulas:

    X_new = C_00 * x + C_01 * y + C_02

    Y_new = C_10 * x + C_11 * y + C_12

    The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetAffineQuad and nppiGetAffineBound can help with destination ROI specification.

    NPPI specific recommendation:

    The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but does not perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one.

    In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values

    (int)((void *)(pDst + dstRoi.x))
    and

    (int)((void *)(pDst + dstRoi.x + dstRoi.width))

    are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

    Declaration
    public static void WarpAffine(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2, double[, ] coeffs, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC1 src0

    Source image (Channel 0)

    NPPImage_8uC1 src1

    Source image (Channel 1)

    NPPImage_8uC1 src2

    Source image (Channel 2)

    NPPImage_8uC1 dest0

    Destination image (Channel 0)

    NPPImage_8uC1 dest1

    Destination image (Channel 1)

    NPPImage_8uC1 dest2

    Destination image (Channel 2)

    System.Double[,] coeffs

    Affine transform coefficients [2,3]

    InterpolationMode eInterpolation

    Interpolation mode: can be NearestNeighbor, Linear or Cubic

    | Improve this Doc View Source

    WarpAffine(NPPImage_8uC4, Double[,], InterpolationMode)

    Affine transform of an image.

    This function operates using given transform coefficients that can be obtained by using nppiGetAffineTransform function or set explicitly. The function operates on source and destination regions of interest. The affine warp function transforms the source image pixel coordinates (x,y) according to the following formulas:

    X_new = C_00 * x + C_01 * y + C_02

    Y_new = C_10 * x + C_11 * y + C_12

    The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetAffineQuad and nppiGetAffineBound can help with destination ROI specification.

    NPPI specific recommendation:

    The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but does not perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one.

    In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values

    (int)((void *)(pDst + dstRoi.x))
    and

    (int)((void *)(pDst + dstRoi.x + dstRoi.width))

    are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

    Declaration
    public void WarpAffine(NPPImage_8uC4 dest, double[, ] coeffs, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Double[,] coeffs

    Affine transform coefficients [2,3]

    InterpolationMode eInterpolation

    Interpolation mode: can be NearestNeighbor, Linear or Cubic

    | Improve this Doc View Source

    WarpAffineA(NPPImage_8uC4, Double[,], InterpolationMode)

    Affine transform of an image. Not affecting Alpha channel.

    This function operates using given transform coefficients that can be obtained by using nppiGetAffineTransform function or set explicitly. The function operates on source and destination regions of interest. The affine warp function transforms the source image pixel coordinates (x,y) according to the following formulas:

    X_new = C_00 * x + C_01 * y + C_02

    Y_new = C_10 * x + C_11 * y + C_12

    The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetAffineQuad and nppiGetAffineBound can help with destination ROI specification.

    NPPI specific recommendation:

    The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but does not perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one.

    In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values

    (int)((void *)(pDst + dstRoi.x))
    and

    (int)((void *)(pDst + dstRoi.x + dstRoi.width))

    are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

    Declaration
    public void WarpAffineA(NPPImage_8uC4 dest, double[, ] coeffs, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Double[,] coeffs

    Affine transform coefficients [2,3]

    InterpolationMode eInterpolation

    Interpolation mode: can be NearestNeighbor, Linear or Cubic

    | Improve this Doc View Source

    WarpAffineBack(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, Double[,], InterpolationMode)

    Inverse affine transform of an image.

    This function operates using given transform coefficients that can be obtained by using nppiGetAffineTransform function or set explicitly. Thus there is no need to invert coefficients in your application before calling WarpAffineBack. The function operates on source and destination regions of interest.

    The affine warp function transforms the source image pixel coordinates (x,y) according to the following formulas:

    X_new = C_00 * x + C_01 * y + C_02

    Y_new = C_10 * x + C_11 * y + C_12

    The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetAffineQuad and nppiGetAffineBound can help with destination ROI specification.

    NPPI specific recommendation:

    The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values

    (int)((void *)(pDst + dstRoi.x))
    and

    (int)((void *)(pDst + dstRoi.x + dstRoi.width))

    are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

    Declaration
    public static void WarpAffineBack(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2, double[, ] coeffs, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC1 src0

    Source image (Channel 0)

    NPPImage_8uC1 src1

    Source image (Channel 1)

    NPPImage_8uC1 src2

    Source image (Channel 2)

    NPPImage_8uC1 dest0

    Destination image (Channel 0)

    NPPImage_8uC1 dest1

    Destination image (Channel 1)

    NPPImage_8uC1 dest2

    Destination image (Channel 2)

    System.Double[,] coeffs

    Affine transform coefficients [2,3]

    InterpolationMode eInterpolation

    Interpolation mode: can be NearestNeighbor, Linear or Cubic

    | Improve this Doc View Source

    WarpAffineBack(NPPImage_8uC4, Double[,], InterpolationMode)

    Inverse affine transform of an image.

    This function operates using given transform coefficients that can be obtained by using nppiGetAffineTransform function or set explicitly. Thus there is no need to invert coefficients in your application before calling WarpAffineBack. The function operates on source and destination regions of interest.

    The affine warp function transforms the source image pixel coordinates (x,y) according to the following formulas:

    X_new = C_00 * x + C_01 * y + C_02

    Y_new = C_10 * x + C_11 * y + C_12

    The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetAffineQuad and nppiGetAffineBound can help with destination ROI specification.

    NPPI specific recommendation:

    The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values

    (int)((void *)(pDst + dstRoi.x))
    and

    (int)((void *)(pDst + dstRoi.x + dstRoi.width))

    are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

    Declaration
    public void WarpAffineBack(NPPImage_8uC4 dest, double[, ] coeffs, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Double[,] coeffs

    Affine transform coefficients [2,3]

    InterpolationMode eInterpolation

    Interpolation mode: can be NearestNeighbor, Linear or Cubic

    | Improve this Doc View Source

    WarpAffineBackA(NPPImage_8uC4, Double[,], InterpolationMode)

    Inverse affine transform of an image. Not affecting Alpha channel.

    This function operates using given transform coefficients that can be obtained by using nppiGetAffineTransform function or set explicitly. Thus there is no need to invert coefficients in your application before calling WarpAffineBack. The function operates on source and destination regions of interest.

    The affine warp function transforms the source image pixel coordinates (x,y) according to the following formulas:

    X_new = C_00 * x + C_01 * y + C_02

    Y_new = C_10 * x + C_11 * y + C_12

    The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetAffineQuad and nppiGetAffineBound can help with destination ROI specification.

    NPPI specific recommendation:

    The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values

    (int)((void *)(pDst + dstRoi.x))
    and

    (int)((void *)(pDst + dstRoi.x + dstRoi.width))

    are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

    Declaration
    public void WarpAffineBackA(NPPImage_8uC4 dest, double[, ] coeffs, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Double[,] coeffs

    Affine transform coefficients [2,3]

    InterpolationMode eInterpolation

    Interpolation mode: can be NearestNeighbor, Linear or Cubic

    | Improve this Doc View Source

    WarpAffineQuad(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, Double[,], NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, Double[,], InterpolationMode)

    Affine transform of an image.

    This function performs affine warping of a the specified quadrangle in the source image to the specified quadrangle in the destination image. The function nppiWarpAffineQuad uses the same formulas for pixel mapping as in nppiWarpAffine function. The transform coefficients are computed internally. The transformed part of the source image is resampled using the specified eInterpolation method and written to the destination ROI.

    NPPI specific recommendation:

    The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values

    (int)((void *)(pDst + dstRoi.x))
    and

    (int)((void *)(pDst + dstRoi.x + dstRoi.width))

    are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

    Declaration
    public static void WarpAffineQuad(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, double[, ] srcQuad, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2, double[, ] dstQuad, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC1 src0

    Source image (Channel 0)

    NPPImage_8uC1 src1

    Source image (Channel 1)

    NPPImage_8uC1 src2

    Source image (Channel 2)

    System.Double[,] srcQuad

    Source quadrangle [4,2]

    NPPImage_8uC1 dest0

    Destination image (Channel 0)

    NPPImage_8uC1 dest1

    Destination image (Channel 1)

    NPPImage_8uC1 dest2

    Destination image (Channel 2)

    System.Double[,] dstQuad

    Destination quadrangle [4,2]

    InterpolationMode eInterpolation

    Interpolation mode: can be NearestNeighbor, Linear or Cubic

    | Improve this Doc View Source

    WarpAffineQuad(Double[,], NPPImage_8uC4, Double[,], InterpolationMode)

    Affine transform of an image.

    This function performs affine warping of a the specified quadrangle in the source image to the specified quadrangle in the destination image. The function nppiWarpAffineQuad uses the same formulas for pixel mapping as in nppiWarpAffine function. The transform coefficients are computed internally. The transformed part of the source image is resampled using the specified eInterpolation method and written to the destination ROI.

    NPPI specific recommendation:

    The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values

    (int)((void *)(pDst + dstRoi.x))
    and

    (int)((void *)(pDst + dstRoi.x + dstRoi.width))

    are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

    Declaration
    public void WarpAffineQuad(double[, ] srcQuad, NPPImage_8uC4 dest, double[, ] dstQuad, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    System.Double[,] srcQuad

    Source quadrangle [4,2]

    NPPImage_8uC4 dest

    Destination image

    System.Double[,] dstQuad

    Destination quadrangle [4,2]

    InterpolationMode eInterpolation

    Interpolation mode: can be NearestNeighbor, Linear or Cubic

    | Improve this Doc View Source

    WarpAffineQuadA(Double[,], NPPImage_8uC4, Double[,], InterpolationMode)

    Affine transform of an image. Not affecting Alpha channel.

    This function performs affine warping of a the specified quadrangle in the source image to the specified quadrangle in the destination image. The function nppiWarpAffineQuad uses the same formulas for pixel mapping as in nppiWarpAffine function. The transform coefficients are computed internally. The transformed part of the source image is resampled using the specified eInterpolation method and written to the destination ROI.

    NPPI specific recommendation:

    The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values

    (int)((void *)(pDst + dstRoi.x))
    and

    (int)((void *)(pDst + dstRoi.x + dstRoi.width))

    are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

    Declaration
    public void WarpAffineQuadA(double[, ] srcQuad, NPPImage_8uC4 dest, double[, ] dstQuad, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    System.Double[,] srcQuad

    Source quadrangle [4,2]

    NPPImage_8uC4 dest

    Destination image

    System.Double[,] dstQuad

    Destination quadrangle [4,2]

    InterpolationMode eInterpolation

    Interpolation mode: can be NearestNeighbor, Linear or Cubic

    | Improve this Doc View Source

    WarpPerspective(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, Double[,], InterpolationMode)

    Perspective transform of an image.

    This function operates using given transform coefficients that can be obtained by using nppiGetPerspectiveTransform function or set explicitly. The function operates on source and destination regions of interest. The perspective warp function transforms the source image pixel coordinates (x,y) according to the following formulas:

    X_new = (C_00 * x + C_01 * y + C_02) / (C_20 * x + C_21 * y + C_22)

    Y_new = (C_10 * x + C_11 * y + C_12) / (C_20 * x + C_21 * y + C_22)

    The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetPerspectiveQuad and nppiGetPerspectiveBound can help with destination ROI specification.

    NPPI specific recommendation:

    The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values

    (int)((void *)(pDst + dstRoi.x))
    and

    (int)((void *)(pDst + dstRoi.x + dstRoi.width))

    are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

    Declaration
    public static void WarpPerspective(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2, double[, ] coeffs, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC1 src0

    Source image (Channel 0)

    NPPImage_8uC1 src1

    Source image (Channel 1)

    NPPImage_8uC1 src2

    Source image (Channel 2)

    NPPImage_8uC1 dest0

    Destination image (Channel 0)

    NPPImage_8uC1 dest1

    Destination image (Channel 1)

    NPPImage_8uC1 dest2

    Destination image (Channel 2)

    System.Double[,] coeffs

    Perspective transform coefficients [3,3]

    InterpolationMode eInterpolation

    Interpolation mode: can be NearestNeighbor, Linear or Cubic

    | Improve this Doc View Source

    WarpPerspective(NPPImage_8uC4, Double[,], InterpolationMode)

    Perspective transform of an image.

    This function operates using given transform coefficients that can be obtained by using nppiGetPerspectiveTransform function or set explicitly. The function operates on source and destination regions of interest. The perspective warp function transforms the source image pixel coordinates (x,y) according to the following formulas:

    X_new = (C_00 * x + C_01 * y + C_02) / (C_20 * x + C_21 * y + C_22)

    Y_new = (C_10 * x + C_11 * y + C_12) / (C_20 * x + C_21 * y + C_22)

    The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetPerspectiveQuad and nppiGetPerspectiveBound can help with destination ROI specification.

    NPPI specific recommendation:

    The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values

    (int)((void *)(pDst + dstRoi.x))
    and

    (int)((void *)(pDst + dstRoi.x + dstRoi.width))

    are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

    Declaration
    public void WarpPerspective(NPPImage_8uC4 dest, double[, ] coeffs, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Double[,] coeffs

    Perspective transform coefficients [3,3]

    InterpolationMode eInterpolation

    Interpolation mode: can be NearestNeighbor, Linear or Cubic

    | Improve this Doc View Source

    WarpPerspectiveA(NPPImage_8uC4, Double[,], InterpolationMode)

    Perspective transform of an image. Not affecting Alpha channel.

    This function operates using given transform coefficients that can be obtained by using nppiGetPerspectiveTransform function or set explicitly. The function operates on source and destination regions of interest. The perspective warp function transforms the source image pixel coordinates (x,y) according to the following formulas:

    X_new = (C_00 * x + C_01 * y + C_02) / (C_20 * x + C_21 * y + C_22)

    Y_new = (C_10 * x + C_11 * y + C_12) / (C_20 * x + C_21 * y + C_22)

    The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetPerspectiveQuad and nppiGetPerspectiveBound can help with destination ROI specification.

    NPPI specific recommendation:

    The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values

    (int)((void *)(pDst + dstRoi.x))
    and

    (int)((void *)(pDst + dstRoi.x + dstRoi.width))

    are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

    Declaration
    public void WarpPerspectiveA(NPPImage_8uC4 dest, double[, ] coeffs, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Double[,] coeffs

    Perspective transform coefficients [3,3]

    InterpolationMode eInterpolation

    Interpolation mode: can be NearestNeighbor, Linear or Cubic

    | Improve this Doc View Source

    WarpPerspectiveBack(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, Double[,], InterpolationMode)

    Inverse perspective transform of an image.

    This function operates using given transform coefficients that can be obtained by using nppiGetPerspectiveTransform function or set explicitly. Thus there is no need to invert coefficients in your application before calling WarpPerspectiveBack. The function operates on source and destination regions of interest. The perspective warp function transforms the source image pixel coordinates (x,y) according to the following formulas:

    X_new = (C_00 * x + C_01 * y + C_02) / (C_20 * x + C_21 * y + C_22)

    Y_new = (C_10 * x + C_11 * y + C_12) / (C_20 * x + C_21 * y + C_22)

    The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetPerspectiveQuad and nppiGetPerspectiveBound can help with destination ROI specification.

    NPPI specific recommendation:

    The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values

    (int)((void *)(pDst + dstRoi.x))
    and

    (int)((void *)(pDst + dstRoi.x + dstRoi.width))

    are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

    Declaration
    public static void WarpPerspectiveBack(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2, double[, ] coeffs, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC1 src0

    Source image (Channel 0)

    NPPImage_8uC1 src1

    Source image (Channel 1)

    NPPImage_8uC1 src2

    Source image (Channel 2)

    NPPImage_8uC1 dest0

    Destination image (Channel 0)

    NPPImage_8uC1 dest1

    Destination image (Channel 1)

    NPPImage_8uC1 dest2

    Destination image (Channel 2)

    System.Double[,] coeffs

    Perspective transform coefficients [3,3]

    InterpolationMode eInterpolation

    Interpolation mode: can be NearestNeighbor, Linear or Cubic

    | Improve this Doc View Source

    WarpPerspectiveBack(NPPImage_8uC4, Double[,], InterpolationMode)

    Inverse perspective transform of an image.

    This function operates using given transform coefficients that can be obtained by using nppiGetPerspectiveTransform function or set explicitly. Thus there is no need to invert coefficients in your application before calling WarpPerspectiveBack. The function operates on source and destination regions of interest. The perspective warp function transforms the source image pixel coordinates (x,y) according to the following formulas:

    X_new = (C_00 * x + C_01 * y + C_02) / (C_20 * x + C_21 * y + C_22)

    Y_new = (C_10 * x + C_11 * y + C_12) / (C_20 * x + C_21 * y + C_22)

    The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetPerspectiveQuad and nppiGetPerspectiveBound can help with destination ROI specification.

    NPPI specific recommendation:

    The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values

    (int)((void *)(pDst + dstRoi.x))
    and

    (int)((void *)(pDst + dstRoi.x + dstRoi.width))

    are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

    Declaration
    public void WarpPerspectiveBack(NPPImage_8uC4 dest, double[, ] coeffs, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Double[,] coeffs

    Perspective transform coefficients [3,3]

    InterpolationMode eInterpolation

    Interpolation mode: can be NearestNeighbor, Linear or Cubic

    | Improve this Doc View Source

    WarpPerspectiveBackA(NPPImage_8uC4, Double[,], InterpolationMode)

    Inverse perspective transform of an image. Not affecting Alpha channel.

    This function operates using given transform coefficients that can be obtained by using nppiGetPerspectiveTransform function or set explicitly. Thus there is no need to invert coefficients in your application before calling WarpPerspectiveBack. The function operates on source and destination regions of interest. The perspective warp function transforms the source image pixel coordinates (x,y) according to the following formulas:

    X_new = (C_00 * x + C_01 * y + C_02) / (C_20 * x + C_21 * y + C_22)

    Y_new = (C_10 * x + C_11 * y + C_12) / (C_20 * x + C_21 * y + C_22)

    The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI. The functions nppiGetPerspectiveQuad and nppiGetPerspectiveBound can help with destination ROI specification.

    NPPI specific recommendation:

    The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values

    (int)((void *)(pDst + dstRoi.x))
    and

    (int)((void *)(pDst + dstRoi.x + dstRoi.width))

    are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

    Declaration
    public void WarpPerspectiveBackA(NPPImage_8uC4 dest, double[, ] coeffs, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Double[,] coeffs

    Perspective transform coefficients [3,3]

    InterpolationMode eInterpolation

    Interpolation mode: can be NearestNeighbor, Linear or Cubic

    | Improve this Doc View Source

    WarpPerspectiveQuad(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, Double[,], NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, Double[,], InterpolationMode)

    Perspective transform of an image.

    This function performs perspective warping of a the specified quadrangle in the source image to the specified quadrangle in the destination image. The function nppiWarpPerspectiveQuad uses the same formulas for pixel mapping as in nppiWarpPerspective function. The transform coefficients are computed internally. The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI.

    NPPI specific recommendation:

    The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values

    (int)((void *)(pDst + dstRoi.x))
    and

    (int)((void *)(pDst + dstRoi.x + dstRoi.width))

    are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

    Declaration
    public static void WarpPerspectiveQuad(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, double[, ] srcQuad, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2, double[, ] destQuad, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    NPPImage_8uC1 src0

    Source image (Channel 0)

    NPPImage_8uC1 src1

    Source image (Channel 1)

    NPPImage_8uC1 src2

    Source image (Channel 2)

    System.Double[,] srcQuad

    Source quadrangle [4,2]

    NPPImage_8uC1 dest0

    Destination image (Channel 0)

    NPPImage_8uC1 dest1

    Destination image (Channel 1)

    NPPImage_8uC1 dest2

    Destination image (Channel 2)

    System.Double[,] destQuad

    Destination quadrangle [4,2]

    InterpolationMode eInterpolation

    Interpolation mode: can be NearestNeighbor, Linear or Cubic

    | Improve this Doc View Source

    WarpPerspectiveQuad(Double[,], NPPImage_8uC4, Double[,], InterpolationMode)

    Perspective transform of an image.

    This function performs perspective warping of a the specified quadrangle in the source image to the specified quadrangle in the destination image. The function nppiWarpPerspectiveQuad uses the same formulas for pixel mapping as in nppiWarpPerspective function. The transform coefficients are computed internally. The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI.

    NPPI specific recommendation:

    The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values

    (int)((void *)(pDst + dstRoi.x))
    and

    (int)((void *)(pDst + dstRoi.x + dstRoi.width))

    are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

    Declaration
    public void WarpPerspectiveQuad(double[, ] srcQuad, NPPImage_8uC4 dest, double[, ] destQuad, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    System.Double[,] srcQuad

    Source quadrangle [4,2]

    NPPImage_8uC4 dest

    Destination image

    System.Double[,] destQuad

    Destination quadrangle [4,2]

    InterpolationMode eInterpolation

    Interpolation mode: can be NearestNeighbor, Linear or Cubic

    | Improve this Doc View Source

    WarpPerspectiveQuadA(Double[,], NPPImage_8uC4, Double[,], InterpolationMode)

    Perspective transform of an image. Not affecting Alpha channel.

    This function performs perspective warping of a the specified quadrangle in the source image to the specified quadrangle in the destination image. The function nppiWarpPerspectiveQuad uses the same formulas for pixel mapping as in nppiWarpPerspective function. The transform coefficients are computed internally. The transformed part of the source image is resampled using the specified interpolation method and written to the destination ROI.

    NPPI specific recommendation:

    The function operates using 2 types of kernels: fast and accurate. The fast method is about 4 times faster than its accurate variant, but doesn't perform memory access checks and requires the destination ROI to be 64 bytes aligned. Hence any destination ROI is chunked into 3 vertical stripes: the first and the third are processed by accurate kernels and the central one is processed by the fast one. In order to get the maximum available speed of execution, the projection of destination ROI onto image addresses must be 64 bytes aligned. This is always true if the values

    (int)((void *)(pDst + dstRoi.x))
    and

    (int)((void *)(pDst + dstRoi.x + dstRoi.width))

    are multiples of 64. Another rule of thumb is to specify destination ROI in such way that left and right sides of the projected image are separated from the ROI by at least 63 bytes from each side. However, this requires the whole ROI to be part of allocated memory. In case when the conditions above are not satisfied, the function may decrease in speed slightly and will return NPP_MISALIGNED_DST_ROI_WARNING warning.

    Declaration
    public void WarpPerspectiveQuadA(double[, ] srcQuad, NPPImage_8uC4 dest, double[, ] destQuad, InterpolationMode eInterpolation)
    Parameters
    Type Name Description
    System.Double[,] srcQuad

    Source quadrangle [4,2]

    NPPImage_8uC4 dest

    Destination image

    System.Double[,] destQuad

    Destination quadrangle [4,2]

    InterpolationMode eInterpolation

    Interpolation mode: can be NearestNeighbor, Linear or Cubic

    | Improve this Doc View Source

    Xor(NPPImage_8uC4)

    In place image logical Xor.

    Declaration
    public void Xor(NPPImage_8uC4 src2)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    | Improve this Doc View Source

    Xor(NPPImage_8uC4, NPPImage_8uC4)

    Image logical Xor.

    Declaration
    public void Xor(NPPImage_8uC4 src2, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    Xor(Byte[])

    In place image logical Xor with constant.

    Declaration
    public void Xor(byte[] nConstant)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value (Array length = 4)

    | Improve this Doc View Source

    Xor(Byte[], NPPImage_8uC4)

    Image logical Xor with constant.

    Declaration
    public void Xor(byte[] nConstant, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value (Array length = 4)

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    XorA(NPPImage_8uC4)

    In place image logical Xor. Unchanged Alpha.

    Declaration
    public void XorA(NPPImage_8uC4 src2)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    | Improve this Doc View Source

    XorA(NPPImage_8uC4, NPPImage_8uC4)

    Image logical Xor. Unchanged Alpha.

    Declaration
    public void XorA(NPPImage_8uC4 src2, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 src2

    2nd source image

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    XorA(Byte[])

    In place image logical Xor with constant. Unchanged Alpha.

    Declaration
    public void XorA(byte[] nConstant)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value (Array length = 4)

    | Improve this Doc View Source

    XorA(Byte[], NPPImage_8uC4)

    Image logical Xor with constant. Unchanged Alpha.

    Declaration
    public void XorA(byte[] nConstant, NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    System.Byte[] nConstant

    Value (Array length = 4)

    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    XYZToRGB(NPPImage_8uC4)

    4 channel 8-bit unsigned packed XYZ with alpha to 4 channel 8-bit unsigned packed RGB with alpha color conversion.

    Declaration
    public void XYZToRGB(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    YCbCr411ToRGB(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC4, Byte)

    3 channel 8-bit unsigned planar YCbCr411 to 4 channel 8-bit unsigned packed RGB color conversion with constant alpha.

    Declaration
    public static void YCbCr411ToRGB(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 src2, NPPImage_8uC4 dest, byte nAval)
    Parameters
    Type Name Description
    NPPImage_8uC1 src0

    Source image channel 0

    NPPImage_8uC1 src1

    Source image channel 1

    NPPImage_8uC1 src2

    Source image channel 2

    NPPImage_8uC4 dest

    Destination image

    System.Byte nAval

    8-bit unsigned alpha constant.

    | Improve this Doc View Source

    YCbCrToRGB(NPPImage_8uC4)

    4 channel 8-bit unsigned packed YCbCr to RGB color conversion. Alpha channel is the last channel and is not processed.

    Declaration
    public void YCbCrToRGB(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    YCCToRGB(NPPImage_8uC4)

    4 channel 8-bit unsigned packed YCC with alpha to 4 channel 8-bit unsigned packed RGB with alpha color conversion.

    Declaration
    public void YCCToRGB(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    YUVToBGR(NPPImage_8uC4)

    4 channel 8-bit packed YUV with alpha to 4 channel 8-bit unsigned packed BGR color conversion with alpha, not affecting alpha.

    Declaration
    public void YUVToBGR(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    | Improve this Doc View Source

    YUVToRGB(NPPImage_8uC4)

    4 channel 8-bit packed YUV with alpha to 4 channel 8-bit unsigned packed RGB color conversion with alpha, not affecting alpha.

    Declaration
    public void YUVToRGB(NPPImage_8uC4 dest)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    Operators

    | Improve this Doc View Source

    Implicit(CudaPitchedDeviceVariable<uchar4> to NPPImage_8uC4)

    Converts a CudaPitchedDeviceVariable to a NPPImage

    Declaration
    public static implicit operator NPPImage_8uC4(CudaPitchedDeviceVariable<uchar4> img)
    Parameters
    Type Name Description
    CudaPitchedDeviceVariable<uchar4> img

    CudaPitchedDeviceVariable

    Returns
    Type Description
    NPPImage_8uC4

    NPPImage with the same device pointer and size of CudaPitchedDeviceVariable with ROI set to full image

    | Improve this Doc View Source

    Implicit(NPPImage_8uC4 to CudaPitchedDeviceVariable<uchar4>)

    Converts a NPPImage to a CudaPitchedDeviceVariable

    Declaration
    public static implicit operator CudaPitchedDeviceVariable<uchar4>(NPPImage_8uC4 img)
    Parameters
    Type Name Description
    NPPImage_8uC4 img

    NPPImage

    Returns
    Type Description
    CudaPitchedDeviceVariable<uchar4>

    CudaPitchedDeviceVariable with the same device pointer and size of NPPImage without ROI information

    Implements

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