Show / Hide Table of Contents

    Class NPPImage_32uC1

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

    Constructors

    | Improve this Doc View Source

    NPPImage_32uC1(CUdeviceptr, NppiSize, Int32)

    Creates a new NPPImage from allocated device ptr.

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

    Creates a new NPPImage from allocated device ptr.

    Declaration
    public NPPImage_32uC1(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_32uC1(CUdeviceptr, Int32, Int32, Int32)

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

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

    Creates a new NPPImage from allocated device ptr.

    Declaration
    public NPPImage_32uC1(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_32uC1(NPPImageBase)

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

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

    NPP image

    | Improve this Doc View Source

    NPPImage_32uC1(NppiSize)

    Allocates new memory on device using NPP-Api.

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

    Image size

    | Improve this Doc View Source

    NPPImage_32uC1(Int32, Int32)

    Allocates new memory on device using NPP-Api.

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

    AlphaComp(UInt32, NPPImage_32uC1, UInt16, NPPImage_32uC1, NppiAlphaOp)

    Image composition using constant alpha.

    Declaration
    public void AlphaComp(uint alpha1, NPPImage_32uC1 src2, ushort alpha2, NPPImage_32uC1 dest, NppiAlphaOp nppAlphaOp)
    Parameters
    Type Name Description
    System.UInt32 alpha1

    constant alpha for this image

    NPPImage_32uC1 src2

    2nd source image

    System.UInt16 alpha2

    constant alpha for src2

    NPPImage_32uC1 dest

    Destination image

    NppiAlphaOp nppAlphaOp

    alpha compositing operation

    | Improve this Doc View Source

    AverageError(NPPImage_32uC1, CudaDeviceVariable<Double>)

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

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

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    | Improve this Doc View Source

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

    image average error.

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

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

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

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    | Improve this Doc View Source

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

    image average relative error.

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

    BoundSegments(UInt32)

    1 channel 32-bit unsigned integer in place region boundary border image generation.

    Declaration
    public void BoundSegments(uint nBorderVal)
    Parameters
    Type Name Description
    System.UInt32 nBorderVal

    Pixel value to be used at connected region boundary borders

    | Improve this Doc View Source

    CompressMarkerLabels(NPPImage_8uC1, Int32, CudaDeviceVariable<Byte>)

    1 channel 32-bit unsigned integer to 8-bit unsigned integer connected region marker label renumbering with numbering sparseness elimination.

    Declaration
    public int CompressMarkerLabels(NPPImage_8uC1 dest, int nStartingNumber, CudaDeviceVariable<byte> pBuffer)
    Parameters
    Type Name Description
    NPPImage_8uC1 dest

    Destination-Image

    System.Int32 nStartingNumber

    The value returned from a previous call to the nppiLabelMarkers_8u32u function.

    CudaDeviceVariable<System.Byte> pBuffer

    Pointer to device memory scratch buffer at least as large as value returned by the corresponding CompressMarkerLabelsGetBufferSize call.

    Returns
    Type Description
    System.Int32

    the maximum renumbered marker label ID will be returned.

    | Improve this Doc View Source

    CompressMarkerLabels(Int32, CudaDeviceVariable<Byte>)

    1 channel 32-bit unsigned integer in place connected region marker label renumbering with numbering sparseness elimination.

    Declaration
    public int CompressMarkerLabels(int nStartingNumber, CudaDeviceVariable<byte> pBuffer)
    Parameters
    Type Name Description
    System.Int32 nStartingNumber

    The value returned from a previous call to the nppiLabelMarkers_8u32u function.

    CudaDeviceVariable<System.Byte> pBuffer

    Pointer to device memory scratch buffer at least as large as value returned by the corresponding CompressMarkerLabelsGetBufferSize call.

    Returns
    Type Description
    System.Int32

    the maximum renumbered marker label ID will be returned.

    | Improve this Doc View Source

    CompressMarkerLabelsGetBufferSize(Int32)

    Calculate scratch buffer size needed for 1 channel 32-bit unsigned integer CompressMarkerLabels function based on the number returned in pNumber from a previous nppiLabelMarkers call.

    Declaration
    public int CompressMarkerLabelsGetBufferSize(int nStartingNumber)
    Parameters
    Type Name Description
    System.Int32 nStartingNumber

    The value returned from a previous call to the nppiLabelMarkers_32u function.

    Returns
    Type Description
    System.Int32

    Required buffer size in bytes.

    | Improve this Doc View Source

    CompressMarkerLabelsGetBufferSize32u8u(Int32)

    Calculate scratch buffer size needed for 1 channel 32-bit unsigned integer to 8-bit unsigned integer CompressMarkerLabels function based on the number returned in pNumber from a previous nppiLabelMarkers call.

    Declaration
    public int CompressMarkerLabelsGetBufferSize32u8u(int nStartingNumber)
    Parameters
    Type Name Description
    System.Int32 nStartingNumber

    The value returned from a previous call to the nppiLabelMarkers_8u32u function.

    Returns
    Type Description
    System.Int32

    Required buffer size in bytes.

    | Improve this Doc View Source

    Convert(NPPImage_16sC1, NppRoundMode, Int32)

    32-bit unsigned to 16-bit signed conversion.

    Declaration
    public void Convert(NPPImage_16sC1 dst, NppRoundMode roundMode, int scaleFactor)
    Parameters
    Type Name Description
    NPPImage_16sC1 dst

    Destination image

    NppRoundMode roundMode

    Round mode

    System.Int32 scaleFactor

    scaling factor

    | Improve this Doc View Source

    Convert(NPPImage_16uC1, NppRoundMode, Int32)

    32-bit unsigned to 16-bit unsigned conversion.

    Declaration
    public void Convert(NPPImage_16uC1 dst, NppRoundMode roundMode, int scaleFactor)
    Parameters
    Type Name Description
    NPPImage_16uC1 dst

    Destination image

    NppRoundMode roundMode

    Round mode

    System.Int32 scaleFactor

    scaling factor

    | Improve this Doc View Source

    Convert(NPPImage_32fC1)

    32-bit unsigned to 32-bit float conversion.

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

    Destination image

    | Improve this Doc View Source

    Convert(NPPImage_32sC1, NppRoundMode, Int32)

    32-bit unsigned to 32-bit signed conversion.

    Declaration
    public void Convert(NPPImage_32sC1 dst, NppRoundMode roundMode, int scaleFactor)
    Parameters
    Type Name Description
    NPPImage_32sC1 dst

    Destination image

    NppRoundMode roundMode

    Round mode

    System.Int32 scaleFactor

    scaling factor

    | Improve this Doc View Source

    Convert(NPPImage_8sC1, NppRoundMode, Int32)

    32-bit unsigned to 8-bit signed conversion.

    Declaration
    public void Convert(NPPImage_8sC1 dst, NppRoundMode roundMode, int scaleFactor)
    Parameters
    Type Name Description
    NPPImage_8sC1 dst

    Destination image

    NppRoundMode roundMode

    Round mode

    System.Int32 scaleFactor

    scaling factor

    | Improve this Doc View Source

    Convert(NPPImage_8uC1, NppRoundMode, Int32)

    32-bit unsigned to 8-bit unsigned conversion.

    Declaration
    public void Convert(NPPImage_8uC1 dst, NppRoundMode roundMode, int scaleFactor)
    Parameters
    Type Name Description
    NPPImage_8uC1 dst

    Destination image

    NppRoundMode roundMode

    Round mode

    System.Int32 scaleFactor

    scaling factor

    | Improve this Doc View Source

    DotProdGetBufferHostSize()

    Device scratch buffer size (in bytes) for nppiDotProd_32u64f_C1R.

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

    DotProduct(NPPImage_32uC1, CudaDeviceVariable<Double>)

    One-channel 32-bit unsigned image DotProd. Buffer is internally allocated and freed.

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

    2nd source image

    CudaDeviceVariable<System.Double> pDp

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

    | Improve this Doc View Source

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

    One-channel 32-bit unsigned image DotProd.

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

    2nd source image

    CudaDeviceVariable<System.Double> pDp

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

    CudaDeviceVariable<System.Byte> buffer

    Allocated device memory with size of at DotProdGetBufferHostSize()

    | Improve this Doc View Source

    Finalize()

    For dispose

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

    MaxError(NPPImage_32uC1, CudaDeviceVariable<Double>)

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

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

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    | Improve this Doc View Source

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

    image maximum error.

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

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

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

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    | Improve this Doc View Source

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

    image maximum relative error.

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

    Set(UInt32)

    Set pixel values to nValue.

    Declaration
    public void Set(uint nValue)
    Parameters
    Type Name Description
    System.UInt32 nValue

    Value to be set

    | Improve this Doc View Source

    ToCudaPitchedDeviceVariable()

    Converts a NPPImage to a CudaPitchedDeviceVariable

    Declaration
    public CudaPitchedDeviceVariable<uint> ToCudaPitchedDeviceVariable()
    Returns
    Type Description
    CudaPitchedDeviceVariable<System.UInt32>

    Operators

    | Improve this Doc View Source

    Implicit(CudaPitchedDeviceVariable<UInt32> to NPPImage_32uC1)

    Converts a CudaPitchedDeviceVariable to a NPPImage

    Declaration
    public static implicit operator NPPImage_32uC1(CudaPitchedDeviceVariable<uint> img)
    Parameters
    Type Name Description
    CudaPitchedDeviceVariable<System.UInt32> img

    CudaPitchedDeviceVariable

    Returns
    Type Description
    NPPImage_32uC1

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

    | Improve this Doc View Source

    Implicit(NPPImage_32uC1 to CudaPitchedDeviceVariable<UInt32>)

    Converts a NPPImage to a CudaPitchedDeviceVariable

    Declaration
    public static implicit operator CudaPitchedDeviceVariable<uint>(NPPImage_32uC1 img)
    Parameters
    Type Name Description
    NPPImage_32uC1 img

    NPPImage

    Returns
    Type Description
    CudaPitchedDeviceVariable<System.UInt32>

    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