Class NPPImage_32fcC1
Implements
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public class NPPImage_32fcC1 : NPPImageBase, IDisposable
Constructors
| Improve this Doc View SourceNPPImage_32fcC1(CUdeviceptr, NppiSize, Int32)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_32fcC1(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_32fcC1(CUdeviceptr, NppiSize, Int32, Boolean)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_32fcC1(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_32fcC1(CUdeviceptr, Int32, Int32, Int32)
Creates a new NPPImage from allocated device ptr. Does not take ownership of decPtr.
Declaration
public NPPImage_32fcC1(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_32fcC1(CUdeviceptr, Int32, Int32, Int32, Boolean)
Creates a new NPPImage from allocated device ptr.
Declaration
public NPPImage_32fcC1(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_32fcC1(NPPImageBase)
Creates a new NPPImage from allocated device ptr. Does not take ownership of inner image device pointer.
Declaration
public NPPImage_32fcC1(NPPImageBase image)
Parameters
Type | Name | Description |
---|---|---|
NPPImageBase | image | NPP image |
NPPImage_32fcC1(NppiSize)
Allocates new memory on device using NPP-Api.
Declaration
public NPPImage_32fcC1(NppiSize size)
Parameters
Type | Name | Description |
---|---|---|
NppiSize | size | Image size |
NPPImage_32fcC1(Int32, Int32)
Allocates new memory on device using NPP-Api.
Declaration
public NPPImage_32fcC1(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(Npp32fc)
Add constant to image. Inplace.
Declaration
public void Add(Npp32fc nConstant)
Parameters
Type | Name | Description |
---|---|---|
Npp32fc | nConstant | Value to add |
Add(Npp32fc, NPPImage_32fcC1)
Add constant to image.
Declaration
public void Add(Npp32fc nConstant, NPPImage_32fcC1 dest)
Parameters
Type | Name | Description |
---|---|---|
Npp32fc | nConstant | Value to add |
NPPImage_32fcC1 | dest | Destination image |
Add(NPPImage_32fcC1)
In place image addition.
Declaration
public void Add(NPPImage_32fcC1 src2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fcC1 | src2 | 2nd source image |
Add(NPPImage_32fcC1, NPPImage_32fcC1)
Image addition.
Declaration
public void Add(NPPImage_32fcC1 src2, NPPImage_32fcC1 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fcC1 | src2 | 2nd source image |
NPPImage_32fcC1 | dest | Destination image |
AverageError(NPPImage_32fcC1, CudaDeviceVariable<Double>)
image average error. User buffer is internally allocated and freed.
Declaration
public void AverageError(NPPImage_32fcC1 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fcC1 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
AverageError(NPPImage_32fcC1, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image average error.
Declaration
public void AverageError(NPPImage_32fcC1 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fcC1 | 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_32fcC1, CudaDeviceVariable<Double>)
image average relative error. User buffer is internally allocated and freed.
Declaration
public void AverageRelativeError(NPPImage_32fcC1 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fcC1 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
AverageRelativeError(NPPImage_32fcC1, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image average relative error.
Declaration
public void AverageRelativeError(NPPImage_32fcC1 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fcC1 | 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_32fcC1)
Image copy.
Declaration
public void Copy(NPPImage_32fcC1 dst)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fcC1 | dst | Destination image |
Div(Npp32fc)
Divide constant to image. Inplace.
Declaration
public void Div(Npp32fc nConstant)
Parameters
Type | Name | Description |
---|---|---|
Npp32fc | nConstant | Value |
Div(Npp32fc, NPPImage_32fcC1)
Divide constant to image.
Declaration
public void Div(Npp32fc nConstant, NPPImage_32fcC1 dest)
Parameters
Type | Name | Description |
---|---|---|
Npp32fc | nConstant | Value |
NPPImage_32fcC1 | dest | Destination image |
Div(NPPImage_32fcC1)
In place image division.
Declaration
public void Div(NPPImage_32fcC1 src2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fcC1 | src2 | 2nd source image |
Div(NPPImage_32fcC1, NPPImage_32fcC1)
Image division.
Declaration
public void Div(NPPImage_32fcC1 src2, NPPImage_32fcC1 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fcC1 | src2 | 2nd source image |
NPPImage_32fcC1 | dest | Destination image |
Finalize()
For dispose
Declaration
protected void Finalize()
Magnitude(NPPImage_32fC1)
32-bit floating point complex to 32-bit floating point magnitude.
Converts complex-number pixel image to single channel image computing the result pixels as the magnitude of the complex values.
Declaration
public void Magnitude(NPPImage_32fC1 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fC1 | dest | Destination image |
MagnitudeSqr(NPPImage_32fC1)
32-bit floating point complex to 32-bit floating point squared magnitude.
Converts complex-number pixel image to single channel image computing the result pixels as the squared magnitude of the complex values.
The squared magnitude is an itermediate result of magnitude computation and can thus be computed faster than actual magnitude. If magnitudes are required for sorting/comparing only, using this function instead of nppiMagnitude_32fc32f_C1R can be a worthwhile performance optimization.
Declaration
public void MagnitudeSqr(NPPImage_32fC1 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fC1 | dest | Destination image |
MaxError(NPPImage_32fcC1, CudaDeviceVariable<Double>)
image maximum error. User buffer is internally allocated and freed.
Declaration
public void MaxError(NPPImage_32fcC1 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fcC1 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
MaxError(NPPImage_32fcC1, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image maximum error.
Declaration
public void MaxError(NPPImage_32fcC1 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fcC1 | 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_32fcC1, CudaDeviceVariable<Double>)
image maximum relative error. User buffer is internally allocated and freed.
Declaration
public void MaximumRelativeError(NPPImage_32fcC1 src2, CudaDeviceVariable<double> pError)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fcC1 | src2 | 2nd source image |
CudaDeviceVariable<System.Double> | pError | Pointer to the computed error. |
MaximumRelativeError(NPPImage_32fcC1, CudaDeviceVariable<Double>, CudaDeviceVariable<Byte>)
image maximum relative error.
Declaration
public void MaximumRelativeError(NPPImage_32fcC1 src2, CudaDeviceVariable<double> pError, CudaDeviceVariable<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fcC1 | 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(Npp32fc)
Multiply constant to image. Inplace.
Declaration
public void Mul(Npp32fc nConstant)
Parameters
Type | Name | Description |
---|---|---|
Npp32fc | nConstant | Value |
Mul(Npp32fc, NPPImage_32fcC1)
Multiply constant to image.
Declaration
public void Mul(Npp32fc nConstant, NPPImage_32fcC1 dest)
Parameters
Type | Name | Description |
---|---|---|
Npp32fc | nConstant | Value |
NPPImage_32fcC1 | dest | Destination image |
Mul(NPPImage_32fcC1)
In place image multiplication.
Declaration
public void Mul(NPPImage_32fcC1 src2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fcC1 | src2 | 2nd source image |
Mul(NPPImage_32fcC1, NPPImage_32fcC1)
Image multiplication.
Declaration
public void Mul(NPPImage_32fcC1 src2, NPPImage_32fcC1 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fcC1 | src2 | 2nd source image |
NPPImage_32fcC1 | dest | Destination image |
Set(Npp32fc)
Set pixel values to nValue.
Declaration
public void Set(Npp32fc nValue)
Parameters
Type | Name | Description |
---|---|---|
Npp32fc | nValue | Value to be set |
Sub(Npp32fc)
Subtract constant to image. Inplace.
Declaration
public void Sub(Npp32fc nConstant)
Parameters
Type | Name | Description |
---|---|---|
Npp32fc | nConstant | Value to subtract |
Sub(Npp32fc, NPPImage_32fcC1)
Subtract constant to image.
Declaration
public void Sub(Npp32fc nConstant, NPPImage_32fcC1 dest)
Parameters
Type | Name | Description |
---|---|---|
Npp32fc | nConstant | Value to subtract |
NPPImage_32fcC1 | dest | Destination image |
Sub(NPPImage_32fcC1)
In place image subtraction.
Declaration
public void Sub(NPPImage_32fcC1 src2)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fcC1 | src2 | 2nd source image |
Sub(NPPImage_32fcC1, NPPImage_32fcC1)
Image subtraction.
Declaration
public void Sub(NPPImage_32fcC1 src2, NPPImage_32fcC1 dest)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fcC1 | src2 | 2nd source image |
NPPImage_32fcC1 | dest | Destination image |
ToCudaPitchedDeviceVariable()
Converts a NPPImage to a CudaPitchedDeviceVariable
Declaration
public CudaPitchedDeviceVariable<cuFloatComplex> ToCudaPitchedDeviceVariable()
Returns
Type | Description |
---|---|
CudaPitchedDeviceVariable<cuFloatComplex> |
Operators
| Improve this Doc View SourceImplicit(CudaPitchedDeviceVariable<cuFloatComplex> to NPPImage_32fcC1)
Converts a CudaPitchedDeviceVariable to a NPPImage
Declaration
public static implicit operator NPPImage_32fcC1(CudaPitchedDeviceVariable<cuFloatComplex> img)
Parameters
Type | Name | Description |
---|---|---|
CudaPitchedDeviceVariable<cuFloatComplex> | img | CudaPitchedDeviceVariable |
Returns
Type | Description |
---|---|
NPPImage_32fcC1 | NPPImage with the same device pointer and size of CudaPitchedDeviceVariable with ROI set to full image |
Implicit(NPPImage_32fcC1 to CudaPitchedDeviceVariable<cuFloatComplex>)
Converts a NPPImage to a CudaPitchedDeviceVariable
Declaration
public static implicit operator CudaPitchedDeviceVariable<cuFloatComplex>(NPPImage_32fcC1 img)
Parameters
Type | Name | Description |
---|---|---|
NPPImage_32fcC1 | img | NPPImage |
Returns
Type | Description |
---|---|
CudaPitchedDeviceVariable<cuFloatComplex> | CudaPitchedDeviceVariable with the same device pointer and size of NPPImage without ROI information |