Class NPPNativeMethods.NPPi.AddWeighted
Pixel by pixel addition of alpha weighted pixel values from a source image to floating point pixel values of destination image.
Inheritance
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public static class AddWeighted
Methods
nppiAddWeighted_16u32f_C1IMR(CUdeviceptr, Int32, CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single)
One 16-bit unsigned short channel alpha weighted image added to in place floating point destination image using filter mask (updates destination when mask is non-zero).
Declaration
public static NppStatus nppiAddWeighted_16u32f_C1IMR(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pMask, int nMaskStep, CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float nAlpha)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pMask | Mask-Image Pointer. |
System.Int32 | nMaskStep | Mask-Image Line Step. |
CUdeviceptr | pSrcDst | In-Place Image Pointer. |
System.Int32 | nSrcDstStep | In-Place Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single | nAlpha | Alpha weight to be applied to source image pixels (0.0F to 1.0F) |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiAddWeighted_16u32f_C1IR(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single)
One 16-bit unsigned short channel alpha weighted image added to in place floating point destination image.
Declaration
public static NppStatus nppiAddWeighted_16u32f_C1IR(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float nAlpha)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pSrcDst | In-Place Image Pointer. |
System.Int32 | nSrcDstStep | In-Place Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single | nAlpha | Alpha weight to be applied to source image pixels (0.0F to 1.0F) |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiAddWeighted_32f_C1IMR(CUdeviceptr, Int32, CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single)
One 32-bit floating point channel alpha weighted image added to in place floating point destination image using filter mask (updates destination when mask is non-zero).
Declaration
public static NppStatus nppiAddWeighted_32f_C1IMR(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pMask, int nMaskStep, CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float nAlpha)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pMask | Mask-Image Pointer. |
System.Int32 | nMaskStep | Mask-Image Line Step. |
CUdeviceptr | pSrcDst | In-Place Image Pointer. |
System.Int32 | nSrcDstStep | In-Place Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single | nAlpha | Alpha weight to be applied to source image pixels (0.0F to 1.0F) |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiAddWeighted_32f_C1IR(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single)
One 32-bit floating point channel alpha weighted image added to in place floating point destination image.
Declaration
public static NppStatus nppiAddWeighted_32f_C1IR(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float nAlpha)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pSrcDst | In-Place Image Pointer. |
System.Int32 | nSrcDstStep | In-Place Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single | nAlpha | Alpha weight to be applied to source image pixels (0.0F to 1.0F) |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiAddWeighted_8u32f_C1IMR(CUdeviceptr, Int32, CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single)
One 8-bit unsigned char channel alpha weighted image added to in place floating point destination image using filter mask (updates destination when mask is non-zero).
Declaration
public static NppStatus nppiAddWeighted_8u32f_C1IMR(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pMask, int nMaskStep, CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float nAlpha)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pMask | Mask-Image Pointer. |
System.Int32 | nMaskStep | Mask-Image Line Step. |
CUdeviceptr | pSrcDst | In-Place Image Pointer. |
System.Int32 | nSrcDstStep | In-Place Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single | nAlpha | Alpha weight to be applied to source image pixels (0.0F to 1.0F) |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |
nppiAddWeighted_8u32f_C1IR(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, Single)
One 8-bit unsigned char channel alpha weighted image added to in place floating point destination image.
Declaration
public static NppStatus nppiAddWeighted_8u32f_C1IR(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pSrcDst, int nSrcDstStep, NppiSize oSizeROI, float nAlpha)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pSrcDst | In-Place Image Pointer. |
System.Int32 | nSrcDstStep | In-Place Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
System.Single | nAlpha | Alpha weight to be applied to source image pixels (0.0F to 1.0F) |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError |