Show / Hide Table of Contents

    Class NPPImage_32fcC4

    Inheritance
    System.Object
    NPPImageBase
    NPPImage_32fcC4
    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_32fcC4 : NPPImageBase, IDisposable

    Constructors

    | Improve this Doc View Source

    NPPImage_32fcC4(CUdeviceptr, NppiSize, Int32)

    Creates a new NPPImage from allocated device ptr.

    Declaration
    public NPPImage_32fcC4(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_32fcC4(CUdeviceptr, NppiSize, Int32, Boolean)

    Creates a new NPPImage from allocated device ptr.

    Declaration
    public NPPImage_32fcC4(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_32fcC4(CUdeviceptr, Int32, Int32, Int32)

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

    Declaration
    public NPPImage_32fcC4(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_32fcC4(CUdeviceptr, Int32, Int32, Int32, Boolean)

    Creates a new NPPImage from allocated device ptr.

    Declaration
    public NPPImage_32fcC4(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_32fcC4(NPPImageBase)

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

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

    NPP image

    | Improve this Doc View Source

    NPPImage_32fcC4(NppiSize)

    Allocates new memory on device using NPP-Api.

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

    Image size

    | Improve this Doc View Source

    NPPImage_32fcC4(Int32, Int32)

    Allocates new memory on device using NPP-Api.

    Declaration
    public NPPImage_32fcC4(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

    Add(Npp32fc[])

    Add constant to image. Inplace.

    Declaration
    public void Add(Npp32fc[] nConstant)
    Parameters
    Type Name Description
    Npp32fc[] nConstant

    Values to add

    | Improve this Doc View Source

    Add(Npp32fc[], NPPImage_32fcC4)

    Add constant to image.

    Declaration
    public void Add(Npp32fc[] nConstant, NPPImage_32fcC4 dest)
    Parameters
    Type Name Description
    Npp32fc[] nConstant

    Values to add

    NPPImage_32fcC4 dest

    Destination image

    | Improve this Doc View Source

    Add(NPPImage_32fcC4)

    In place image addition.

    Declaration
    public void Add(NPPImage_32fcC4 src2)
    Parameters
    Type Name Description
    NPPImage_32fcC4 src2

    2nd source image

    | Improve this Doc View Source

    Add(NPPImage_32fcC4, NPPImage_32fcC4)

    Image addition.

    Declaration
    public void Add(NPPImage_32fcC4 src2, NPPImage_32fcC4 dest)
    Parameters
    Type Name Description
    NPPImage_32fcC4 src2

    2nd source image

    NPPImage_32fcC4 dest

    Destination image

    | Improve this Doc View Source

    AddA(Npp32fc[])

    Add constant to image. Inplace. Unmodified Alpha.

    Declaration
    public void AddA(Npp32fc[] nConstant)
    Parameters
    Type Name Description
    Npp32fc[] nConstant

    Values to add

    | Improve this Doc View Source

    AddA(Npp32fc[], NPPImage_32fcC4)

    Add constant to image. Unmodified Alpha.

    Declaration
    public void AddA(Npp32fc[] nConstant, NPPImage_32fcC4 dest)
    Parameters
    Type Name Description
    Npp32fc[] nConstant

    Values to add

    NPPImage_32fcC4 dest

    Destination image

    | Improve this Doc View Source

    AddA(NPPImage_32fcC4)

    In place image addition. Unmodified Alpha.

    Declaration
    public void AddA(NPPImage_32fcC4 src2)
    Parameters
    Type Name Description
    NPPImage_32fcC4 src2

    2nd source image

    | Improve this Doc View Source

    AddA(NPPImage_32fcC4, NPPImage_32fcC4)

    Image addition. Unmodified Alpha.

    Declaration
    public void AddA(NPPImage_32fcC4 src2, NPPImage_32fcC4 dest)
    Parameters
    Type Name Description
    NPPImage_32fcC4 src2

    2nd source image

    NPPImage_32fcC4 dest

    Destination image

    | Improve this Doc View Source

    AverageError(NPPImage_8sC4, CudaDeviceVariable<Double>)

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

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

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    | Improve this Doc View Source

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

    image average error.

    Declaration
    public void AverageError(NPPImage_8sC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8sC4 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_8sC4, CudaDeviceVariable<Double>)

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

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

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    | Improve this Doc View Source

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

    image average relative error.

    Declaration
    public void AverageRelativeError(NPPImage_8sC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8sC4 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

    Copy(NPPImage_32fcC4)

    image copy.

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

    Destination image

    | Improve this Doc View Source

    CopyA(NPPImage_32fcC4)

    image copy. Not affecting Alpha channel.

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

    Destination image

    | Improve this Doc View Source

    Div(Npp32fc[])

    Divide constant to image. Inplace.

    Declaration
    public void Div(Npp32fc[] nConstant)
    Parameters
    Type Name Description
    Npp32fc[] nConstant

    Value

    | Improve this Doc View Source

    Div(Npp32fc[], NPPImage_32fcC4)

    Divide constant to image.

    Declaration
    public void Div(Npp32fc[] nConstant, NPPImage_32fcC4 dest)
    Parameters
    Type Name Description
    Npp32fc[] nConstant

    Value

    NPPImage_32fcC4 dest

    Destination image

    | Improve this Doc View Source

    Div(NPPImage_32fcC4)

    In place image division.

    Declaration
    public void Div(NPPImage_32fcC4 src2)
    Parameters
    Type Name Description
    NPPImage_32fcC4 src2

    2nd source image

    | Improve this Doc View Source

    Div(NPPImage_32fcC4, NPPImage_32fcC4)

    Image division.

    Declaration
    public void Div(NPPImage_32fcC4 src2, NPPImage_32fcC4 dest)
    Parameters
    Type Name Description
    NPPImage_32fcC4 src2

    2nd source image

    NPPImage_32fcC4 dest

    Destination image

    | Improve this Doc View Source

    DivA(Npp32fc[])

    Divide constant to image. Inplace. Unchanged Alpha.

    Declaration
    public void DivA(Npp32fc[] nConstant)
    Parameters
    Type Name Description
    Npp32fc[] nConstant

    Value

    | Improve this Doc View Source

    DivA(Npp32fc[], NPPImage_32fcC4)

    Divide constant to image. Unchanged Alpha.

    Declaration
    public void DivA(Npp32fc[] nConstant, NPPImage_32fcC4 dest)
    Parameters
    Type Name Description
    Npp32fc[] nConstant

    Value

    NPPImage_32fcC4 dest

    Destination image

    | Improve this Doc View Source

    DivA(NPPImage_32fcC4)

    In place image division. Unchanged Alpha.

    Declaration
    public void DivA(NPPImage_32fcC4 src2)
    Parameters
    Type Name Description
    NPPImage_32fcC4 src2

    2nd source image

    | Improve this Doc View Source

    DivA(NPPImage_32fcC4, NPPImage_32fcC4)

    Image division. Unchanged Alpha.

    Declaration
    public void DivA(NPPImage_32fcC4 src2, NPPImage_32fcC4 dest)
    Parameters
    Type Name Description
    NPPImage_32fcC4 src2

    2nd source image

    NPPImage_32fcC4 dest

    Destination image

    | Improve this Doc View Source

    Finalize()

    For dispose

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

    MaxError(NPPImage_8sC4, CudaDeviceVariable<Double>)

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

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

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    | Improve this Doc View Source

    MaxError(NPPImage_8sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image maximum error.

    Declaration
    public void MaxError(NPPImage_8sC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8sC4 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

    MaximumRelativeError(NPPImage_8sC4, CudaDeviceVariable<Double>)

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

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

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    | Improve this Doc View Source

    MaximumRelativeError(NPPImage_8sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    image maximum relative error.

    Declaration
    public void MaximumRelativeError(NPPImage_8sC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8sC4 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

    Mul(Npp32fc[])

    Multiply constant to image. Inplace.

    Declaration
    public void Mul(Npp32fc[] nConstant)
    Parameters
    Type Name Description
    Npp32fc[] nConstant

    Value

    | Improve this Doc View Source

    Mul(Npp32fc[], NPPImage_32fcC4)

    Multiply constant to image.

    Declaration
    public void Mul(Npp32fc[] nConstant, NPPImage_32fcC4 dest)
    Parameters
    Type Name Description
    Npp32fc[] nConstant

    Value

    NPPImage_32fcC4 dest

    Destination image

    | Improve this Doc View Source

    Mul(NPPImage_32fcC4)

    In place image multiplication.

    Declaration
    public void Mul(NPPImage_32fcC4 src2)
    Parameters
    Type Name Description
    NPPImage_32fcC4 src2

    2nd source image

    | Improve this Doc View Source

    Mul(NPPImage_32fcC4, NPPImage_32fcC4)

    Image multiplication.

    Declaration
    public void Mul(NPPImage_32fcC4 src2, NPPImage_32fcC4 dest)
    Parameters
    Type Name Description
    NPPImage_32fcC4 src2

    2nd source image

    NPPImage_32fcC4 dest

    Destination image

    | Improve this Doc View Source

    MulA(Npp32fc[])

    Multiply constant to image. Inplace. Unchanged Alpha.

    Declaration
    public void MulA(Npp32fc[] nConstant)
    Parameters
    Type Name Description
    Npp32fc[] nConstant

    Value

    | Improve this Doc View Source

    MulA(Npp32fc[], NPPImage_32fcC4)

    Multiply constant to image. Unchanged Alpha.

    Declaration
    public void MulA(Npp32fc[] nConstant, NPPImage_32fcC4 dest)
    Parameters
    Type Name Description
    Npp32fc[] nConstant

    Value

    NPPImage_32fcC4 dest

    Destination image

    | Improve this Doc View Source

    MulA(NPPImage_32fcC4)

    In place image multiplication. Unchanged Alpha.

    Declaration
    public void MulA(NPPImage_32fcC4 src2)
    Parameters
    Type Name Description
    NPPImage_32fcC4 src2

    2nd source image

    | Improve this Doc View Source

    MulA(NPPImage_32fcC4, NPPImage_32fcC4)

    Image multiplication. Unchanged Alpha.

    Declaration
    public void MulA(NPPImage_32fcC4 src2, NPPImage_32fcC4 dest)
    Parameters
    Type Name Description
    NPPImage_32fcC4 src2

    2nd source image

    NPPImage_32fcC4 dest

    Destination image

    | Improve this Doc View Source

    Set(Npp32fc[])

    Set pixel values to nValue.

    Declaration
    public void Set(Npp32fc[] nValue)
    Parameters
    Type Name Description
    Npp32fc[] nValue

    Value to be set (Array size = 4)

    | Improve this Doc View Source

    SetA(Npp32fc[])

    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(Npp32fc[] nValue)
    Parameters
    Type Name Description
    Npp32fc[] nValue

    Value to be set (Array size = 3)

    | Improve this Doc View Source

    Sub(Npp32fc[])

    Subtract constant to image. Inplace.

    Declaration
    public void Sub(Npp32fc[] nConstant)
    Parameters
    Type Name Description
    Npp32fc[] nConstant

    Value to subtract

    | Improve this Doc View Source

    Sub(Npp32fc[], NPPImage_32fcC4)

    Subtract constant to image.

    Declaration
    public void Sub(Npp32fc[] nConstant, NPPImage_32fcC4 dest)
    Parameters
    Type Name Description
    Npp32fc[] nConstant

    Value to subtract

    NPPImage_32fcC4 dest

    Destination image

    | Improve this Doc View Source

    Sub(NPPImage_32fcC4)

    In place image subtraction.

    Declaration
    public void Sub(NPPImage_32fcC4 src2)
    Parameters
    Type Name Description
    NPPImage_32fcC4 src2

    2nd source image

    | Improve this Doc View Source

    Sub(NPPImage_32fcC4, NPPImage_32fcC4)

    Image subtraction.

    Declaration
    public void Sub(NPPImage_32fcC4 src2, NPPImage_32fcC4 dest)
    Parameters
    Type Name Description
    NPPImage_32fcC4 src2

    2nd source image

    NPPImage_32fcC4 dest

    Destination image

    | Improve this Doc View Source

    SubA(Npp32fc[])

    Subtract constant to image. Inplace. Unchanged Alpha.

    Declaration
    public void SubA(Npp32fc[] nConstant)
    Parameters
    Type Name Description
    Npp32fc[] nConstant

    Value to subtract

    | Improve this Doc View Source

    SubA(Npp32fc[], NPPImage_32fcC4)

    Subtract constant to image. Unchanged Alpha.

    Declaration
    public void SubA(Npp32fc[] nConstant, NPPImage_32fcC4 dest)
    Parameters
    Type Name Description
    Npp32fc[] nConstant

    Value to subtract

    NPPImage_32fcC4 dest

    Destination image

    | Improve this Doc View Source

    SubA(NPPImage_32fcC4)

    In place image subtraction. Unchanged Alpha.

    Declaration
    public void SubA(NPPImage_32fcC4 src2)
    Parameters
    Type Name Description
    NPPImage_32fcC4 src2

    2nd source image

    | Improve this Doc View Source

    SubA(NPPImage_32fcC4, NPPImage_32fcC4)

    Image subtraction. Unchanged Alpha.

    Declaration
    public void SubA(NPPImage_32fcC4 src2, NPPImage_32fcC4 dest)
    Parameters
    Type Name Description
    NPPImage_32fcC4 src2

    2nd source image

    NPPImage_32fcC4 dest

    Destination image

    Implements

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