Class NPPImage_32scC3
Implements
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public class NPPImage_32scC3 : NPPImageBase, IDisposable
Constructors
| Improve this Doc View SourceNPPImage_32scC3(CUdeviceptr, NppiSize, Int32)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_32scC3(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_32scC3(CUdeviceptr, NppiSize, Int32, Boolean)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_32scC3(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_32scC3(CUdeviceptr, Int32, Int32, Int32)
Creates a new NPPImage from allocated device ptr. Does not take ownership of decPtr.
Declaration
public NPPImage_32scC3(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_32scC3(CUdeviceptr, Int32, Int32, Int32, Boolean)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_32scC3(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_32scC3(NPPImageBase)
Creates a new NPPImage from allocated device ptr. Does not take ownership of inner image device pointer.
Declaration
public NPPImage_32scC3(NPPImageBase image)
Parameters
Type | Name | Description |
---|---|---|
NPPImageBase | image | NPP image |
NPPImage_32scC3(NppiSize)
Allocates new memory on device using NPP-Api.
Declaration
public NPPImage_32scC3(NppiSize size)
Parameters
Type | Name | Description |
---|---|---|
NppiSize | size | Image size |
NPPImage_32scC3(Int32, Int32)
Allocates new memory on device using NPP-Api.
Declaration
public NPPImage_32scC3(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(Npp32sc[], NPPImage_32scC3, Int32)
Add constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Add(Npp32sc[] nConstant, NPPImage_32scC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp32sc[] | nConstant | Value to add |
NPPImage_32scC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Add(Npp32sc[], Int32)
Add constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.
Declaration
public void Add(Npp32sc[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp32sc[] | nConstant | Value to add |
System.Int32 | nScaleFactor | scaling factor |
Add(NPPImage_32scC3, NPPImage_32scC3, Int32)
Image addition, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Add(NPPImage_32scC3 src2, NPPImage_32scC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32scC3 | src2 | 2nd source image |
NPPImage_32scC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Add(NPPImage_32scC3, Int32)
In place image addition, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Add(NPPImage_32scC3 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32scC3 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
AverageError(NPPImage_32scC3, CudaDeviceVariable<Double>)
image average error. User buffer is internally allocated and freed.
Declaration
public void AverageError(NPPImage_32scC3 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32scC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
AverageError(NPPImage_32scC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image average error.
Declaration
public void AverageError(NPPImage_32scC3 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32scC3 | 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_32scC3, CudaDeviceVariable<Double>)
image average relative error. User buffer is internally allocated and freed.
Declaration
public void AverageRelativeError(NPPImage_32scC3 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32scC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
AverageRelativeError(NPPImage_32scC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image average relative error.
Declaration
public void AverageRelativeError(NPPImage_32scC3 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32scC3 | 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_32scC3)
Image copy.
Declaration
public void Copy(NPPImage_32scC3 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32scC3 | dst | Destination image |
Div(Npp32sc[], NPPImage_32scC3, Int32)
Divide constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Div(Npp32sc[] nConstant, NPPImage_32scC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp32sc[] | nConstant | Value |
NPPImage_32scC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Div(Npp32sc[], Int32)
Divide constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.
Declaration
public void Div(Npp32sc[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp32sc[] | nConstant | Value |
System.Int32 | nScaleFactor | scaling factor |
Div(NPPImage_32scC3, NPPImage_32scC3, Int32)
Image division, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Div(NPPImage_32scC3 src2, NPPImage_32scC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32scC3 | src2 | 2nd source image |
NPPImage_32scC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Div(NPPImage_32scC3, Int32)
In place image division, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Div(NPPImage_32scC3 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32scC3 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
Finalize()
For dispose
Declaration
protected void Finalize()
MaxError(NPPImage_32scC3, CudaDeviceVariable<Double>)
image maximum error. User buffer is internally allocated and freed.
Declaration
public void MaxError(NPPImage_32scC3 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32scC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
MaxError(NPPImage_32scC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image maximum error.
Declaration
public void MaxError(NPPImage_32scC3 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32scC3 | 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_32scC3, CudaDeviceVariable<Double>)
image maximum relative error. User buffer is internally allocated and freed.
Declaration
public void MaximumRelativeError(NPPImage_32scC3 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32scC3 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
MaximumRelativeError(NPPImage_32scC3, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image maximum relative error.
Declaration
public void MaximumRelativeError(NPPImage_32scC3 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32scC3 | 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(Npp32sc[], NPPImage_32scC3, Int32)
Multiply constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Mul(Npp32sc[] nConstant, NPPImage_32scC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp32sc[] | nConstant | Value |
NPPImage_32scC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Mul(Npp32sc[], Int32)
Multiply constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.
Declaration
public void Mul(Npp32sc[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp32sc[] | nConstant | Value |
System.Int32 | nScaleFactor | scaling factor |
Mul(NPPImage_32scC3, NPPImage_32scC3, Int32)
Image multiplication, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Mul(NPPImage_32scC3 src2, NPPImage_32scC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32scC3 | src2 | 2nd source image |
NPPImage_32scC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Mul(NPPImage_32scC3, Int32)
In place image multiplication, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Mul(NPPImage_32scC3 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32scC3 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |
Set(Npp32sc[])
Set pixel values to nValue.
Declaration
public void Set(Npp32sc[] nValue)
Parameters
Type | Name | Description |
---|---|---|
Npp32sc[] | nValue | Value to be set |
Sub(Npp32sc[], NPPImage_32scC3, Int32)
Subtract constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Sub(Npp32sc[] nConstant, NPPImage_32scC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp32sc[] | nConstant | Value to subtract |
NPPImage_32scC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Sub(Npp32sc[], Int32)
Subtract constant to image, scale by 2^(-nScaleFactor), then clamp to saturated value. Inplace.
Declaration
public void Sub(Npp32sc[] nConstant, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
Npp32sc[] | nConstant | Value to subtract |
System.Int32 | nScaleFactor | scaling factor |
Sub(NPPImage_32scC3, NPPImage_32scC3, Int32)
Image subtraction, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Sub(NPPImage_32scC3 src2, NPPImage_32scC3 dest, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32scC3 | src2 | 2nd source image |
NPPImage_32scC3 | dest | Destination image |
System.Int32 | nScaleFactor | scaling factor |
Sub(NPPImage_32scC3, Int32)
In place image subtraction, scale by 2^(-nScaleFactor), then clamp to saturated value.
Declaration
public void Sub(NPPImage_32scC3 src2, int nScaleFactor)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32scC3 | src2 | 2nd source image |
System.Int32 | nScaleFactor | scaling factor |