Class NPPImage_16scC4
Implements
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public class NPPImage_16scC4 : NPPImageBase, IDisposable
Constructors
| Improve this Doc View SourceNPPImage_16scC4(CUdeviceptr, NppiSize, Int32)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_16scC4(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 |
NPPImage_16scC4(CUdeviceptr, NppiSize, Int32, Boolean)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_16scC4(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 |
NPPImage_16scC4(CUdeviceptr, Int32, Int32, Int32)
Creates a new NPPImage from allocated device ptr. Does not take ownership of decPtr.
Declaration
public NPPImage_16scC4(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 |
NPPImage_16scC4(CUdeviceptr, Int32, Int32, Int32, Boolean)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_16scC4(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 |
NPPImage_16scC4(NPPImageBase)
Creates a new NPPImage from allocated device ptr. Does not take ownership of inner image device pointer.
Declaration
public NPPImage_16scC4(NPPImageBase image)
Parameters
Type | Name | Description |
---|---|---|
NPPImageBase | image | NPP image |
NPPImage_16scC4(NppiSize)
Allocates new memory on device using NPP-Api.
Declaration
public NPPImage_16scC4(NppiSize size)
Parameters
Type | Name | Description |
---|---|---|
NppiSize | size | Image size |
NPPImage_16scC4(Int32, Int32)
Allocates new memory on device using NPP-Api.
Declaration
public NPPImage_16scC4(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 SourceAdd(Npp16sc[], NPPImage_16scC4, Int32)
Add constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Add(Npp16sc[] nConstant, NPPImage_16scC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp16sc[] | nConstant | Values to add |
NPPImage_16scC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Add(Npp16sc[], Int32)
Add constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.
Declaration
public void Add(Npp16sc[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp16sc[] | nConstant | Values to add |
System.Int32 | nScaleFactor | scaling factor |
Add(NPPImage_16scC4, NPPImage_16scC4, Int32)
Image addition, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Add(NPPImage_16scC4 src2, NPPImage_16scC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
NPPImage_16scC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Add(NPPImage_16scC4, Int32)
In place image addition, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Add(NPPImage_16scC4 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
AddA(Npp16sc[], NPPImage_16scC4, Int32)
Add constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Unmodified Alpha.
Declaration
public void AddA(Npp16sc[] nConstant, NPPImage_16scC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp16sc[] | nConstant | Values to add |
NPPImage_16scC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
AddA(Npp16sc[], Int32)
Add constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace. Unmodified Alpha.
Declaration
public void AddA(Npp16sc[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp16sc[] | nConstant | Values to add |
System.Int32 | nScaleFactor | scaling factor |
AddA(NPPImage_16scC4, NPPImage_16scC4, Int32)
Image addition, scale by 2^(-nScaleFactor), then clamp to saturated value. Unmodified Alpha.
Declaration
public void AddA(NPPImage_16scC4 src2, NPPImage_16scC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
NPPImage_16scC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
AddA(NPPImage_16scC4, Int32)
In place image addition, scale by 2^(-nScaleFactor), then clamp to saturated value. Unmodified Alpha.
Declaration
public void AddA(NPPImage_16scC4 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
AverageError(NPPImage_16scC4, CudaDeviceVariable<Double>)
image average error. User buffer is internally allocated and freed.
Declaration
public void AverageError(NPPImage_16scC4 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
AverageError(NPPImage_16scC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image average error.
Declaration
public void AverageError(NPPImage_16scC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | 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. |
AverageErrorGetBufferHostSize()
Device scratch buffer size (in bytes) for AverageError.
Declaration
public int AverageErrorGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
AverageRelativeError(NPPImage_16scC4, CudaDeviceVariable<Double>)
image average relative error. User buffer is internally allocated and freed.
Declaration
public void AverageRelativeError(NPPImage_16scC4 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
AverageRelativeError(NPPImage_16scC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image average relative error.
Declaration
public void AverageRelativeError(NPPImage_16scC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | 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. |
AverageRelativeErrorGetBufferHostSize()
Device scratch buffer size (in bytes) for AverageRelativeError.
Declaration
public int AverageRelativeErrorGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
Copy(NPPImage_16scC4)
image copy.
Declaration
public void Copy(NPPImage_16scC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | dst | Destination image |
CopyA(NPPImage_16scC4)
image copy. Not affecting Alpha channel.
Declaration
public void CopyA(NPPImage_16scC4 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | dst | Destination image |
Div(Npp16sc[], NPPImage_16scC4, Int32)
Divide constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Div(Npp16sc[] nConstant, NPPImage_16scC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp16sc[] | nConstant | Value |
NPPImage_16scC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Div(Npp16sc[], Int32)
Divide constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.
Declaration
public void Div(Npp16sc[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp16sc[] | nConstant | Value |
System.Int32 | nScaleFactor | scaling factor |
Div(NPPImage_16scC4, NPPImage_16scC4, Int32)
Image division, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Div(NPPImage_16scC4 src2, NPPImage_16scC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
NPPImage_16scC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Div(NPPImage_16scC4, Int32)
In place image division, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Div(NPPImage_16scC4 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
DivA(Npp16sc[], NPPImage_16scC4, Int32)
Divide constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void DivA(Npp16sc[] nConstant, NPPImage_16scC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp16sc[] | nConstant | Value |
NPPImage_16scC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
DivA(Npp16sc[], Int32)
Divide constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace. Unchanged Alpha.
Declaration
public void DivA(Npp16sc[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp16sc[] | nConstant | Value |
System.Int32 | nScaleFactor | scaling factor |
DivA(NPPImage_16scC4, NPPImage_16scC4, Int32)
Image division, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void DivA(NPPImage_16scC4 src2, NPPImage_16scC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
NPPImage_16scC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
DivA(NPPImage_16scC4, Int32)
In place image division, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void DivA(NPPImage_16scC4 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
Finalize()
For dispose
Declaration
protected void Finalize()
MaxError(NPPImage_16scC4, CudaDeviceVariable<Double>)
image maximum error. User buffer is internally allocated and freed.
Declaration
public void MaxError(NPPImage_16scC4 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
MaxError(NPPImage_16scC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image maximum error.
Declaration
public void MaxError(NPPImage_16scC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | 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. |
MaxErrorGetBufferHostSize()
Device scratch buffer size (in bytes) for MaxError.
Declaration
public int MaxErrorGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
MaximumRelativeError(NPPImage_16scC4, CudaDeviceVariable<Double>)
image maximum relative error. User buffer is internally allocated and freed.
Declaration
public void MaximumRelativeError(NPPImage_16scC4 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
MaximumRelativeError(NPPImage_16scC4, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image maximum relative error.
Declaration
public void MaximumRelativeError(NPPImage_16scC4 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | 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. |
MaximumRelativeErrorGetBufferHostSize()
Device scratch buffer size (in bytes) for MaximumRelativeError.
Declaration
public int MaximumRelativeErrorGetBufferHostSize()
Returns
Type | Description |
---|---|
System.Int32 |
Mul(Npp16sc[], NPPImage_16scC4, Int32)
Multiply constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Mul(Npp16sc[] nConstant, NPPImage_16scC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp16sc[] | nConstant | Value |
NPPImage_16scC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Mul(Npp16sc[], Int32)
Multiply constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.
Declaration
public void Mul(Npp16sc[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp16sc[] | nConstant | Value |
System.Int32 | nScaleFactor | scaling factor |
Mul(NPPImage_16scC4, NPPImage_16scC4, Int32)
Image multiplication, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Mul(NPPImage_16scC4 src2, NPPImage_16scC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
NPPImage_16scC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Mul(NPPImage_16scC4, Int32)
In place image multiplication, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Mul(NPPImage_16scC4 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
MulA(Npp16sc[], NPPImage_16scC4, Int32)
Multiply constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void MulA(Npp16sc[] nConstant, NPPImage_16scC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp16sc[] | nConstant | Value |
NPPImage_16scC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
MulA(Npp16sc[], Int32)
Multiply constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace. Unchanged Alpha.
Declaration
public void MulA(Npp16sc[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp16sc[] | nConstant | Value |
System.Int32 | nScaleFactor | scaling factor |
MulA(NPPImage_16scC4, NPPImage_16scC4, Int32)
Image multiplication, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void MulA(NPPImage_16scC4 src2, NPPImage_16scC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
NPPImage_16scC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
MulA(NPPImage_16scC4, Int32)
In place image multiplication, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void MulA(NPPImage_16scC4 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
Set(Npp16sc[])
Set pixel values to nValue.
Declaration
public void Set(Npp16sc[] nValue)
Parameters
Type | Name | Description |
---|---|---|
Npp16sc[] | nValue | Value to be set (Array size = 4) |
SetA(Npp16sc[])
Set pixel values to nValue.
The 8-bit mask image affects setting of the respective pixels in the destination image.
If the mask value is zero (0) the pixel is not set, if the mask is non-zero, the corresponding destination pixel is set to specified value. Not affecting alpha channel.
Declaration
public void SetA(Npp16sc[] nValue)
Parameters
Type | Name | Description |
---|---|---|
Npp16sc[] | nValue | Value to be set (Array size = 3) |
Sub(Npp16sc[], NPPImage_16scC4, Int32)
Subtract constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Sub(Npp16sc[] nConstant, NPPImage_16scC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp16sc[] | nConstant | Value to subtract |
NPPImage_16scC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Sub(Npp16sc[], Int32)
Subtract constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.
Declaration
public void Sub(Npp16sc[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp16sc[] | nConstant | Value to subtract |
System.Int32 | nScaleFactor | scaling factor |
Sub(NPPImage_16scC4, NPPImage_16scC4, Int32)
Image subtraction, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Sub(NPPImage_16scC4 src2, NPPImage_16scC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
NPPImage_16scC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Sub(NPPImage_16scC4, Int32)
In place image subtraction, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Sub(NPPImage_16scC4 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
SubA(Npp16sc[], NPPImage_16scC4, Int32)
Subtract constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void SubA(Npp16sc[] nConstant, NPPImage_16scC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp16sc[] | nConstant | Value to subtract |
NPPImage_16scC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
SubA(Npp16sc[], Int32)
Subtract constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace. Unchanged Alpha.
Declaration
public void SubA(Npp16sc[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp16sc[] | nConstant | Value to subtract |
System.Int32 | nScaleFactor | scaling factor |
SubA(NPPImage_16scC4, NPPImage_16scC4, Int32)
Image subtraction, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void SubA(NPPImage_16scC4 src2, NPPImage_16scC4 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
NPPImage_16scC4 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
SubA(NPPImage_16scC4, Int32)
In place image subtraction, scale by 2^(-nScaleFactor), then clamp to saturated value. Unchanged Alpha.
Declaration
public void SubA(NPPImage_16scC4 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_16scC4 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |