Show / Hide Table of Contents

    Class NPPNativeMethods.NPPi.Scale

    Scale bit-depth up and down.

    To map source pixel srcPixelValue to destination pixel dstPixelValue the following equation is used:

    dstPixelValue = dstMinRangeValue + scaleFactor * (srcPixelValue - srcMinRangeValue)

    where scaleFactor = (dstMaxRangeValue - dstMinRangeValue) / (srcMaxRangeValue - srcMinRangeValue).

    For conversions between integer data types, the entire integer numeric range of the input data type is mapped onto the entire integer numeric range of the output data type.

    For conversions to floating point data types the floating point data range is defined by the user supplied floating point values of nMax and nMin which are used as the dstMaxRangeValue and dstMinRangeValue respectively in the scaleFactor and dstPixelValue calculations and also as the saturation values to which output data is clamped.

    When converting from floating-point values to integer values, nMax and nMin are used as the srcMaxRangeValue and srcMinRangeValue respectively in the scaleFactor and dstPixelValue calculations. Output values are saturated and clamped to the full output integer pixel value range.

    Inheritance
    System.Object
    NPPNativeMethods.NPPi.Scale
    Inherited Members
    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 static class Scale

    Methods

    nppiScale_16s8u_AC4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, NppHintAlgorithm)

    Four channel 16-bit signed to 8-bit unsigned conversion, not affecting Alpha.

    Declaration
    public static NppStatus nppiScale_16s8u_AC4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, NppHintAlgorithm hint)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    NppHintAlgorithm hint

    algorithm performance or accuracy selector, currently ignored

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_16s8u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, NppHintAlgorithm)

    Single channel 16-bit signed to 8-bit unsigned conversion.

    Declaration
    public static NppStatus nppiScale_16s8u_C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, NppHintAlgorithm hint)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    NppHintAlgorithm hint

    algorithm performance or accuracy selector, currently ignored

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_16s8u_C3R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, NppHintAlgorithm)

    Three channel 16-bit signed to 8-bit unsigned conversion.

    Declaration
    public static NppStatus nppiScale_16s8u_C3R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, NppHintAlgorithm hint)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    NppHintAlgorithm hint

    algorithm performance or accuracy selector, currently ignored

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_16s8u_C4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, NppHintAlgorithm)

    Four channel 16-bit signed to 8-bit unsigned conversion.

    Declaration
    public static NppStatus nppiScale_16s8u_C4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, NppHintAlgorithm hint)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    NppHintAlgorithm hint

    algorithm performance or accuracy selector, currently ignored

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_16u8u_AC4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, NppHintAlgorithm)

    Four channel 16-bit unsigned to 8-bit unsigned conversion, not affecting Alpha.

    Declaration
    public static NppStatus nppiScale_16u8u_AC4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, NppHintAlgorithm hint)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    NppHintAlgorithm hint

    algorithm performance or accuracy selector, currently ignored

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_16u8u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, NppHintAlgorithm)

    Single channel 16-bit unsigned to 8-bit unsigned conversion.

    Declaration
    public static NppStatus nppiScale_16u8u_C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, NppHintAlgorithm hint)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    NppHintAlgorithm hint

    algorithm performance or accuracy selector, currently ignored

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_16u8u_C3R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, NppHintAlgorithm)

    Three channel 16-bit unsigned to 8-bit unsigned conversion.

    Declaration
    public static NppStatus nppiScale_16u8u_C3R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, NppHintAlgorithm hint)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    NppHintAlgorithm hint

    algorithm performance or accuracy selector, currently ignored

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_16u8u_C4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, NppHintAlgorithm)

    Four channel 16-bit unsigned to 8-bit unsigned conversion.

    Declaration
    public static NppStatus nppiScale_16u8u_C4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, NppHintAlgorithm hint)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    NppHintAlgorithm hint

    algorithm performance or accuracy selector, currently ignored

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_32f8u_AC4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single, Single)

    Four channel 32-bit floating point to 8-bit unsigned conversion, not affecting Alpha.

    Declaration
    public static NppStatus nppiScale_32f8u_AC4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nMin, float nMax)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    System.Single nMin

    specifies the minimum saturation value to which every output value will be clamped.

    System.Single nMax

    specifies the maximum saturation value to which every output value will be clamped.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError, ::NPP_SCALE_RANGE_ERROR indicates an error condition if nMax <= nMin.

    nppiScale_32f8u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single, Single)

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

    Declaration
    public static NppStatus nppiScale_32f8u_C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nMin, float nMax)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    System.Single nMin

    specifies the minimum saturation value to which every output value will be clamped.

    System.Single nMax

    specifies the maximum saturation value to which every output value will be clamped.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError, ::NPP_SCALE_RANGE_ERROR indicates an error condition if nMax <= nMin.

    nppiScale_32f8u_C3R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single, Single)

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

    Declaration
    public static NppStatus nppiScale_32f8u_C3R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nMin, float nMax)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    System.Single nMin

    specifies the minimum saturation value to which every output value will be clamped.

    System.Single nMax

    specifies the maximum saturation value to which every output value will be clamped.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError, ::NPP_SCALE_RANGE_ERROR indicates an error condition if nMax <= nMin.

    nppiScale_32f8u_C4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single, Single)

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

    Declaration
    public static NppStatus nppiScale_32f8u_C4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nMin, float nMax)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    System.Single nMin

    specifies the minimum saturation value to which every output value will be clamped.

    System.Single nMax

    specifies the maximum saturation value to which every output value will be clamped.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError, ::NPP_SCALE_RANGE_ERROR indicates an error condition if nMax <= nMin.

    nppiScale_32s8u_AC4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, NppHintAlgorithm)

    Four channel 32-bit signed to 8-bit unsigned conversion, not affecting Alpha.

    Declaration
    public static NppStatus nppiScale_32s8u_AC4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, NppHintAlgorithm hint)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    NppHintAlgorithm hint

    algorithm performance or accuracy selector, currently ignored

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_32s8u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, NppHintAlgorithm)

    Single channel 32-bit signed to 8-bit unsigned conversion.

    Declaration
    public static NppStatus nppiScale_32s8u_C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, NppHintAlgorithm hint)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    NppHintAlgorithm hint

    algorithm performance or accuracy selector, currently ignored

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_32s8u_C3R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, NppHintAlgorithm)

    Three channel 32-bit signed to 8-bit unsigned conversion.

    Declaration
    public static NppStatus nppiScale_32s8u_C3R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, NppHintAlgorithm hint)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    NppHintAlgorithm hint

    algorithm performance or accuracy selector, currently ignored

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_32s8u_C4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, NppHintAlgorithm)

    Four channel 32-bit signed to 8-bit unsigned conversion.

    Declaration
    public static NppStatus nppiScale_32s8u_C4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, NppHintAlgorithm hint)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    NppHintAlgorithm hint

    algorithm performance or accuracy selector, currently ignored

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_8u16s_AC4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize)

    Four channel 8-bit unsigned to 16-bit signed conversion, not affecting Alpha.

    Declaration
    public static NppStatus nppiScale_8u16s_AC4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_8u16s_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize)

    Single channel 8-bit unsigned to 16-bit signed conversion.

    Declaration
    public static NppStatus nppiScale_8u16s_C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_8u16s_C3R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize)

    Three channel 8-bit unsigned to 16-bit signed conversion.

    Declaration
    public static NppStatus nppiScale_8u16s_C3R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_8u16s_C4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize)

    Four channel 8-bit unsigned to 16-bit signed conversion.

    Declaration
    public static NppStatus nppiScale_8u16s_C4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_8u16u_AC4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize)

    Four channel 8-bit unsigned to 16-bit unsigned conversion, not affecting Alpha.

    Declaration
    public static NppStatus nppiScale_8u16u_AC4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_8u16u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize)

    Single channel 8-bit unsigned to 16-bit unsigned conversion.

    Declaration
    public static NppStatus nppiScale_8u16u_C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_8u16u_C3R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize)

    Three channel 8-bit unsigned to 16-bit unsigned conversion.

    Declaration
    public static NppStatus nppiScale_8u16u_C3R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_8u16u_C4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize)

    Four channel 8-bit unsigned to 16-bit unsigned conversion.

    Declaration
    public static NppStatus nppiScale_8u16u_C4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_8u32f_AC4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single, Single)

    Four channel 8-bit unsigned to 32-bit floating-point conversion, not affecting Alpha.

    Declaration
    public static NppStatus nppiScale_8u32f_AC4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nMin, float nMax)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    System.Single nMin

    specifies the minimum saturation value to which every output value will be clamped.

    System.Single nMax

    specifies the maximum saturation value to which every output value will be clamped.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError, ::NPP_SCALE_RANGE_ERROR indicates an error condition if nMax <= nMin.

    nppiScale_8u32f_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single, Single)

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

    Declaration
    public static NppStatus nppiScale_8u32f_C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nMin, float nMax)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    System.Single nMin

    specifies the minimum saturation value to which every output value will be clamped.

    System.Single nMax

    specifies the maximum saturation value to which every output value will be clamped.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError, ::NPP_SCALE_RANGE_ERROR indicates an error condition if nMax <= nMin.

    nppiScale_8u32f_C3R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single, Single)

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

    Declaration
    public static NppStatus nppiScale_8u32f_C3R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nMin, float nMax)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    System.Single nMin

    specifies the minimum saturation value to which every output value will be clamped.

    System.Single nMax

    specifies the maximum saturation value to which every output value will be clamped.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError, ::NPP_SCALE_RANGE_ERROR indicates an error condition if nMax <= nMin.

    nppiScale_8u32f_C4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single, Single)

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

    Declaration
    public static NppStatus nppiScale_8u32f_C4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, float nMin, float nMax)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    System.Single nMin

    specifies the minimum saturation value to which every output value will be clamped.

    System.Single nMax

    specifies the maximum saturation value to which every output value will be clamped.

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError, ::NPP_SCALE_RANGE_ERROR indicates an error condition if nMax <= nMin.

    nppiScale_8u32s_AC4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize)

    Four channel 8-bit unsigned to 32-bit signed conversion, not affecting Alpha.

    Declaration
    public static NppStatus nppiScale_8u32s_AC4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_8u32s_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize)

    Single channel 8-bit unsigned to 32-bit signed conversion.

    Declaration
    public static NppStatus nppiScale_8u32s_C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_8u32s_C3R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize)

    Three channel 8-bit unsigned to 32-bit signed conversion.

    Declaration
    public static NppStatus nppiScale_8u32s_C3R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

    nppiScale_8u32s_C4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize)

    Four channel 8-bit unsigned to 32-bit signed conversion.

    Declaration
    public static NppStatus nppiScale_8u32s_C4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI)
    Parameters
    Type Name Description
    CUdeviceptr pSrc

    Source-Image Pointer.

    System.Int32 nSrcStep

    Source-Image Line Step.

    CUdeviceptr pDst

    Destination-Image Pointer.

    System.Int32 nDstStep

    Destination-Image Line Step.

    NppiSize oSizeROI

    Region-of-Interest (ROI).

    Returns
    Type Description
    NppStatus

    StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError

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