Show / Hide Table of Contents

    Class NPPImage_8uC2

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

    Constructors

    | Improve this Doc View Source

    NPPImage_8uC2(CUdeviceptr, NppiSize, Int32)

    Creates a new NPPImage from allocated device ptr.

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

    Creates a new NPPImage from allocated device ptr.

    Declaration
    public NPPImage_8uC2(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_8uC2(CUdeviceptr, Int32, Int32, Int32)

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

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

    Creates a new NPPImage from allocated device ptr.

    Declaration
    public NPPImage_8uC2(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_8uC2(NPPImageBase)

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

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

    NPP image

    | Improve this Doc View Source

    NPPImage_8uC2(NppiSize)

    Allocates new memory on device using NPP-Api.

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

    Image size

    | Improve this Doc View Source

    NPPImage_8uC2(Int32, Int32)

    Allocates new memory on device using NPP-Api.

    Declaration
    public NPPImage_8uC2(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(NPPImage_8uC2, NPPImage_8uC2, NppiAlphaOp)

    Image composition using image alpha values (0 - max channel pixel value).

    Also the function is called *AC1R, it is a two channel image with second channel as alpha.

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

    2nd source image

    NPPImage_8uC2 dest

    Destination image

    NppiAlphaOp nppAlphaOp

    alpha compositing operation

    | Improve this Doc View Source

    AverageError(NPPImage_8uC2, CudaDeviceVariable<Double>)

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

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

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    | Improve this Doc View Source

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

    image average error.

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

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

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

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    | Improve this Doc View Source

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

    image average relative error.

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

    CbYCr422ToBGR_709HDTV(NPPImage_8uC3)

    2 channel 8-bit unsigned packed CbYCr422 to 3 channel 8-bit unsigned packed BGR_709HDTV color conversion. images.

    Declaration
    public void CbYCr422ToBGR_709HDTV(NPPImage_8uC3 dest)
    Parameters
    Type Name Description
    NPPImage_8uC3 dest

    Destination image

    | Improve this Doc View Source

    CbYCr422ToBGR_709HDTV(NPPImage_8uC4, Byte)

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

    Declaration
    public void CbYCr422ToBGR_709HDTV(NPPImage_8uC4 dest, byte nAval)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Byte nAval

    8-bit unsigned alpha constant.

    | Improve this Doc View Source

    CbYCr422ToRGB(NPPImage_8uC3)

    2 channel 8-bit unsigned packed CbYCrC22 to 3 channel 8-bit unsigned packed RGB color conversion. images.

    Declaration
    public void CbYCr422ToRGB(NPPImage_8uC3 dest)
    Parameters
    Type Name Description
    NPPImage_8uC3 dest

    Destination image

    | Improve this Doc View Source

    CbYCr422ToYCbCr411(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned packed CbYCr422 to 3 channel 8-bit unsigned planar YCbCr411 sampling format conversion.

    Declaration
    public void CbYCr422ToYCbCr411(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

    CbYCr422ToYCbCr420(NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned packed CbYCr422 to 2 channel 8-bit unsigned planar YCbCr420 sampling format conversion.

    Declaration
    public void CbYCr422ToYCbCr420(NPPImage_8uC1 destY, NPPImage_8uC1 destCbCr)
    Parameters
    Type Name Description
    NPPImage_8uC1 destY

    Destination image channel 0

    NPPImage_8uC1 destCbCr

    Destination image channel 1

    | Improve this Doc View Source

    CbYCr422ToYCbCr420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned packed CbYCr422 to 3 channel 8-bit unsigned planar YCbCr420 sampling format conversion.

    Declaration
    public void CbYCr422ToYCbCr420(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

    CbYCr422ToYCbCr420(NPPImage_8uC4, Byte)

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

    Declaration
    public void CbYCr422ToYCbCr420(NPPImage_8uC4 dest, byte nAval)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Byte nAval

    8-bit unsigned alpha constant.

    | Improve this Doc View Source

    CbYCr422ToYCbCr422(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned packed CbYCr422 to 3 channel 8-bit unsigned planar YCbCr422 sampling format conversion.

    Declaration
    public void CbYCr422ToYCbCr422(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

    CbYCr422ToYCbCr422(NPPImage_8uC2)

    2 channel 8-bit unsigned packed CbYCr422 to 2 channel 8-bit unsigned packed YCbCr422 sampling format conversion. images.

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

    Destination image

    | Improve this Doc View Source

    CbYCr422ToYCrCb420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned packed CbYCr422 to 3 channel 8-bit unsigned planar YCrCb420 sampling format conversion.

    Declaration
    public void CbYCr422ToYCrCb420(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

    ColorTwist(NPPImage_8uC2, Single[,])

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

    Declaration
    public void ColorTwist(NPPImage_8uC2 dest, float[, ] twistMatrix)
    Parameters
    Type Name Description
    NPPImage_8uC2 dest

    Destination image

    System.Single[,] twistMatrix

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

    | Improve this Doc View Source

    ColorTwist(Single[,])

    in place color twist.

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

    Declaration
    public void ColorTwist(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

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

    convolution filter.

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

    Two 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_8uC2 dest, CudaDeviceVariable<float> pKernel, NppiSize nKernelSize, NppiPoint oAnchor, NppiBorderType eBorderType)
    Parameters
    Type Name Description
    NPPImage_8uC2 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

    MaxError(NPPImage_8uC2, CudaDeviceVariable<Double>)

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

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

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    | Improve this Doc View Source

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

    image maximum error.

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

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

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

    2nd source image

    CudaDeviceVariable<System.Double> pError

    Pointer to the computed error.

    | Improve this Doc View Source

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

    image maximum relative error.

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

    NV12ToYUV420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned planar NV12 to 3 channel 8-bit unsigned planar YUV420 color conversion.

    Declaration
    public static void NV12ToYUV420(NPPImage_8uC1 src0, NPPImage_8uC1 src1, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 src0

    Source image (Channel 0)

    NPPImage_8uC1 src1

    Source image (Channel 1)

    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

    NV21ToBGR(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC2)

    2 channel 8-bit unsigned planar NV21 to 4 channel 8-bit unsigned packed BGRA color conversion with constant alpha (0xFF).

    Declaration
    public static void NV21ToBGR(NPPImage_8uC1 srcY, NPPImage_8uC1 srcVU, NPPImage_8uC2 dest)
    Parameters
    Type Name Description
    NPPImage_8uC1 srcY

    Source image channel Y

    NPPImage_8uC1 srcVU

    Source image channel VU

    NPPImage_8uC2 dest

    Destination image

    | Improve this Doc View Source

    NV21ToRGB(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC2)

    2 channel 8-bit unsigned planar NV21 to 4 channel 8-bit unsigned packed ARGB color conversion with constant alpha (0xFF).

    Declaration
    public static void NV21ToRGB(NPPImage_8uC1 srcY, NPPImage_8uC1 srcVU, NPPImage_8uC2 dest)
    Parameters
    Type Name Description
    NPPImage_8uC1 srcY

    Source image channel Y

    NPPImage_8uC1 srcVU

    Source image channel VU

    NPPImage_8uC2 dest

    Destination image

    | 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

    | Improve this Doc View Source

    ToCudaPitchedDeviceVariable()

    Converts a NPPImage to a CudaPitchedDeviceVariable

    Declaration
    public CudaPitchedDeviceVariable<uchar2> ToCudaPitchedDeviceVariable()
    Returns
    Type Description
    CudaPitchedDeviceVariable<uchar2>
    | Improve this Doc View Source

    YCbCr411(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned planar YCbCr411 to 3 channel 8-bit unsigned planar YCbCr411 sampling format conversion.

    Declaration
    public static void YCbCr411(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 srcY

    Source image channel Y

    NPPImage_8uC1 srcCbCr

    Source image channel CbCr

    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

    YCbCr411ToYCbCr420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned planar YCbCr411 to 3 channel 8-bit unsigned planar YCbCr420 sampling format conversion.

    Declaration
    public static void YCbCr411ToYCbCr420(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 srcY

    Source image channel Y

    NPPImage_8uC1 srcCbCr

    Source image channel CbCr

    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

    YCbCr411ToYCbCr422(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned planar YCbCr411 to 3 channel 8-bit unsigned planar YCbCr422 sampling format conversion.

    Declaration
    public static void YCbCr411ToYCbCr422(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 srcY

    Source image channel Y

    NPPImage_8uC1 srcCbCr

    Source image channel CbCr

    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

    YCbCr411ToYCbCr422(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC2)

    2 channel 8-bit unsigned planar YCbCr411 to 2 channel 8-bit unsigned packed YCbCr422 sampling format conversion.

    Declaration
    public static void YCbCr411ToYCbCr422(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC2 dest)
    Parameters
    Type Name Description
    NPPImage_8uC1 srcY

    Source image channel Y

    NPPImage_8uC1 srcCbCr

    Source image channel CbCr

    NPPImage_8uC2 dest

    Destination image

    | Improve this Doc View Source

    YCbCr411ToYCrCb420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned planar YCbCr411 to 3 channel 8-bit unsigned planar YCrCb420 sampling format conversion.

    Declaration
    public static void YCbCr411ToYCrCb420(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 srcY

    Source image channel Y

    NPPImage_8uC1 srcCbCr

    Source image channel CbCr

    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

    YCbCr420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned planar YCbCr420 to 3 channel 8-bit unsigned planar YCbCr420 sampling format conversion.

    Declaration
    public static void YCbCr420(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 srcY

    Source image channel Y

    NPPImage_8uC1 srcCbCr

    Source image channel CbCr

    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

    YCbCr420ToCbYCr422(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC2)

    2 channel 8-bit unsigned planar YCbCr420 to 2 channel 8-bit unsigned packed CbYCr422 sampling format conversion.

    Declaration
    public static void YCbCr420ToCbYCr422(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC2 dest)
    Parameters
    Type Name Description
    NPPImage_8uC1 srcY

    Source image channel Y

    NPPImage_8uC1 srcCbCr

    Source image channel CbCr

    NPPImage_8uC2 dest

    Destination image

    | Improve this Doc View Source

    YCbCr420ToYCbCr411(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned planar YCbCr420 to 3 channel 8-bit unsigned planar YCbCr411 sampling format conversion.

    Declaration
    public static void YCbCr420ToYCbCr411(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 srcY

    Source image channel Y

    NPPImage_8uC1 srcCbCr

    Source image channel CbCr

    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

    YCbCr420ToYCbCr422(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned planar YCbCr420 to 3 channel 8-bit unsigned planar YCbCr422 sampling format conversion.

    Declaration
    public static void YCbCr420ToYCbCr422(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 srcY

    Source image channel Y

    NPPImage_8uC1 srcCbCr

    Source image channel CbCr

    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

    YCbCr420ToYCbCr422(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC2)

    2 channel 8-bit unsigned planar YCbCr420 to 2 channel 8-bit unsigned packed YCbCr422 sampling format conversion.

    Declaration
    public static void YCbCr420ToYCbCr422(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC2 dest)
    Parameters
    Type Name Description
    NPPImage_8uC1 srcY

    Source image channel Y

    NPPImage_8uC1 srcCbCr

    Source image channel CbCr

    NPPImage_8uC2 dest

    Destination image

    | Improve this Doc View Source

    YCbCr420ToYCrCb420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned planar YCbCr420 to 3 channel 8-bit unsigned planar YCrCb420 sampling format conversion.

    Declaration
    public static void YCbCr420ToYCrCb420(NPPImage_8uC1 srcY, NPPImage_8uC1 srcCbCr, NPPImage_8uC1 dest0, NPPImage_8uC1 dest1, NPPImage_8uC1 dest2)
    Parameters
    Type Name Description
    NPPImage_8uC1 srcY

    Source image channel Y

    NPPImage_8uC1 srcCbCr

    Source image channel CbCr

    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

    YCbCr422(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned packed YCbCr422 to 3 channel 8-bit unsigned planar YCbCr422 sampling format conversion.

    Declaration
    public void YCbCr422(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

    YCbCr422ToBGR(NPPImage_8uC3)

    2 channel 8-bit unsigned packed YCrCb422 to 3 channel 8-bit unsigned packed BGR color conversion. images.

    Declaration
    public void YCbCr422ToBGR(NPPImage_8uC3 dest)
    Parameters
    Type Name Description
    NPPImage_8uC3 dest

    Destination image

    | Improve this Doc View Source

    YCbCr422ToBGR(NPPImage_8uC4, Byte)

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

    Declaration
    public void YCbCr422ToBGR(NPPImage_8uC4 dest, byte nAval)
    Parameters
    Type Name Description
    NPPImage_8uC4 dest

    Destination image

    System.Byte nAval

    8-bit unsigned alpha constant.

    | Improve this Doc View Source

    YCbCr422ToCbYCr422(NPPImage_8uC2)

    2 channel 8-bit unsigned packed YCbCr422 to 2 channel 8-bit unsigned packed CbYCr422 sampling format conversion. images.

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

    Destination image

    | Improve this Doc View Source

    YCbCr422ToRGB(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned packed YCbCr422 to 3 channel 8-bit unsigned planar RGB color conversion.

    Declaration
    public void YCbCr422ToRGB(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

    YCbCr422ToRGB(NPPImage_8uC3)

    2 channel 8-bit unsigned YCbCr422 to 3 channel packed RGB color conversion. images.

    Declaration
    public void YCbCr422ToRGB(NPPImage_8uC3 dest)
    Parameters
    Type Name Description
    NPPImage_8uC3 dest

    estination image

    | Improve this Doc View Source

    YCbCr422ToYCbCr411(NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned packed YCbCr422 to 2 channel 8-bit unsigned planar YCbCr411 sampling format conversion.

    Declaration
    public void YCbCr422ToYCbCr411(NPPImage_8uC1 destY, NPPImage_8uC1 destCbCr)
    Parameters
    Type Name Description
    NPPImage_8uC1 destY

    Destination image channel 0

    NPPImage_8uC1 destCbCr

    Destination image channel 1

    | Improve this Doc View Source

    YCbCr422ToYCbCr411(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned packed YCbCr422 to 3 channel 8-bit unsigned planar YCbCr411 sampling format conversion.

    Declaration
    public void YCbCr422ToYCbCr411(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

    YCbCr422ToYCbCr420(NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned packed YCbCr422 to 2 channel 8-bit unsigned planar YCbCr420 sampling format conversion.

    Declaration
    public void YCbCr422ToYCbCr420(NPPImage_8uC1 destY, NPPImage_8uC1 destCbCr)
    Parameters
    Type Name Description
    NPPImage_8uC1 destY

    Destination image channel 0

    NPPImage_8uC1 destCbCr

    Destination image channel 1

    | Improve this Doc View Source

    YCbCr422ToYCbCr420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned packed YCbCr422 to 3 channel 8-bit unsigned planar YCbCr420 sampling format conversion.

    Declaration
    public void YCbCr422ToYCbCr420(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

    YCbCr422ToYCrCb420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned packed YCbCr422 to 3 channel 8-bit unsigned planar YCrCb420 sampling format conversion.

    Declaration
    public void YCbCr422ToYCrCb420(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

    YCbCr422ToYCrCb422(NPPImage_8uC2)

    2 channel 8-bit unsigned packed YCbCr422 to 2 channel 8-bit unsigned packed YCrCb422 sampling format conversion. images.

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

    Destination image

    | Improve this Doc View Source

    YCrCb422ToRGB(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned packed YCrCb422 to 3 channel 8-bit unsigned planar RGB color conversion.

    Declaration
    public void YCrCb422ToRGB(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

    YCrCb422ToRGB(NPPImage_8uC3)

    2 channel 8-bit unsigned packed YCrCb422 to 3 channel 8-bit unsigned packed RGB color conversion. images.

    Declaration
    public void YCrCb422ToRGB(NPPImage_8uC3 dest)
    Parameters
    Type Name Description
    NPPImage_8uC3 dest

    Destination image

    | Improve this Doc View Source

    YCrCb422ToYCbCr411(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned packed YCrCb422 to 3 channel 8-bit unsigned planar YCbCr411 sampling format conversion.

    Declaration
    public void YCrCb422ToYCbCr411(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

    YCrCb422ToYCbCr420(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned packed YCrCb422 to 3 channel 8-bit unsigned planar YCbCr420 sampling format conversion.

    Declaration
    public void YCrCb422ToYCbCr420(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

    YCrCb422ToYCbCr422(NPPImage_8uC1, NPPImage_8uC1, NPPImage_8uC1)

    2 channel 8-bit unsigned packed YCrCb422 to 3 channel 8-bit unsigned planar YCbCr422 sampling format conversion.

    Declaration
    public void YCrCb422ToYCbCr422(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

    YUV422ToRGB(NPPImage_8uC3)

    2 channel 8-bit unsigned packed CbYCr422 to 3 channel 8-bit unsigned packed BGR_709HDTV color conversion. images.

    Declaration
    public void YUV422ToRGB(NPPImage_8uC3 dest)
    Parameters
    Type Name Description
    NPPImage_8uC3 dest

    Destination image

    Operators

    | Improve this Doc View Source

    Implicit(CudaPitchedDeviceVariable<uchar2> to NPPImage_8uC2)

    Converts a CudaPitchedDeviceVariable to a NPPImage

    Declaration
    public static implicit operator NPPImage_8uC2(CudaPitchedDeviceVariable<uchar2> img)
    Parameters
    Type Name Description
    CudaPitchedDeviceVariable<uchar2> img

    CudaPitchedDeviceVariable

    Returns
    Type Description
    NPPImage_8uC2

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

    | Improve this Doc View Source

    Implicit(NPPImage_8uC2 to CudaPitchedDeviceVariable<uchar2>)

    Converts a NPPImage to a CudaPitchedDeviceVariable

    Declaration
    public static implicit operator CudaPitchedDeviceVariable<uchar2>(NPPImage_8uC2 img)
    Parameters
    Type Name Description
    NPPImage_8uC2 img

    NPPImage

    Returns
    Type Description
    CudaPitchedDeviceVariable<uchar2>

    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