Show / Hide Table of Contents

    Class NPPImage_8sC4

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

    Constructors

    | Improve this Doc View Source

    NPPImage_8sC4(CUdeviceptr, NppiSize, Int32)

    Creates a new NPPImage from allocated device ptr.

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

    Creates a new NPPImage from allocated device ptr.

    Declaration
    public NPPImage_8sC4(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_8sC4(CUdeviceptr, Int32, Int32, Int32)

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

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

    Creates a new NPPImage from allocated device ptr.

    Declaration
    public NPPImage_8sC4(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_8sC4(NPPImageBase)

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

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

    NPP image

    | Improve this Doc View Source

    NPPImage_8sC4(NppiSize)

    Allocates new memory on device using NPP-Api.

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

    Image size

    | Improve this Doc View Source

    NPPImage_8sC4(Int32, Int32)

    Allocates new memory on device using NPP-Api.

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

    ADotProdGetBufferHostSize()

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

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

    ADotProduct(NPPImage_8sC4, CudaDeviceVariable<Double>)

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

    Declaration
    public void ADotProduct(NPPImage_8sC4 src2, CudaDeviceVariable<double> pDp)
    Parameters
    Type Name Description
    NPPImage_8sC4 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_8sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

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

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

    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

    ColorTwist(NPPImage_8sC4, Single[,])

    4 channel 8-bit signed color twist, with alpha copy.

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

    Alpha channel is the last channel and is copied unmodified from the source pixel to the destination pixel.

    Declaration
    public void ColorTwist(NPPImage_8sC4 dest, float[, ] twistMatrix)
    Parameters
    Type Name Description
    NPPImage_8sC4 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 signed in place color twist, not affecting Alpha.

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

    Alpha channel is the last channel and is unmodified.

    Declaration
    public 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_8sC4, 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_8sC4 dest, float[, ] twistMatrix)
    Parameters
    Type Name Description
    NPPImage_8sC4 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

    Convert(NPPImage_32fC4)

    8-bit signed 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 signed 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_32fC4)

    8-bit signed to 32-bit floating point conversion, not affecting Alpha.

    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 signed to 32-bit signed conversion, not affecting Alpha.

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

    Destination image

    | Improve this Doc View Source

    Copy(NPPImage_8sC4)

    Image copy.

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

    Destination image

    | Improve this Doc View Source

    CopyA(NPPImage_8sC4)

    Image copy. Not affecting Alpha channel.

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

    Destination image

    | Improve this Doc View Source

    CrossCorrFull_Norm(NPPImage_8sC4, NPPImage_32fC4)

    image CrossCorrFull_Norm.

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

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    CrossCorrFull_NormA(NPPImage_8sC4, NPPImage_32fC4)

    image CrossCorrFull_Norm. Not affecting Alpha.

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

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    CrossCorrFull_NormLevel(NPPImage_8sC4, NPPImage_32fC4)

    CrossCorrFull_NormLevel. Buffer is internally allocated and freed.

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

    template image.

    NPPImage_32fC4 dst

    Destination image

    | Improve this Doc View Source

    CrossCorrFull_NormLevel(NPPImage_8sC4, NPPImage_32fC4, CudaDeviceVariable<Byte>)

    CrossCorrFull_NormLevel.

    Declaration
    public void CrossCorrFull_NormLevel(NPPImage_8sC4 tpl, NPPImage_32fC4 dst, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8sC4 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_NormLevelA(NPPImage_8sC4, NPPImage_32fC4)

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

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

    template image.

    NPPImage_32fC4 dst

    Destination image

    | Improve this Doc View Source

    CrossCorrFull_NormLevelA(NPPImage_8sC4, NPPImage_32fC4, CudaDeviceVariable<Byte>)

    CrossCorrFull_NormLevel. Not affecting Alpha.

    Declaration
    public void CrossCorrFull_NormLevelA(NPPImage_8sC4 tpl, NPPImage_32fC4 dst, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8sC4 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

    CrossCorrSame_Norm(NPPImage_8sC4, NPPImage_32fC4)

    image CrossCorrSame_Norm.

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

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    CrossCorrSame_NormA(NPPImage_8sC4, NPPImage_32fC4)

    image CrossCorrSame_Norm. Not affecting Alpha.

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

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    CrossCorrSame_NormLevel(NPPImage_8sC4, NPPImage_32fC4)

    CrossCorrSame_NormLevel. Buffer is internally allocated and freed.

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

    template image.

    NPPImage_32fC4 dst

    Destination image

    | Improve this Doc View Source

    CrossCorrSame_NormLevel(NPPImage_8sC4, NPPImage_32fC4, CudaDeviceVariable<Byte>)

    CrossCorrSame_NormLevel.

    Declaration
    public void CrossCorrSame_NormLevel(NPPImage_8sC4 tpl, NPPImage_32fC4 dst, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8sC4 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_NormLevelA(NPPImage_8sC4, NPPImage_32fC4)

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

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

    template image.

    NPPImage_32fC4 dst

    Destination image

    | Improve this Doc View Source

    CrossCorrSame_NormLevelA(NPPImage_8sC4, NPPImage_32fC4, CudaDeviceVariable<Byte>)

    CrossCorrSame_NormLevel. Not affecting Alpha.

    Declaration
    public void CrossCorrSame_NormLevelA(NPPImage_8sC4 tpl, NPPImage_32fC4 dst, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8sC4 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

    CrossCorrValid_Norm(NPPImage_8sC4, NPPImage_32fC4)

    image CrossCorrValid_Norm.

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

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    CrossCorrValid_NormA(NPPImage_8sC4, NPPImage_32fC4)

    image CrossCorrValid_Norm. Not affecting Alpha.

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

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    CrossCorrValid_NormLevel(NPPImage_8sC4, NPPImage_32fC4)

    CrossCorrValid_NormLevel. Buffer is internally allocated and freed.

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

    template image.

    NPPImage_32fC4 dst

    Destination image

    | Improve this Doc View Source

    CrossCorrValid_NormLevel(NPPImage_8sC4, NPPImage_32fC4, CudaDeviceVariable<Byte>)

    CrossCorrValid_NormLevel.

    Declaration
    public void CrossCorrValid_NormLevel(NPPImage_8sC4 tpl, NPPImage_32fC4 dst, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8sC4 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_NormLevelA(NPPImage_8sC4, NPPImage_32fC4)

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

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

    template image.

    NPPImage_32fC4 dst

    Destination image

    | Improve this Doc View Source

    CrossCorrValid_NormLevelA(NPPImage_8sC4, NPPImage_32fC4, CudaDeviceVariable<Byte>)

    CrossCorrValid_NormLevel. Not affecting Alpha.

    Declaration
    public void CrossCorrValid_NormLevelA(NPPImage_8sC4 tpl, NPPImage_32fC4 dst, CudaDeviceVariable<byte> buffer)
    Parameters
    Type Name Description
    NPPImage_8sC4 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

    DotProdGetBufferHostSize()

    Device scratch buffer size (in bytes) for nppiDotProd_8s64f_C4R.

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

    DotProduct(NPPImage_8sC4, CudaDeviceVariable<Double>)

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

    Declaration
    public void DotProduct(NPPImage_8sC4 src2, CudaDeviceVariable<double> pDp)
    Parameters
    Type Name Description
    NPPImage_8sC4 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_8sC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)

    Four-channel 8-bit signed image DotProd.

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

    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_8sC4, CudaDeviceVariable<Single>, NppiSize, NppiPoint)

    convolution filter.

    Declaration
    public void Filter(NPPImage_8sC4 dst, CudaDeviceVariable<float> pKernel, NppiSize oKernelSize, NppiPoint oAnchor)
    Parameters
    Type Name Description
    NPPImage_8sC4 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_8sC4, CudaDeviceVariable<Single>, NppiSize, NppiPoint)

    convolution filter. Not affecting Alpha.

    Declaration
    public void FilterA(NPPImage_8sC4 dst, CudaDeviceVariable<float> pKernel, NppiSize oKernelSize, NppiPoint oAnchor)
    Parameters
    Type Name Description
    NPPImage_8sC4 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 signed 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<Single>, NppiSize, NppiPoint, NppiBorderType)

    Four channel 8-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_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 signed 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_8sC4, CudaDeviceVariable<Single>, NppiSize, NppiPoint, NppiBorderType)

    Four channel 8-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_8sC4 dest, CudaDeviceVariable<float> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8sC4 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

    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

    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

    RShiftC(UInt32[])

    image bit shift by constant (right), inplace.

    Declaration
    public void RShiftC(uint[] nConstant)
    Parameters
    Type Name Description
    System.UInt32[] nConstant

    Constant

    | Improve this Doc View Source

    RShiftC(UInt32[], NPPImage_8sC4)

    image bit shift by constant (right).

    Declaration
    public void RShiftC(uint[] nConstant, NPPImage_8sC4 dest)
    Parameters
    Type Name Description
    System.UInt32[] nConstant

    Constant

    NPPImage_8sC4 dest

    Destination image

    | Improve this Doc View Source

    RShiftCA(UInt32[])

    image bit shift by constant (right), inplace. Not affecting Alpha channel.

    Declaration
    public void RShiftCA(uint[] nConstant)
    Parameters
    Type Name Description
    System.UInt32[] nConstant

    Constant

    | Improve this Doc View Source

    RShiftCA(UInt32[], NPPImage_8sC4)

    image bit shift by constant (right). Not affecting Alpha channel.

    Declaration
    public void RShiftCA(uint[] nConstant, NPPImage_8sC4 dest)
    Parameters
    Type Name Description
    System.UInt32[] nConstant

    Constant

    NPPImage_8sC4 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

    Set(SByte[])

    Set pixel values to nValue.

    Declaration
    public void Set(sbyte[] nValue)
    Parameters
    Type Name Description
    System.SByte[] nValue

    Value to be set

    | Improve this Doc View Source

    SetA(SByte[])

    Set pixel values to nValue. Not affecting Alpha channel.

    Declaration
    public void SetA(sbyte[] nValue)
    Parameters
    Type Name Description
    System.SByte[] nValue

    Value to be set

    | Improve this Doc View Source

    SqrDistanceFull_Norm(NPPImage_8sC4, NPPImage_32fC4)

    image SqrDistanceFull_Norm.

    Declaration
    public void SqrDistanceFull_Norm(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8sC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    SqrDistanceFull_NormA(NPPImage_8sC4, NPPImage_32fC4)

    image SqrDistanceFull_Norm. Not affecting Alpha.

    Declaration
    public void SqrDistanceFull_NormA(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8sC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    SqrDistanceSame_Norm(NPPImage_8sC4, NPPImage_32fC4)

    image SqrDistanceSame_Norm.

    Declaration
    public void SqrDistanceSame_Norm(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8sC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    SqrDistanceSame_NormA(NPPImage_8sC4, NPPImage_32fC4)

    image SqrDistanceSame_Norm. Not affecting Alpha.

    Declaration
    public void SqrDistanceSame_NormA(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8sC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    SqrDistanceValid_Norm(NPPImage_8sC4, NPPImage_32fC4)

    image SqrDistanceValid_Norm.

    Declaration
    public void SqrDistanceValid_Norm(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8sC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    SqrDistanceValid_NormA(NPPImage_8sC4, NPPImage_32fC4)

    image SqrDistanceValid_Norm. Not affecting Alpha.

    Declaration
    public void SqrDistanceValid_NormA(NPPImage_8sC4 tpl, NPPImage_32fC4 dst)
    Parameters
    Type Name Description
    NPPImage_8sC4 tpl

    template image.

    NPPImage_32fC4 dst

    Destination-Image

    | Improve this Doc View Source

    ToCudaPitchedDeviceVariable()

    Converts a NPPImage to a CudaPitchedDeviceVariable

    Declaration
    public CudaPitchedDeviceVariable<char4> ToCudaPitchedDeviceVariable()
    Returns
    Type Description
    CudaPitchedDeviceVariable<char4>
    | 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

    Operators

    | Improve this Doc View Source

    Implicit(CudaPitchedDeviceVariable<char4> to NPPImage_8sC4)

    Converts a CudaPitchedDeviceVariable to a NPPImage

    Declaration
    public static implicit operator NPPImage_8sC4(CudaPitchedDeviceVariable<char4> img)
    Parameters
    Type Name Description
    CudaPitchedDeviceVariable<char4> img

    CudaPitchedDeviceVariable

    Returns
    Type Description
    NPPImage_8sC4

    NPPImage with the same device pointer and size of CudaPitchedDeviceVariable with ROI set to full image

    | Improve this Doc View Source

    Implicit(NPPImage_8sC4 to CudaPitchedDeviceVariable<char4>)

    Converts a NPPImage to a CudaPitchedDeviceVariable

    Declaration
    public static implicit operator CudaPitchedDeviceVariable<char4>(NPPImage_8sC4 img)
    Parameters
    Type Name Description
    NPPImage_8sC4 img

    NPPImage

    Returns
    Type Description
    CudaPitchedDeviceVariable<char4>

    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